mysql installation startup problem

exception one

         mysqld: [ERROR] Found option without preceding group in config file /etc/my.cnf at line 1!
         mysqld: [ERROR] Fatal error in defaults handling. Program aborted!

 Configuration file format error, first line

 exception two

          InnoDB: undo tablespace '/mysql//undo001' exists. Creating system tablespace with existing undo tablespaces is not supported. Please delete all undo tablespaces before creating new system tablespace.
2017-04-22T15:43:48.168128+08:00 0 [ERROR] InnoDB: InnoDB Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again.
2017-04-22T15:43:48.768780+08:00 0 [ERROR] Plugin 'InnoDB' init function returned error.
2017-04-22T15:43:48.768850+08:00 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2017-04-22T15:43:48.768864+08:00 0 [ERROR] Failed to initialize plugins.
2017-04-22T15:43:48.768873+08:00 0 [ERROR] Aborting

 

The problem is that the undo001 file already exists. Delete all mysql logs at one time. Be convenient.

 

Question three

 

2017-04-22T15:43:23.914462+08:00 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.
2017-04-22T15:43:23.914514+08:00 0 [ERROR] Aborting

 

There are files in the directory configured by dataDir in my.cnf. do not allow initialization

 

 Question four

Executing ./mysqld --initialize has no effect, there is only one possibility, the file directory configured in my.cnf has no permissions. permission

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326416872&siteId=291194637