zoukankan      html  css  js  c++  java
  • mysql could not be resolved: Name or service not known

    2020-10-20T13:33:24.207608Z 10263 [Warning] [MY-010055] [Server] IP address '172.16.10.12' could not be resolved: Name or service not known
    2020-10-20T13:35:14.248171Z 10337 [Warning] [MY-010055] [Server] IP address '172.16.10.152' could not be resolved: Name or service not known
    2020-10-20T13:35:18.892607Z 10340 [Warning] [MY-010055] [Server] IP address '172.16.10.51' could not be resolved: Name or service not known
    2020-10-20T13:35:53.565445Z 5 [Warning] [MY-010956] [Server] Invalid replication timestamps: original commit timestamp is more recent than the immediate commit timestamp. This may be an issue if delayed replication is active. Make sure that servers have their clocks set to the correct time. No further message will be emitted until after timestamps become valid again.
    2020-10-20T13:38:14.785984Z 10462 [Warning] [MY-010055] [Server] IP address '172.16.10.77' could not be resolved: Name or service not known
    2020-10-20T16:24:13.071114Z 17372 [Warning] [MY-010055] [Server] IP address '172.16.10.75' could not be resolved: Name or service not known
    2020-10-21T01:15:20.377360Z 39489 [Warning] [MY-010055] [Server] IP address '10.38.144.15' could not be resolved: Name or service not known

    skip-name-resolve 参数的作用:不再进行反解析(ip不反解成域名),这样可以加快数据库的反应时间。

    修改配置文件添加并需要重启:

    vi /etc/my.cnf

    追加 skip-name-resolve

     

    然后重启mysql服务

    systemctl restart mysqld

  • 相关阅读:
    提高samba的传输速度[转载]
    centos安装samba,与其它OS共享文件[转载]
    解决*unix系统下Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
    java在windows cmd中乱码
    mysql 主从复制配置
    mysql 开启binlog
    关于mysql varchar类型的长度
    MyISAM的表锁
    html页面跳转不保存上个页面的记录
    golang 下载所有依赖
  • 原文地址:https://www.cnblogs.com/connected/p/13850990.html
Copyright © 2011-2022 走看看