mysql 設置不了短串密碼怎麼辦 You must reset your password using ALTER USER statement before executing this stat

centos7+ 安裝 mysq 5.7 https://www.linuxidc.com/Linux/2016-09/135288.htmlinux

 

set global validate_password_policy=0; centos

set global validate_password_length=4;centos7

 

再受權spa

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;htm

 

初次安裝完使用後報:MySQL Packet for query is too large get

解決辦法:class

1.首先在控制檯查詢一下:SHOW VARIABLES LIKE '%max_allowed_packet%';date

2.set global max_allowed_packet = 5*1024*1024*10; 查詢

相關文章
相關標籤/搜索