LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 11-22-2004, 11:30 PM   #1
the_geezus
LQ Newbie
 
Registered: Nov 2004
Posts: 5

Rep: Reputation: 0
MySQL (mysql.sock)


Hi, it's the first time i'm using MySQL under Linux. I want to start mysql. I've tried mysql_install, mysql_install_db, but everytime i tried to start MySQL i got the following error:

----------
root@Heartbeat:/usr/bin# mysql
ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)
----------

How do i start a MySQL database under Slackware 10 ?
 
Old 11-23-2004, 12:13 AM   #2
cythrawll
Member
 
Registered: Nov 2004
Location: IL, USA
Distribution: Slackware 10
Posts: 167

Rep: Reputation: 31
is the mysql dameon running?

try running: mysqld

then try running: mysql
 
Old 11-23-2004, 05:16 AM   #3
the_geezus
LQ Newbie
 
Registered: Nov 2004
Posts: 5

Original Poster
Rep: Reputation: 0
the mysql deamon wasn't runnig. Now i have multiple mysqld process id

------------
6554 ? 00:00:00 mysqld_safe
6571 ? 00:00:00 mysqld
6572 ? 00:00:00 mysqld
6573 ? 00:00:00 mysqld
6574 ? 00:00:00 mysqld
6575 ? 00:00:00 mysqld
6576 ? 00:00:00 mysqld
6577 ? 00:00:00 mysqld
6578 ? 00:00:00 mysqld
6579 ? 00:00:00 mysqld
6580 ? 00:00:00 mysqld
6581 ? 00:00:00 mysqld

-----------

But i got the same error : can't find

root@Heartbeat:/usr/local/mysql# mysql
ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)

-------------
 
Old 11-23-2004, 06:11 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,938

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Since the server is running, take a look at my.cnf (usually located at /etc) to see what is the location of mysql socket and change it accordingly either for the server (mysqld) and the client (mysql).
 
Old 11-23-2004, 06:11 AM   #5
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
pkill mysqld
su mysql
mysql_install_db
mysqld_safe &

viola
 
Old 11-30-2004, 08:09 AM   #6
Aljaber
Member
 
Registered: Sep 2003
Location: Milky Way Galaxy
Distribution: Slackware , RedHat
Posts: 40

Rep: Reputation: 15
thanks

thanks alot mr mdarby
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 19 03-06-2014 07:19 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 3.23.58-14 installation prolem - mysql.sock not found lightcom Linux - Software 4 02-23-2005 12:46 AM
can't connect to mysql through socket '/tmp/mysql.sock' Boby Programming 2 05-23-2004 01:32 PM
MySQL server problem after linking (mysql.sock) ewijaya Linux - General 4 01-19-2004 09:46 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration