Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't start MySql server

Status
Not open for further replies.

neilmurray

Technical User
Jan 18, 2005
32
GB
I am using MySQL from a tarred file (mysql-4.1.9.tar.gz) on Mandrake Linux 9.2. I go through the installation as given in PHP & MySQL for dummies but when i get to the end and command /usr/local/mysql/bin/mysqld_safe &

I get this

# Starting mysqld daemon with databases from /usr/local/mysql/var
STOPPING server from pid file /usr/local/mysql/var/shockwave.pid
050118 15:04:38 mysqld ended


What's the problem?

Thanks,

Neil.

 
Thanks,

I checked the error messages as you advised and found this.

050119 10:15:46 mysqld started
/usr/local/mysql/libexec/mysqld: Can't read dir of '/root/tmp/' (Errcode: 13)
/usr/local/mysql/libexec/mysqld: Can't create/write to file '/root/tmp/ibYp969G' (Errcode: 13)
050119 10:15:46 InnoDB: Error: unable to create temporary file; errno: 13
050119 10:15:46 [ERROR] Can't init databases
050119 10:15:46 [ERROR] Aborting

050119 10:15:46 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

050119 10:15:46 mysqld ended

I made sure I was su when trying to run and still got the same error.
To rectify this problem I tried changing the ownership of this to the local user, same error. I then changed the mod to 777, same problem.

Any ideas?

Neil.
 
Try creating a text file in /root/tmp using the same user account and see if you have any trouble.
 
That was one problem, I kept changing ownership until I was able to write to the file. I have now rerun mysql and gotten another error

050119 14:02:50 mysqld started
050119 14:02:51 [ERROR] Can't start server : Bind on unix socket: Address already in use
050119 14:02:51 [ERROR] Do you already have another mysqld server running on socket: /tmp/mysql.sock ?
050119 14:02:51 [ERROR] Aborting

050119 14:02:51 [Note] /home/neil/mysql/libexec/mysqld: Shutdown complete

050119 14:02:51 mysqld ended


Do yo know how I can fix this?

Thanks,

Neil.
 
Try ps -A and make certain that mysqld and mysqld-safe are present nowhere. Doing a top and then sorting by memory usage may be an easier way to see this.

If mysqld or mysqld_safe are present, do a kill -9 <pid> until they are gone or just restart your server.
 
definately mysqld nor mysqld_safe are not present.
Neil.
 
Fantastic.

There was a leftover /tmp/mys....sock file, I deleted it and all is working.

Thanks a lot. I appreciate it.

Neil.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top