My SQL

General discussion about Linux, Linux distribution, using Linux etc.

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
usman.pak
Cadet
 
Posts: 13
Joined: Mon Feb 13, 2006 11:07 am
Website: http://imusman.20m.com
WLM: u_npk@hotmail.com
Yahoo Messenger: u_npak@yahoo.com
Location: Pakistan

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"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

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
x2oxen
Major General
 
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Website: http://usmanpk.com
WLM: x2oxen@hotmail.com
Yahoo Messenger: x2oxen
Location: Faisalabad


Return to “%s” General

Who is online

Users browsing this forum: No registered users and 1 guest

cron