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

  • 相关阅读:
    sublime3 常用快捷键
    sublime3 常用插件
    前端整理——css部分
    JS数组与对象的遍历方法大全
    Javascript 异步加载详解
    五大主流浏览器内核的源起以及国内各大浏览器内核总结
    JavaScript的分支结构(switch,if..else)
    js---作用域,作用域链,立即执行函数,闭包
    js预编译
    利用js实现轮播图
  • 原文地址:https://www.cnblogs.com/connected/p/13850990.html
Copyright © 2011-2022 走看看