ERROR 2013 (HY000): Lost connection to MySQL server at 'reading authorization packet', system error: 0

前端 未结 11 2361
眼角桃花
眼角桃花 2020-11-30 03:29

I am getting the following error

ERROR 2013 (HY000): Lost connection to MySQL server at 
\'reading authorization packet\', system error: 0

11条回答
  •  眼角桃花
    2020-11-30 03:54

    This is usually caused by an aborted connect. You can verify this by checking the status:

    mysql> SHOW GLOBAL STATUS LIKE 'Aborted_connects';
    

    If this counter keeps increasing as you get the lost connections, that's a sign you're having a problem during connect.

    One remedy that seems to work in many cases is to increase the timeout. A suggested value is 10 seconds:

    mysql> SET GLOBAL connect_timeout = 10;
    

    Another common cause of connect timeouts is the reverse-DNS lookup that is necessary when authenticating clients. It is recommended to run MySQL with the config variable in my.cnf:

    [mysqld]
    skip-name-resolve
    

    This means that your GRANT statements need to be based on IP address rather than hostname.


    I also found this report from 2012 at the f5.com site (now protected by login, but I got it through Google cache)

    It is likely the proxy will not work unless you are running BIG-IP 11.1 and MySQL 5.1, which were the versions I tested against. The MySQL protocol has a habit of changing.

    I suggest you contact F5 Support and confirm that you are using a supported combination of versions.

提交回复
热议问题