centos默认安装的mariadb没有密码,需要重启设置一下
mysql -h localhost -u root -p登录
输入
ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';
FLUSH PRIVILEGES;
允许远程连接
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;
FLUSH PRIVILEGES;
-
FLUSH PRIVILEGES;
-
、
-
FLUSH PRIVILEGES;
阅读(1914) | 评论(0) | 转发(0) |