LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-15-2004, 06:48 PM   #1
MikeFoo1
Member
 
Registered: Apr 2004
Distribution: Slackware 9.1
Posts: 72

Rep: Reputation: 15
Mysql...?


Hi, i am trying to get Mysql work but no luck.

Using the default mysql installation that came with salckware 9.0.

get this:

$safe_mysqld


Starting mysqld daemon with databases from /var/lib/mysql
040416 11:44:03 mysqld ended

also, get this

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


Any help would be appreciated .

Last edited by MikeFoo1; 04-15-2004 at 06:49 PM.
 
Old 04-15-2004, 07:55 PM   #2
MikeFoo1
Member
 
Registered: Apr 2004
Distribution: Slackware 9.1
Posts: 72

Original Poster
Rep: Reputation: 15
Anyone ?Help .
 
Old 04-15-2004, 08:07 PM   #3
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
you do not have to mysql server running

go to "system settings" --> "server settings" --> "services"

then find the sqld and start it.

then type

mysql
 
Old 04-17-2004, 02:02 PM   #4
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Hi

Try this as superuser

chown -R mysql.mysql /directory about which mysql complains it can't use the socket

That should allow you to start mysql no problems. I had exactly the same problem as you and this chown stuff fixed me right up.

Cheers
 
Old 04-17-2004, 03:20 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Actually you should have searched first, I know I've probably explained these steps a dozen times or so and also in the future, don't bump your own threads until after 24 hours has at least passed...

As root:

This creates the inital tables to use:
# mysql_install_db

Change the permissions for mysql:
# chown -R mysql.mysql /var/lib/mysql

This starts the daemon and server:
# mysqld_safe &
If its not mysqld_safe its the other way around, I know the later versions you use the above.

And that should do it.
 
Old 04-18-2004, 10:23 PM   #6
MikeFoo1
Member
 
Registered: Apr 2004
Distribution: Slackware 9.1
Posts: 72

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by trickykid
Actually you should have searched first, I know I've probably explained these steps a dozen times or so and also in the future, don't bump your own threads until after 24 hours has at least passed...

As root:

This creates the inital tables to use:
# mysql_install_db

Change the permissions for mysql:
# chown -R mysql.mysql /var/lib/mysql

This starts the daemon and server:
# mysqld_safe &
If its not mysqld_safe its the other way around, I know the later versions you use the above.

And that should do it.

Thanks a lot :-) .
 
  


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
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 19 03-06-2014 07:19 AM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:32 AM.

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