天天看点

Different lower_case_table_names settings for server (‘1‘) and data dictionary (‘0‘).

ubuntu18.04

mysql8.0

ubuntu18.04下/etc/mysql/ mysql.cnf  里面加上了这么一段:

[mysqld]
lower_case_table_names=1
#protocol = tcp      

为的是解决大小写敏感的问题,可是重启mysql就报错了

查阅资料发现这么一段话

'In MySQL 8.0, the lower_case_table_names variable can only be configured when the MySQL server is initialized. "

出处是MySQL官网

​​https://bugs.mysql.com/bug.php?id=90695​​

所以,也是没有办法的事,重装MySQL吧,初始化之前做修改

这样

 rm -rf ​

​/var/lib/mysql​

​.

然后