+ Reply to Thread
Results 1 to 8 of 8

Thread: MySQL

  1. #1
    richm8026 is offline x10 Sophmore richm8026 is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    138

    MySQL

    Does anybody know how to shut down mySQL on Linux and keep it from starting up on logon??


  2. #2
    dickey's Avatar
    dickey is offline x10 Sophmore dickey is an unknown quantity at this point
    Join Date
    Sep 2008
    Location
    Singapore
    Posts
    128

    Re: MySQL

    stopping is easy...

    open a console

    login as root or start the command with sudo.

    then go to the /etc/init.d directory

    "cd /etc/init.d"

    display the contents of the directory...

    if you can find mysql (in ubuntu it is mysql)

    type "mysql stop" -> to stop the service...
    type "mysql start" -> to start the service...
    type "mysql restart" -> to restart the service...

    on some distros the command will be

    "mysqld start" ..... and so on.
    Don't get me wrong as I believe if and when I help someone I also help myself whereby whatever someone learns I also learn.

    But I will also accept credits or reps if you really want to part with it.

  3. #3
    richm8026 is offline x10 Sophmore richm8026 is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    138

    Re: MySQL

    Thanks, how do I prevent it form starting up on X Startup?


  4. #4
    dickey's Avatar
    dickey is offline x10 Sophmore dickey is an unknown quantity at this point
    Join Date
    Sep 2008
    Location
    Singapore
    Posts
    128

    Re: MySQL

    if you are using ubuntu

    Go to the folder /etc/rc2.d
    then do an ls there

    if you find anything with a mysql rename the symlink from
    S19mysql to K19mysql

    the 19 may vary so you would want to do an ls first

    renaming is done by mv
    e.g.
    mv S19mysql K19mysql
    Edit:
    If you are using other linux distros then my advice is for you to locate the folder controlling the runlevel2 daemons. and disable it from there.
    Last edited by dickey; 11-19-2008 at 07:51 PM. Reason: Automerged Doublepost
    Don't get me wrong as I believe if and when I help someone I also help myself whereby whatever someone learns I also learn.

    But I will also accept credits or reps if you really want to part with it.

  5. #5
    richm8026 is offline x10 Sophmore richm8026 is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    138

    Re: MySQL

    Thanks, there wasn't anything in rc2.d that had MySQL in it


  6. #6
    sybregunne is offline x10Hosting Member sybregunne is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    54

    Re: MySQL

    are you running ubuntu?

    if so browse all the other rcX.d folder and check whether your mysql is run there. I had around 3 files in rc2.d folder.

    1. S19mysql
    2. S17mysql-ndb
    3. S18mysql-ndb-mgm

    all of which are symlinks...

    rcX.d folders contains most start up daemons and are on different run levels if you know what run-level your mysql is starting up with. then go to the corresponding rcN.d folder. I hope this helps. Although I would do the same as Dickey when I want to temporarily disable mysql. If you are running a different flavor of linux can you post here what dist. you are using?

  7. #7
    richm8026 is offline x10 Sophmore richm8026 is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    138

    Re: MySQL

    Yeah, I don't know, I installed MySQL using Synaptic


  8. #8
    mephis's Avatar
    mephis is offline x10Hosting Member mephis is an unknown quantity at this point
    Join Date
    Aug 2008
    Location
    London, UK
    Posts
    39

    Re: MySQL

    Well, if you are using ubuntu:

    System -> Administration -> Services

    should list one or more mysql entries, just untick them

+ Reply to Thread

Similar Threads

  1. [PHP] MySQL and PHP
    By Bryon in forum Tutorials
    Replies: 43
    Last Post: 03-24-2011, 07:27 AM
  2. Which is better postgresql or MySQL?
    By Kurai Kumo in forum Scripts & 3rd Party Apps
    Replies: 11
    Last Post: 12-10-2009, 08:17 AM
  3. Replies: 14
    Last Post: 09-29-2008, 07:07 PM
  4. New Site-Suggestions?
    By mnoutside in forum Review My Site
    Replies: 9
    Last Post: 08-27-2008, 07:01 AM
  5. Have a problem with my forum
    By tikloos in forum Scripts & 3rd Party Apps
    Replies: 43
    Last Post: 01-19-2006, 01:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers