lord abhi…

May 20, 2008

How to start/stop MySql server on Ubuntu 8.04

Filed under: Database, Linux, Ubuntu — Abhishek Khaitan @ 7:35 am
Tags:

# 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

16 Comments »

  1. I’m from Brazil!!!!
    very good…

    Comment by Alexandre — October 5, 2008 @ 8:04 am | Reply

  2. Yes, very nice blog.

    Thanks for the tips.

    Comment by auravisya — November 4, 2008 @ 8:37 am | Reply

  3. I’m new to ubuntu and mysql..
    thks for the help!

    Comment by www.WebNike.com — November 20, 2008 @ 10:43 am | Reply

  4. thankz it helped a lot. and now i have successfully installed all of them and i have to configure the apache .conf file

    Comment by raz — February 21, 2009 @ 1:58 am | Reply

  5. Thank about your information..This is so important for me..
    Because i often make it for my job …
    Thank it helped me alot..
    Ok

    Comment by Gagat Rahina — March 13, 2009 @ 3:38 am | Reply

  6. the commands wave very useful to me.

    Comment by Anbalagan — March 31, 2009 @ 5:13 am | Reply

  7. Helpfully ;)

    Comment by scapegraceboy — May 23, 2009 @ 3:49 pm | Reply

  8. Thanks for your information

    Comment by Didula Lakshitha — August 1, 2009 @ 2:32 am | Reply

  9. Great blog
    Helped me a lot

    Comment by gaurav — August 6, 2009 @ 3:14 am | Reply

  10. Thanks , very good

    Comment by Jhon — August 9, 2009 @ 8:10 am | Reply

  11. Good post. Following might be easier especially for Windows folks are more used to services.

    sudo service mysql start/stop/restart

    Comment by Ashish Kaushal — September 12, 2009 @ 9:38 am | Reply

  12. hi i used the code but output is coming permission denied

    Comment by santosh — October 30, 2009 @ 6:23 am | Reply

  13. try the command with ’sudo’ in the beginning.

    Comment by abbysays — October 30, 2009 @ 11:39 pm | Reply

  14. Thanks for these useful handy commands.

    Comment by Kuldeep — November 11, 2009 @ 7:09 pm | Reply

  15. 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)

    Comment by Adam S. — November 21, 2009 @ 8:35 pm | Reply

  16. very useful commands. thanks Abby!!

    Comment by Beny — November 24, 2009 @ 3:20 pm | Reply


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.