LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-17-2002, 10:01 PM   #1
Beauford
LQ Newbie
 
Registered: Apr 2002
Posts: 1

Rep: Reputation: 0
Question Mysql problems


I am new to mysql, but not to Slack. I am running Slack 8 and trying to get the default install of mysql working. I don't even know where to start as I finally think I have it working and then something else screws up. I will post the error messages I get below and hopefully someone can make sense of them and point me in the right direction.

Thanks

When I start the server I get:

# /usr/share/mysql/mysql.server start
Starting mysqld daemon with databases from /usr/local/mysql/var

It appears to be working and port 3306 is open. Then I try to log in and get this:

ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (111)

Note. mysql.sock is 0 bytes. Is this normal?

When I try to add a user I get this:

/usr# ./bin/mysqladmin -u root -p password
Enter password:
./bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket
'/var/run/mysql/mysql.sock' (111)'
Check that mysqld is running and that the socket:
'/var/run/mysql/mysql.sock' exists!

Mysql is running on port 3306 and the file does exist.

usr# ./bin/mysqladmin -u root -h myuser -p password
Enter password:
./bin/mysqladmin: connect to server at 'myuser' failed
error: 'Host 'myuser.mybox.com' is not allowed to connect to this MySQL server'

Note: user.pid does not exist, which I believe is needed. How do I get this file?
 
Old 04-18-2002, 04:01 AM   #2
Hans Wolters
LQ Newbie
 
Registered: Apr 2002
Location: Netherlands
Distribution: Slack
Posts: 1

Rep: Reputation: 0
Permissions on the directory

>ERROR 2002: Can't connect to local MySQL server
>through socket '/var/run/mysql/mysql.sock' (111)

Mysql needs executable permissions on the /var/run/mysql directory. If this seems unsafe to you then another solution is to link the socket in (for example) the /tmp dir. Keep in mind that every local user would be able to contact the socket in both cases. A good setup for the mysql privileges would be needed.

Regards,

Hans
 
Old 04-20-2002, 01:54 AM   #3
jstu
Member
 
Registered: Jan 2002
Distribution: slackware
Posts: 193

Rep: Reputation: 30
I had the same problems with slak,I just uninstalled mysql and got the latest version off of mysql.com and followed their install exactly and it worked fine.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. NoviceW Linux - Networking 17 09-17-2014 02:13 PM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. suziecorbett Linux - Software 8 10-09-2008 01:52 AM
Problems with MySQL on SuSE: Can't Connect (/var/lib/mysql/mysql.sock) neocookie Linux - Software 8 02-07-2008 11:48 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
DBD::MySQL + MySQL install problems. Elleroth Linux - Software 4 03-24-2006 06:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration