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 IamaSherpa 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 mysqld on linux.

Status
Not open for further replies.

jcxxx

Technical User
Aug 14, 2002
3
FR
Hi all,
I'm a newbee with mysql.
I got mysql-3.23.52, and I used gcc 2.95.3, and make 3.79.1.

I don't succed in starting mysqld under Linux Slakware 8.0, when launching the server with:
$/etc/mysql.server start

I don't understand what is wrong, all directories and permissions are ok.

My my.cnf is:
[mysqld]
tmpdir=/tmp
datadir=/usr/local/mysql/data
basedir=/usr/local/mysql
socket=/tmp/mysql.sock
user=mysql

And the log error file:
##root@yoyo[/usr/local/mysql/data]$ more yoyo.err
020814 14:56:08 mysqld started
020814 14:56:08 /usr/local/mysql/bin/mysqld: Can't create/write to file '/usr/local/mysql/data' (Errcode: 21)
020814 14:56:08 /usr/local/mysql/bin/mysqld: Can't find file: './mysql/host.frm' (errno: 13)
020814 14:56:08 /usr/local/mysql/bin/mysqld: Error on delete of '/usr/local/mysql/data' (Errcode: 13)
020814 14:56:08 mysqld ended

Can anyone help me ?
JC
 
Does the mysql user own all the files?
Try executing this command first:
Code:
chown -R mysql /usr/local/mysql
//Daniel
 
It is Daniel,
Great Thanks.
JC
 
Thanks, Daniel.

Had a similar problem and your advice solved the problem for me.

:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top