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

  • 相关阅读:
    绑定方式开始服务&调用服务的方法
    采用服务窃听电话示例
    后台服务运行示例
    Android短信监听器——示例
    利用广播实现ip拨号——示例
    Android图片的合成示例
    IIS 7.5 发布Web 网站步骤
    C# 中 多线程同步退出方案 CancellationTokenSource
    UML 类图常用表示方法.
    Socket Receive 避免 Blocking
  • 原文地址:https://www.cnblogs.com/connected/p/13850990.html
Copyright © 2011-2022 走看看