Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Im fairly new to the linux world but im pretty famailiar with pc's all around. My problems come from an installation of mysql(4) on fedora(4). i guess my main problem would b this message :
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
So i guess i'll jus start with that, hopefully thas the beginning and end of all the issues. Please help if u can or even if u kno of any good tutorials on line please link em. Any user input would be gladly appreciated.
If mysql is running - check with:
ps -ef | grep mysql
Then check if there is a socket open with:
netstat -nlp
You can configure the exact location of your mysql socket file for clients and the server itself in /etc/my.cnf. If you change the location for the mysqld server you will need to restart mysql.
I've attempted the above and i have sockets open, but i cant configure the location of my socket file. It says that the permission is denied. Is there a step that i am missing???
The mysql server will probably need write access to wherever you try to create the socket so the permissions on the directory above will probably need changed.
Now whenever i try an add a new group the shell tells me that groupadd is an invalid command. Im running Fedora Core 4. Is it the wrong command, and if so what is the correct command to add a new group???
u did install custom version of mysql before (mysqlclient or server)? I have the similar problem before, it keeping search the socket at /tmp/mysql.sock, but the actual socket at /var/lib/mysql.
After restart mysql, check your server where it put the socket, then try using socket parameter with mysql client.
Suddenly i remember another ideal,if previous cannot solve your problem, you can try to backup all dabase (stop mysql server and backup the /var/lib/mysql folder), then remove all the content. Then restart the mysql server, see whether any error or not.
It may occur if you have some problem with the mysql datafile too.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.