## 配置运行远程连接 ``` GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION; ``` ## 配置使用账户密码登录 ``` use mysql; update user set authentication_string=password('password'),plugin='mysql_native_password' where user='root'; MariaDB [(none)]> set password for 'root'@'localhost' = password('123456'); MariaDB [(none)]> flush privileges; MariaDB [(none)]> set password for 'root'@'%' = password('123456'); ``` ``` SHOW VARIABLES LIKE 'validate_password%'; set global validate_password.policy=LOW; set global validate_password.length=6; ``` javascript面试题 Promise的顺序逻辑
No Leanote account? Sign up now.