com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'hotelbook.loginfo' doesn't exist

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'hotelbook.loginfo' doesn't exist

Reason: Because the MySQL database is case-sensitive, however, when we create a table, some table names may be uppercase and some are lowercase. When we write SQL statements, it may not be the same as the case of the table names in the database. This can cause this kind of error!

We can solve this kind of error like this:

  1. Log in with root and modify /etc/my.cnf;
  2. Under the [mysqld] node, add a line: lower_case_table_names=1
  3. Just restart MySQL;

When I encountered this problem, I referred to this blogger: https://blog.csdn.net/tengdazhang770960436/article/details/53337338

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324420285&siteId=291194637