LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-25-2003, 01:50 PM   #1
sat48
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, 02:02 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
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, 02:02 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Is mysql running?
ps -ef | grep mysql
 
Old 07-27-2003, 03:22 PM   #4
sat48
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.
 
  


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


All times are GMT -5. The time now is 06:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration