LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   mysqld.sock (https://www.linuxquestions.org/questions/programming-9/mysqld-sock-575064/)

sci3ntist 08-06-2007 07:11 AM

mysqld.sock
 
Hi
When i try to operate mysql i got an error because of mysqld.sock,how to create mysqld.sock under Debian, in /var/run/mysqld.

paulsm4 08-06-2007 11:53 PM

Hi -

mysqld.sock gets created by mySQL when you start it - you don't create it yourself.

Try starting mySQL manually, as "root" (e.g. "/etc/rc/init.d/mysqld start").

The problem is almost certainly permissions.

'Hope that helps .. PSM

Wim Sturkenboom 08-07-2007 07:28 AM

I don't think that it's permissions:
Did you setup the initial database before starting the server?
Did you start the server (see paulsm4's post for the how)?

PS Not programming related

mjones490 08-07-2007 01:54 PM

Do this: Go into your /etc/init.d/mysql script. There should be something toward the top about using sockets and to uncomment (or comment out, I forget exactly which) a line in that script to not use sockets. I did this a couple months back. It's pretty self explanatory.

Then do a mysql restart. You should then be able to connect.


All times are GMT -5. The time now is 02:39 PM.