MEPIS This forum is for the discussion of MEPIS Linux. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
08-13-2005, 09:32 PM
|
#1
|
LQ Newbie
Registered: Aug 2005
Posts: 3
Rep:
|
mysql can't connect to server through socket
I'm trying to get mysql working on MEPIS 3.3.1.
I've installed mysql client & server 4.0.24 using synaptic package manager. When I run the mysql command, I get the follwoing error msg
ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
I changed the owner of the /var/run/mysqld directory to mysql user and gave all users read/write access (thought this may be a permission problem), but I still have the error msg. I get the same error msg when I try to access mysql through a php script.
Any pointer's?
|
|
|
08-14-2005, 08:36 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
sounds like your mysql server isn't even running. it needs to be running in the background before you connect to it with a client.
|
|
|
08-14-2005, 03:39 PM
|
#3
|
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591
Rep:
|
u may try
ps -e | grep mysqld
to see if its running
|
|
|
08-14-2005, 04:13 PM
|
#4
|
LQ Newbie
Registered: Aug 2005
Posts: 3
Original Poster
Rep:
|
Thanks - I'm a linux newbie and trying to find my way.
mysqld is not running. I noticed that when mepis boots up it trys to start mysql server, but then there's an error msg that goes by quite quick and so hard to read, but I think it's the same msg about not being able to connect to the socket.
When I run mysqld at the shell prompt I get the follwoing
050814 14:57:26 InnoDB: Started
050814 14:57:26 Fatal error: Can't open privilege tables: Table 'mysql.host' doesn't exist
050814 14:57:26 Aborting
050814 14:57:26 InnoDB: Starting shutdown...
050814 14:57:28 InnoDB: Shutdown completed
050814 14:57:28 mysqld: Shutdown Complete
Something didn't get setup right when it was installed - I'm lloking through mysql docs for some clues.
Also, I noticed that mysql protocol was not allowed in the firewall - so I enabled - not sure that that should effect the sever on my machine...
|
|
|
08-14-2005, 04:40 PM
|
#5
|
LQ Newbie
Registered: Aug 2005
Posts: 3
Original Poster
Rep:
|
well ok, I followed the mysql docs as follows for post install instructions
$ cd /usr
$ bin/mysql_install_db
this setup all the tables. I did try this command before I posted the note the first time. I don't know if I just didn't have the right directoriess or what, but this script did not work before (can't remember what error message it returned).
One change I know I made was to comment out the following line in /etc/mysql/my.conf
#old_passwords = 1
This was causing some errors, and found this advice to comment out in another note.
All looks to be ok now - myslqd is running - now I just have to setup the users and paswword.
Thanks for the help.
|
|
|
09-18-2005, 05:57 AM
|
#6
|
LQ Newbie
Registered: Apr 2004
Location: Whistler, Canada
Distribution: Debian, Fedora
Posts: 10
Rep:
|
Thanks Yatla ..
I had the problem with the old_passwords thing
- commented it out - then still could not start mysql with the same errors you got ..
- ran
$ cd /usr
$ bin/mysql_install_db
all good now ..
|
|
|
All times are GMT -5. The time now is 07:50 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|