MySQL bug

MySQL bug整理

整理了一些遇到过的报错信息

  1. 远程连接服务器数据库报错:

    Host ‘XXXXXX’ is blocked because of many connection errors. 

    Sol:

    show global variables like ‘%max_connect_errors%';
    set global max_connect_errors=1000000;

    但是这不是问题的根本解决方法,只能一时有效,永久有效可参考以下文章:
    https://blog.csdn.net/li_li_l...

  1. 跟权限相关的报错

    ERROR 1290 (HY000): The MySQL server is running with the —skip-grant-tables option so it cannot execute this statement. 

    Sol:

    刷新权限列表 flush privileges;
    赋予权限:grant all privileges on . to USER@'%'identified by 'password';

  1. SQL语句过长导致执行失败
    Sol:

    更改最大限制

    set global max_allowed_packet = 6*1024*1024;

你可能感兴趣的:(mysqlbug)