LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I start a (MySQL) service (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-start-a-mysql-service-798247/)

Beekman 03-27-2010 10:53 AM

How do I start a (MySQL) service
 
I installed MySQL and I want the service to (always) start.

When I google I always find the same answer; Goto System > Administration > Services...
But I don have it.

Administration for me goes from 'Printing' to 'Software Sources', so there's no 'Services'...


Also should I be able to start it from a shell, but I also can find that.
(I have no /etc/rc.d/-directory and my /etc/init.d/-directory han no 'mysql')

I just started using Linux a few days ago (I only used MaxOsX and Windows before), so I'm a real newbie :D

djsmiley2k 03-27-2010 10:56 AM

What distrobution are you using?

Most have some sort of service/feature for automatically starting things, but it varies from distrobution to distrobution

On gentoo for example it would be
Code:

rc-update add mysqld default
but on yours it maybe different.

Please post this infomation along with how you installed mysql too and then we might be able to help :)

schneidz 03-27-2010 11:05 AM

assuming fedora
Code:

sudo service mysqld start
you mite need to install it
Code:

sudo yum install mysql mysql-server

Beekman 03-27-2010 11:19 AM

O yeah, forgot to mention that...
I use Ubuntu 9.10... and I installed it using apt-get.

Only now I see I probably did the wrong thing;
I did; sudo apt-get install mysql
I should have done; sudo apt-get install mysql-server

cola 03-27-2010 11:20 AM

Quote:

Originally Posted by schneidz (Post 3914434)
assuming fedora
Code:

sudo service mysqld start
you mite need to install it
Code:

sudo yum install mysql mysql-server

Probably he is on ubuntu.

cola 03-27-2010 11:26 AM

Quote:

Originally Posted by Beekman (Post 3914441)
O yeah, forgot to mention that...
I use Ubuntu 9.10... and I installed it using apt-get.

Only now I see I probably did the wrong thing;
I did; sudo apt-get install mysql
I should have done; sudo apt-get install mysql-server

http://www.howtogeek.com/howto/ubunt...r-5-on-ubuntu/

Code:

sudo update-rc add mysqld default

cola 03-27-2010 11:29 AM

Quote:

Originally Posted by Beekman (Post 3914441)
O yeah, forgot to mention that...
I use Ubuntu 9.10... and I installed it using apt-get.

Only now I see I probably did the wrong thing;
I did; sudo apt-get install mysql
I should have done; sudo apt-get install mysql-server

http://www.zolved.com/synapse/view_c...ySQL_On_Ubuntu

cola 03-27-2010 11:40 AM

Quote:

Originally Posted by Beekman (Post 3914441)
O yeah, forgot to mention that...
I use Ubuntu 9.10... and I installed it using apt-get.

Only now I see I probably did the wrong thing;
I did; sudo apt-get install mysql
I should have done; sudo apt-get install mysql-server

Another:

http://www.cyberciti.biz/faq/howto-r...start-service/


All times are GMT -5. The time now is 09:37 PM.