创建文件
sudo vi /etc/my.cnf
写入保存:
[mysqld]
wait_timeout = 300
interactive_timeout = 300
确保其权限:
sudo chmod 644 /etc/my.cnf
重启mysql:
sudo service mysql restart
创建文件
sudo vi /etc/my.cnf
写入保存:
[mysqld]
wait_timeout = 300
interactive_timeout = 300
确保其权限:
sudo chmod 644 /etc/my.cnf
重启mysql:
sudo service mysql restart