标签:ber keyword ice centos安装 roo .so 远程 local rest
cd /usr/local/src/
wget http://repo.mysql.com/mysql57-community-release-el7-8.noarch.rpm
rpm -ivh mysql57-community-release-el7-8.noarch.rpm
yum -y install mysql-server
默认配置文件路径:
配置文件:/etc/my.cnf
日志文件:/var/log/var/log/mysqld.log
服务启动脚本:/usr/lib/systemd/system/mysqld.service
socket文件:/var/run/mysqld/mysqld.pid
my.cnf:
启动mysql服务
service mysqld restart
查看当前密码:
grep "password" /var/log/mysqld.log
重置密码:
<<mysql<< alter user ‘root‘@‘localhost‘ identified by ‘Root!!2018‘;
远程连接:
use mysql
grant all privileges on *.* to root@‘%‘ identified by "password";
flush privileges;
标签:ber keyword ice centos安装 roo .so 远程 local rest
原文地址:https://www.cnblogs.com/zhuxiang1633/p/9340915.html