CentOS 7的yum源中貌似没有正常安装MySQL时的MySQL-sever文件,需要去官网上下载
成功安装之后重启@R_403_198@服务
#service@R_403_198@drestart
|
初次安装@R_403_198@是root账户是没有密码的
设置密码的方法
# @R_403_198@ -uroot
@R_403_198@> set password for ‘root’@‘localhost’ = password('mypasswd');
@R_403_198@> exit
搞定!
远程授权连接@R_403_198@
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;
FLUSH PRIVILEGES;
原文链接:https://www.f2er.com/centos/379163.html