CentOS安装mysql环境

前端之家收集整理的这篇文章主要介绍了CentOS安装mysql环境前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
[root@WaferSDK ~]# yum list | grep MysqL
[root@WaferSDK ~]# yum install -y MysqL-server MysqL MysqL-devel
[root@WaferSDK ~]# service MysqLd start
[root@WaferSDK ~]# MysqLadmin -u root password 'root'

登录MysqL中,赋予root远程登录权限:

MysqL> GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY "newpass";
MysqL> flush privileges;
原文链接:https://www.f2er.com/centos/377453.html

猜你在找的CentOS相关文章