Results 1 to 6 of 6
Hello everyone
I am trying to start mysqld service and I get the error
Code:
chown: `mysql:mysql': invalid user
chown: `mysql:mysql': invalid user
Timeout error occurred trying to start MySQL ...
- 02-16-2011 #1Linux User
- Join Date
- Jul 2007
- Location
- Greece
- Posts
- 277
chown: `mysql:mysql': invalid user
Hello everyone
I am trying to start mysqld service and I get the error
So I tried to create a user account and group under the name mysql but the system tells meCode:chown: `mysql:mysql': invalid user chown: `mysql:mysql': invalid user Timeout error occurred trying to start MySQL Daemon. Starting MySQL: [FAILED]
that the account already exists.
I can confirm that there is no account under the name mysql in etc/passwd but there is one in the NIS database.
The service mysqld requires a mysql account to start but there isn't one in my local computer and when I attempt to create one it tells me that it is already there.Code:[root@max /]# ypcat group | grep mysql mysql:*:453:

Does anyone have any suggestions please?
Many thanksOne Love!!!
- 02-16-2011 #2
Does your /etc/nsswitch include nis for passwd/group?
But even if it does, I am not so sure if it is a good idea to make a database dependent on the availability of nis, even at the cost of different uids/gids for mysql user/group throughout the network.You must always face the curtain with a bow.
- 02-17-2011 #3Linux User
- Join Date
- Jul 2007
- Location
- Greece
- Posts
- 277
Hi Irithori
Yes it does. Here it is:
It might sound silly but is there a way to tell mysql to stop looking at NIS for user/group information?Code:passwd: files nis shadow: files nis group: files nis #hosts: db files nisplus nis dns hosts: files nis dns bootparams: nisplus [NOTFOUND=return] files ethers: files netmasks: files networks: files protocols: files rpc: files services: files netgroup: files nis publickey: nisplus automount: files nis aliases: files nisplus
One Love!!!
- 02-17-2011 #4
just create a different user to run mysql as is another option
- 02-17-2011 #5Linux User
- Join Date
- Jul 2007
- Location
- Greece
- Posts
- 277
OK!
I stopped ypbind and then added the user mysql locally. Now when I try to start the mysqld service I no longer get the chown error but the service
fails to start.
Here is mysqld.logCode:Timeout error occurred trying to start MySQL Daemon. Starting MySQL: [FAILED]
SQL is sooo fun.Code:110217 15:29:47 InnoDB: Started; log sequence number 0 43655 110217 15:29:47 [ERROR] /usr/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13) 110217 15:29:47 [ERROR] /usr/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13) 110217 15:29:47 [ERROR] Fatal error: Can't open and lock privilege tables: Can't find file: './mysql/host.frm' (errno: 13) 110217 15:29:47 mysqld ended
One Love!!!
- 02-18-2011 #6Linux User
- Join Date
- Jul 2007
- Location
- Greece
- Posts
- 277
It's working now thanks to:
http://www.linuxforums.org/forum/ser...ql-server.html
Thanks everyone.One Love!!!


Reply With Quote