#启动
systemctl start mysqld
#查看版本
mysql --version
#查看密码
cat /var/log/mysqld.log | grep password
#登入修改密码
ALTER USER 'root'@'localhost' IDENTIFIED BY '数据库密码';
#-创建用户并指定密码
CREATE USER u@'%' IDENTIFIED BY '密码';
#授权
GRANT ALL PRIVILEGES ON *.* TO u@'%' WITH GRANT OPTION;
#刷新配置
flush privileges;