更改加密方式:ALTER USER'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;
更新用户密码:ALTER USER'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
刷新权限:FLUSH PRIVILEGES;
-----------------------
基本操作命令:
show databases;
create database 库名;
use mysql; //打开库
mysqladmin -u用户名 -p旧密码 password 新密码
drop database 删库名;
drop table 删表名;
Comments | NOTHING