Remember a bug where the mysql table name does not exist

As the title says, my colleague provided a java project that was originally executed on windows.
After the database is initialized and the configuration is completed, an error is reported, and the prompt content is Table * doesn't exist. After
opening mysql under linux, it is found that the missing table name in the error prompt is capitalized, and the database is saved in lowercase.

Remember a bug where the mysql table name does not exist

Reference to other blogs, telling me that mysql under Windows is not case sensitive, and Linux is case sensitive.
After exporting the existing data, edit /etc/my.cnf, add lower_case_table_names = 1 under the [mysqld] tab to
save and exit, restart the mysql service, and then import the previously exported data to restore normal.

Guess you like

Origin blog.51cto.com/joyshow/2488344