lower_case_table_names = 1 Start given mysql8.0

We know that the default in the Linux environment is case sensitive, so we need to change this default, after a variety of online search, the basic is all-modification lower_case_table_names, then vowed to modify, but found the revised start mysql directly No, how it happened?

Job for mysqld.service failed because the control process exited with
error code. See "systemctl status mysqld.service" and "journalctl -xe" 
for details.

the reason:

mysql8.0 requires that we can not change the value of lower_case_table_names after initialize, that is, through the change my.cnf file is no good.

and so….

Reload! Do not try again, and tried many methods eventually reload. . .

At initialization, the set lower-case-table-names

/usr/sbin/mysqld --initialize --user=mysql --lower-case-table-names=1

Uninstall mysql8.0

1, mysql close

service mysqld stop

2, View installed mysql

rpm -qa|grep -i mysql

3, uninstall the mysql

rpm -ev mysql-community-client-8.0.11-1.el7.x86_64 --nodeps
rpm -ev mysql-community-common-8.0.11-1.el7.x86_64 --nodeps
rpm -ev mysql-community-server-8.0.11-1.el7.x86_64  --nodeps
rpm -ev mysql-community-libs-8.0.11-1.el7.x86_64 --nodeps

4, delete the mysql directory relevant

find / -name mysql
[root@niceyoohw conf]# rm -rf /var/lib/mysql/
[root@niceyoohw conf]# rm -rf /usr/lib64/mysql
[root@niceyoohw conf]# rm -rf /etc/selinux/targeted/active/modules/100/mysql
[root@niceyoohw conf]# rm -rf /etc/selinux/targeted/tmp/modules/100/mysql

5, delete the my.cnf

rm -rf /etc/my.cnf

6. Check the unloading situation

rpm -qa|grep -i mysql

It appears to be empty, uninstalled.

Guess you like

Origin www.cnblogs.com/niceyoo/p/11545196.html