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

  • 相关阅读:
    Task 5.1 电梯调度程序需求调研报告
    Task 4 求数组的连续子数组的最大和(团队合作)
    class 3 求数组中的最大值(单元测试)
    《你的灯亮着吗》读书笔记3
    优惠购书
    校友聊NABCD
    环状二维数组(改进版)
    环状二维数组
    环状一维数组
    二维数组最大值
  • 原文地址:https://www.cnblogs.com/connected/p/13850990.html
Copyright © 2011-2022 走看看