标签:ide 允许 linux class roo linu word span 设置mysql
1、下载到自己指定的目录并安装
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm rpm -ivh mysql-community-release-el7-5.noarch.rpm yum update yum install mysql-server
2、设置权限
chown mysql:mysql -R /var/lib/mysql
3、初始化mysql
mysqld --initialize
4、启动mysql
systemctl start mysqld
5、设置mysql 密码
mysqladmin -u root password "your_password";
6、验证密码 进入mysql
mysql -u root -p 输入刚设置的密码,成功进入mysql。
7、开启允许局域网内连接
GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘youpassword‘ WITH GRANT OPTION;
//刷新权限
FLUSH PRIVILEGES;
标签:ide 允许 linux class roo linu word span 设置mysql
原文地址:https://www.cnblogs.com/rolayblog/p/11741919.html