Linux下修改MySql最大连接数-亲自试验

来源:互联网 发布:装饰工程报价软件 编辑:程序博客网 时间:2024/06/03 22:45
  1. 编辑Mysqld文件( vi /etc/init.d/mysqld )
  2. 在start()函数返回之前加如下代码  ( mysql -e 'set GLOBAL max_connections=1000;')

  3. grant reload on *.* to 'test'@'localhost';
  4. 可能会出现ERROR 1227 (42000) at line 1: Access denied; you need (at least one of) the SUPER privilege(s) for this operation这个错误
  5. 执行grant super on *.* to 'root'@'localhost';
0 0
原创粉丝点击