Web lists-archives.com

Re: --initialize specified but the data directory has files in it. Aborting.






Am 13.11.2015 um 17:12 schrieb jim Zhou:
I did "yum install myswl-community-server" and "service mysqld start"
I got the error

Initializing MySQL database:  2015-11-13T15:54:01.203931Z 0 [Warning]
Changed limits: max_open_files: 1024 (requested 5000)
2015-11-13T15:54:01.204205Z 0 [Warning] Changed limits: table_open_cache:
431 (requested 2000)
2015-11-13T15:54:01.204397Z 0 [Warning] TIMESTAMP with implicit DEFAULT
value is deprecated. Please use --explicit_defaults_for_timestamp server
option (see documentation for more details).
2015-11-13T15:54:01.207712Z 0 [ERROR] --initialize specified but the data
directory has files in it. Aborting.
2015-11-13T15:54:01.207751Z 0 [ERROR] Aborting

this is most likely because the socket file lives by default in "/var/lib/mysql" and maybe created too soon for the task

write a bugreport and in the meantime temporary configure mysqld with the socket file somewhere else like /tmp, make sure with "ls -lha /var/lib/mysql" that the directory is really empty

Attachment: signature.asc
Description: OpenPGP digital signature