Home  >  Article  >  Database  >  MysqL数据库太慢解决方案

MysqL数据库太慢解决方案

WBOY
WBOYOriginal
2016-06-07 16:16:371377browse

远程客户端连接MysqL数据库太慢解决方案 局域网客户端访问mysql 连接慢问题解决。 cd /etc/mysql vi my.conf [mysqld] skip-name-resolve 此选项禁用了DNS解析,连接速度会快很多。 不过,这样的话就不能在MySQL的授权表中使用 主机名了而只能用ip格式。

  远程客户端连接MysqL数据库太慢解决方案

  局域网客户端访问mysql 连接慢问题解决。

  cd /etc/mysql

  vi my.conf

  [mysqld]

  skip-name-resolve

  此选项禁用了DNS解析,连接速度会快很多。

  不过,这样的话就不能在MySQL的授权表中使用

  主机名了而只能用ip格式。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn