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

  • 相关阅读:
    计算机基础
    如何增加一个IT产品的用户黏性
    计算机相关专业一门课程一个案例
    【2012年6月14日】中兴发布Grand(智观)N970
    bmp格式浅析
    3Dbook的使用
    中英文翻译格式
    软件学习书籍推荐
    WEB开发基础
    PHP学习
  • 原文地址:https://www.cnblogs.com/connected/p/13850990.html
Copyright © 2011-2022 走看看