mysql几个常见错误记录

select时找不到表:大小写问题

show variables like '%lower_case_table_names%';
MySQL表名大小写敏感导致的问题


使用help_topic时的select权限问题

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Tue Aug 13 20:18:53 CST 2019
There was an unexpected error (type=Internal Server Error, status=500).
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: SELECT command denied to user 'rpa'@'localhost' for table 'help_topic' ### The error may exist in ...

是因为mysql.help_topic表没有授权给用户'rpa'


localhost和127.0.0.1及%的问题

mysql 授权 user@'%' 为什么登陆的时候localhost 不行呢???

同样的,localhost和127.0.0.1也是不同的
通过localhost连接到mysql是使用UNIX socket,而通过127.0.0.1连接到mysql是使用TCP/IP。

原文地址:https://www.cnblogs.com/dylanchu/p/11348307.html