Mysql 执行安装脚本报错Changed limits:

安装Mysql软件的时候报错,如下:

[root@db bin]# ./mysql_install_db --basedir=/usr/local/mysql --datadir=/u01/app/mysql/data/ --user=mysql
2019-11-09 22:33:39 [WARNING] mysql_install_db is deprecated. Please consider switching to mysqld --initialize
2019-11-09 22:33:49 [WARNING] The bootstrap log isn't empty:
2019-11-09 22:33:49 [WARNING] 2019-11-09T14:33:39.288358Z 0 [Warning] --bootstrap is deprecated. Please consider using --initialize instead
2019-11-09T14:33:39.289083Z 0 [Warning] Changed limits: max_open_files: 1024 (requested 5000)
2019-11-09T14:33:39.289096Z 0 [Warning] Changed limits: table_open_cache: 431 (requested 2000)

搞定系统的max_open_files限制

vi /etc/security/limits.conf ,最后面增加两行

* hard nofile 65535 PS:大于50000即可

* soft nofile 65535

猜你喜欢

转载自www.cnblogs.com/guipeng/p/11828477.html