After installation is complete, before initialize the database, modify my.cnf
Open the mysql configuration file
vim /etc/my.cnf
At the end of the additional line
lower_case_table_names=1
and save it, and then initialize the database.Restart mysql,
systemctl restart mysqld.service
If after this operation is to initialize the database, which is run after the service installed, it may be wrong.
An error similar Job for mysqld.service failed because the control process exited with error...
then you can not start the mysql service, unless open vim /etc/my.cnf
to additional lower_case_table_names=1
deleted.
I find the Internet a long time, temporarily did not find a better solution, but MySQL5 do not have this problem.
Finally, my solution is as follows:
If you do not mind if data delete data
Stop MySQL
systemctl stop mysqld.service
Delete MySQL data / var / lib / mysql
rm -rf /var/lib/mysql
Then again to operate in accordance with the above method.