LinuxQuestions.org
Review your favorite Linux distribution.
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 06-19-2003, 09:07 AM   #1
jmitchell
LQ Newbie
 
Registered: Jun 2003
Posts: 3

Rep: Reputation: 0
Unhappy Help with MySQL


I'm trying to start MySQL on my new Slackware 9 box. It's a fresh install.

The problem is everytime I try to run mysqld, it says it can not find the program. So, after doing a bunch of reading and web surfing, I tried safe_mysqld. This seems to work except as soon as it starts, it tells me it has stopped. So, I run ps x, and I think it is still running, but I'm not sure. When I try mysql -u root it gives me an error message that it can not connect through /var/lib/mysql/mysql.sock (I think that is it).

Other things I have tried include but are not limited to a multitude of mysqladmin commands. Most of these result in an error message of not being able to connect on port 3306 and it telling me to try pinging the server (mysqladmin ping) or telneting to the port. Neither work telneting gives me connection refused on port 3306.

Any thoughts or suggestions are much appreciated.
 
Old 06-19-2003, 09:38 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
It sounds to me like MySQL isn't starting. This is usually due to something really silly that's normally logged in your error log. Have a read of http://www.linuxquestions.org/questi...t=hostname.err to find out how to find your error log for MySQL.

Post the results of anything you try back here and we'll take it from there.

HTH and welcome to LinuxQuestions

Jamie...
 
Old 06-19-2003, 10:39 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
An easy way to get mysql running off a fresh Slack install is to do this as root:

Code:
# mysql_install_db
# chown -R mysql.mysql /var/lib/mysql
# safe_mysqld &
 
Old 06-19-2003, 11:34 AM   #4
jmitchell
LQ Newbie
 
Registered: Jun 2003
Posts: 3

Original Poster
Rep: Reputation: 0
The following is my error log from when I run safe_mysqld

030619 10:28:23 mysqld started
030619 10:28:23 /usr/libexec/mysqld: Table 'mysql.host' doesn't exist
030619 10:28:23 mysqld ended
 
Old 06-19-2003, 11:36 AM   #5
jmitchell
LQ Newbie
 
Registered: Jun 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by trickykid
An easy way to get mysql running off a fresh Slack install is to do this as root:

Code:
# mysql_install_db
# chown -R mysql.mysql /var/lib/mysql
# safe_mysqld &
Thank you very much this worked wonderfully.
 
Old 06-23-2003, 08:00 AM   #6
MikeeX
Member
 
Registered: Mar 2002
Distribution: Ubuntu 6.10
Posts: 165

Rep: Reputation: 30
This worked for me too. Thanks!
 
Old 06-29-2003, 06:15 AM   #7
ed_thix
Member
 
Registered: Apr 2002
Location: Malaysia
Distribution: Slackware 15 & Ubuntu
Posts: 94

Rep: Reputation: 31
luckily i found this post, using the search function in this board, now mysql works for me too
 
Old 10-28-2004, 03:38 PM   #8
bennethos
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Rep: Reputation: 16
Seemed to fix the prob on my system as well, just needed to do a /etc/init.d/mysql restart


thx
 
  


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 - Distributions > Slackware

All times are GMT -5. The time now is 10:49 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