LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   mysql help (https://www.linuxquestions.org/questions/linux-server-73/mysql-help-594701/)

akph 10-26-2007 01:45 AM

mysql help
 
i have FC7 and when i try to run mysql it is showing the the following message :
#mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)


pliz guide me someone,i m new in linux, but am a great fan of the logic of the open source concept : the linux. thank you.

jschiwal 10-26-2007 01:54 AM

The mysql program is the client. You need to start the mysqld server before you use it. I think that "sudo /sbin/service mysql start" will start it. You can also use "sudo /sbin/chkconfig mysql 35" to configure the /init.d/ startup scripts to start it automatically when booting into runlevels 3 and 5.

selva146 10-26-2007 09:35 AM

Hi,
Mysql server is not running in your machine.

run this command as root user

/sbin/service mysqld start

then try to connect it

XavierP 10-27-2007 12:08 PM

Moved: This thread is more suitable in Linux-Server and has been moved accordingly to help your thread/question get the exposure it deserves.

akph 10-29-2007 11:08 AM

thanks you very much.
 
Quote:

Originally Posted by selva146 (Post 2937662)
Hi,
Mysql server is not running in your machine.

run this command as root user

/sbin/service mysqld start

then try to connect it

Msql work out perfect with the command you have given, thank you very much pal. thanks and one thing if i got more problem in it, i ll surely ask agin pliz dont mind.


All times are GMT -5. The time now is 03:55 AM.