centos下mysql安装
下载
wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
安装
yum -y install mysql57-community-release-el7-10.noarch.rpm
安装服务
yum -y install mysql-community-server
启动服务
service mysqld start 密码设置Wang_159
查看日志密码
grep "password" /var/log/mysqld.log
修改密码
ALTER USER 'root'@'localhost' IDENTIFIED BY 'new password';
开启远程访问
grant all privileges on *.* to 'root'@'192.168.0.1' identified by 'password' with grant option;
yum list installed | grep 软件或者包名 查看是否安装