My SQL

General discussion about Linux, Linux distribution, using Linux etc.
usman.pak
Cadet
Posts: 13
Joined: Mon Feb 13, 2006 11:07 am
Location: Pakistan
Contact:

My SQL

Postby usman.pak » Fri Jan 30, 2009 11:29 pm

hi , i recently installed the Fedora 10 and when i want to connect the mysql it gives me error

[root@US-HOME usman]# mysql -u root -p ""
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@US-HOME usman]#

Please help me how i remove this error
Usman

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Sat Jan 31, 2009 11:18 am

is the server even running?
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?

LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re: My SQL

Postby LinuxFreaK » Tue Feb 03, 2009 9:24 am

Dear usman.pak,
Salam,

usman.pak wrote:hi , i recently installed the Fedora 10 and when i want to connect the mysql it gives me error

[root@US-HOME usman]# mysql -u root -p ""
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@US-HOME usman]#

Please help me how i remove this error


Paste output of following commands.

# /etc/init.d/mysql{d} status
# ls -al /tmp
# ls -al /var/lib/mysql


Best Regards.
Farrukh Ahmed

x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Postby x2oxen » Wed Feb 04, 2009 3:50 pm

you can try

service mysqld start/restart/status
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com


Return to “General”

Who is online

Users browsing this forum: No registered users and 2 guests