Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've installed mysql and when I try to use it, it says that 'Can't connect to local MySQL server through socket /var/lib/mysql/mysql.sock
I've checked and the file doesn't exist. How do I create it? Or do I have to create it manually. If yes then what do I write in it?
Ok I looked after it I start it with 'mysqld_safe &' and it gives me the following message:
[1] 20497
dyn-86:/home/zoli # touch: cannot touch `/usr/local/var/dyn-86.err': No such file or directory
chown: cannot access `/usr/local/var/dyn-86.err': No such file or directory
Starting mysqld daemon with databases from /usr/local/var
/usr/local/bin/mysqld_safe: line 376: /usr/local/var/dyn-86.err: No such file or directory
/usr/local/bin/mysqld_safe: line 384: /usr/local/var/dyn-86.err: No such file or directory
STOPPING server from pid file /usr/local/var/dyn-86.pid
tee: /usr/local/var/dyn-86.err: No such file or directory
060531 17:04:22 mysqld ended
tee: /usr/local/var/dyn-86.err: No such file or directory
This is pretty common, where you expect to see the socket, just create a link to the real one, which can be found with a locate. You will need something like ln -s /the/real/socket mysql.sock
STOPPING server from pid file /usr/local/var/dyn-86.pid
I agree with Spirit_Receiver. If the mysqld server isn't running, how can you expect the client to connect to it?
To fix all the "No such file or directory" errors, make sure that the directory
/usr/local/var exists and is writable to the user that MySql runs under.
Hey, you're cheating. You changed your first post considerably.
Now that I know you're using SUSE, I can make the following suggestion: If you want to start the server manually, su to root and use the command "rcmysql start". Then you should be fine.
Alternatively, you can also use YaST to specify the runlevels in which mysqld should always be started automatically. See YaST->System->Runlevel-Editor.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.