The table exists, I use SpringBoot, hibernate to create the tables, mysql for the database... I connect succesfully to the database in the app. The tables are created and all that. My application ran perfectly on Windows. But now I have Linux and it just gives me this error what is it? There is no error in the code this I know for sure its something from the database but I dont know what...any thoughts?
-
3MySQL on Windows is case insensitive, but Linux is case sensitive. Is name of table in correct case?Boris– Boris2022-01-16 16:17:12 +00:00Commented Jan 16, 2022 at 16:17
-
1If the problem turns out to be the case of the table names (Credits to @Boris). see here. There is a way to make MySql behave ok on both Windows and Linux if this is the case. stackoverflow.com/questions/6134006/…Fernando Garcia - Nandostyle– Fernando Garcia - Nandostyle2022-01-16 16:26:20 +00:00Commented Jan 16, 2022 at 16:26
-
yes I think its the case, but how do I modify it?GiGiK– GiGiK2022-01-16 16:55:46 +00:00Commented Jan 16, 2022 at 16:55
-
the "my.cnf" file is empty. I write "lower_case_table_names=0" in it and then after I run mysql it says it doesnt recognise the variable. what do I need to write ib my.cnf because I really dont understandGiGiK– GiGiK2022-01-16 17:05:48 +00:00Commented Jan 16, 2022 at 17:05
-
1It is better to change mysql case sensitivity setting. make it case insensitive.Eyasu Tewodros– Eyasu Tewodros2022-01-16 18:07:12 +00:00Commented Jan 16, 2022 at 18:07
|
Show 2 more comments
1 Answer
Just to copy answer from comments. The problem is that Windows is case insensitive but Linux is case sensitive.
MySQL configuration:
[mysqld]
lower_case_table_names=1
Link that @Nandostyle referenced with same issue: Link