mysql8修改密码
2020-01-12
1 分钟阅读 (38 字)
bash
12
mysql -u root -pALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密码';
优化mysql占用的内存
bash
1
vim /etc/mysql/mysql.conf.d/mysqld.cnf
toml
12345
[mysqld]performance_schema_max_table_instances=400table_definition_cache=400table_open_cache=256performance_schema = off
重启mysql
bash
1
systemctl restart mysql