Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-25-2003, 12:50 PM   #1
LQ Newbie
Registered: Jul 2003
Location: scotland
Distribution: Mandrake 9.1
Posts: 2

Rep: Reputation: 0
Setting up MySQL

Sorry if this is a simple thing but I have had problems running MySQL. (I am still learning about it with tutorials but would like to use SQL with PHP)

When I try to run it to create a database it says that it can't access the local server through the socket:

/var/lib/mysql/mysql.sock. The file is there but is empty (should it be empty?)
I installed from RPMs on Mandrake 9.1 since I have only been running Linux for about 2 months now.
Maybe I should just learn about sockets and if so could you maybe point me in the right direction.

Thanks in advance.
Old 07-25-2003, 01:02 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Are you sure the server's running? The error simply means that client (mysql) can't connect to the server (socket is a method of connection - like when you're using network). The file is not a 'real' file. It just represents the connection.

The file to run the server should be 'safe_mysqld'. In Mandrake, you can use GUI utility or just type from the console
service mysql start
Old 07-25-2003, 01:02 PM   #3
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Is mysql running?
ps -ef | grep mysql
Old 07-27-2003, 02:22 PM   #4
LQ Newbie
Registered: Jul 2003
Location: scotland
Distribution: Mandrake 9.1
Posts: 2

Original Poster
Rep: Reputation: 0
MySQL seems to start OK with service mysql start, but ps doesn't show it. It fails to stop when the machine is shut down, suggesting it never really started properly. I will try out a few other things as well.

Thanks anyway for now.


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
Setting up Ruby and mysql on FC3 sianz99 Fedora 1 10-02-2005 02:43 PM
help with setting up mysql d1l2w3 Linux - Software 4 03-22-2005 06:45 AM
Setting up MySQL on Mandrake 9.1 sheds Mandriva 1 10-29-2004 12:37 PM
setting up PHP & MySQL neon Linux - Newbie 12 10-24-2003 10:59 PM
setting up mysql banelion Linux - General 2 11-28-2002 10:20 AM > Forums > Linux Forums > Linux - Software

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

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