Home > Database > Mysql Tutorial > body text

Windows Mysql8 sets case sensitivity

藏色散人
Release: 2019-05-08 09:34:19
forward
4597 people have browsed it

windows system mysql8.0 change lower_case_table_names

I searched on Baidu yesterday...I didn’t solve it for 7 hours. Today I went to Google and searched for 1 hour and the solution was solved...Let me slowly explain Come...

First of all, because I want to use kbengine to write games, I went to kbengine and found that it requires MySQL's lower_case_table_names to be 0...So I started a long change...

1. In fact, the windows system cannot be changed. into lower_case_table_names=0, because the default value of windows is 1, even if it is changed, it can only be changed to 2. The following is taken from the MySQL 8.0 Reference Manual

Windows Mysql8 sets case sensitivity

2. Then, when we follow the online Method: After forcibly changing lower_case_table_names in my.ini to 2, you will find that mysql server cannot be started! ! This is because (the following is still MySQL 8.0 Reference Manual)

Windows Mysql8 sets case sensitivityYou will see the error is that your data file defaults to 1, but your lower_case_table_names=2, so an error is reported. Mysql8.0 requires that we cannot change the value of lower_case_table_names after initialize, so the correct approach is! ! !

1. Clear the data file. My data file is in programdata\MySQL\XXXXserver 8.0\. Just delete it and put an empty one again.

2. Then put my In lower_case_table_names in .ini, directly change 1 to 2

3, then run cmd as administrator,

Windows Mysql8 sets case sensitivity

Do this step to re-initialize mysql server

4. Then...your mysql server will be re-initialized

Follow-up:

Because it was re-initialized...the previous things are gone...So, you log in to mysql again At that time, the username is root, and the password is searched for an .err file in programdata\MySQL\XXXXserver 8.0\. The password will be randomly initialized in it. You can log in with this password. You can just change him later

The above is the detailed content of Windows Mysql8 sets case sensitivity. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!