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.
hi fellows, I installed Fedora Core 5 with MySql server but now when i type mysql -u username -p password
on the command prompt, it gives the following error Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (2)
can anyone help me out on this
Last edited by mystic_durle12; 12-12-2007 at 02:28 AM.
I am not Fedora guy, but I do not expect that the mysql server was setup with any users except root and possibly a system user for rpm updates.
Also look at /etc/my.conf (or wherever Fedora stores my.conf) and see if you need to setup allowed connections. Pay particular attention to the option 'Skip Networking'.
yesterday i had a major internet failure on my side. i would have replied yesterday. anyways its not working with root user too. Its giving the same error. and the /etc/my.conf u talk about is /etc/my.cnf on my system. i think its the same. I looks like this
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
That is quite a bit less than mine - but I have an idea...
Are you sure the mysql daemon (server) is running? If I shut mine down, I get EXACTLY the same error.
Code:
Stopping MySQL database server: mysqld.
ken@u2:~$ mysql -u ken -p********
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Look at the output of "sudo /sbin/chkconfig -l". Do you see an entry with mysql in the name?
How did you install the mysql server? Did you maybe just install the client and not the server?
Also, why did you install such an old Fedora Core version? The current is Fedora Core 8.
it has this line in it
mysqld 0 : off 1 : off 2 : off 3 : off 4 : off 5 : off 6 : off
its off for all run levels
how can i get it on again
and about the old version of FC. i have a slow dial up connection and i find it hard to download a new version of FC
Last edited by mystic_durle12; 12-18-2007 at 01:54 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.