# To install MySql database:
sudo apt-get install mysql-server
# To start MySql server:
/etc/init.d/mysql start
# To stop MySql server:
/etc/init.d/mysql stop
# To restart MySql server:
/etc/init.d/mysql restart
# To check the status of MySql server:
/etc/init.d/mysql status
I’m from Brazil!!!!
very good…
Yes, very nice blog.
Thanks for the tips.
I’m new to ubuntu and mysql..
thks for the help!
thankz it helped a lot. and now i have successfully installed all of them and i have to configure the apache .conf file
Thank about your information..This is so important for me..
Because i often make it for my job …
Thank it helped me alot..
Ok
the commands wave very useful to me.
Helpfully 😉
Thanks for your information
Great blog
Helped me a lot
Thanks , very good
Good post. Following might be easier especially for Windows folks are more used to services.
hi i used the code but output is coming permission denied
try the command with ‘sudo’ in the beginning.
Thanks for these useful handy commands.
Hi. I am trying to get rid of mysql server 5.0 on ubuntu 8.04 and I get this. help
Removing mysql-server-5.0 …
/etc/lsb-base-logging.sh: line 84: INITOUTPUT: unbound variable
invoke-rc.d: initscript mysql, action “stop” failed.
dpkg: error processing mysql-server-5.0 (–purge):
subprocess pre-removal script returned error exit status 1
/etc/lsb-base-logging.sh: line 84: INITOUTPUT: unbound variable
invoke-rc.d: initscript mysql, action “stop” failed.
/etc/lsb-base-logging.sh: line 84: INITOUTPUT: unbound variable
invoke-rc.d: initscript mysql, action “start” failed.
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
mysql-server-5.0
E: Sub-process /usr/bin/dpkg returned an error code (1)
very useful commands. thanks Abby!!
Great Article!!!!
Complete and Presise!!
Thanks a lot!!!!!!!
thanks for that. Indeed very handy 🙂
i tried to start it but i got this ..
navets@navets-laptop:~$ sudo mysql start
[sudo] password for navets:
ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: NO)
i iam using password to my php .. but how to write it ?
wanna access ur mysql?
to gain more power, log in using root account like this command;
$> mysql -u root –password=myPassword;
Done!
thank thank thank… u.
alhamdulillah 😀
log_prod.log
Thank you very much. Succinct and needed.
I’ve been wrestling with my MySQL installation all day.
[…] Comments nzherdev on How to install Evernote 3.0 on…Matt Rhys-Davies on How to start/stop MySql server…marrymatrimony on Search Engine Historys on How to start/stop MySql server…Abhishek […]
Yey! Thanks for this blog! I’m new to Ubuntu…Great job!
its very useful
This is nice post… can find words to describe how I needed to reboot my mysql.
Thanks a million…!:)
Hi
When I typed command to restart mysql .. It gave me error
$ sudo mysql restart
ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: NO)
Works like a charm, thank you very much!
tx guys very much help on this
[…] I find this article: https://abbysays.wordpress.com/2008/05/20/how-to-startstop-mysql-server-on-ubuntu-804/ […]
[…] I find this article: https://abbysays.wordpress.com/2008/05/20/how-to-startstop-mysql-server-on-ubuntu-804/ […]