1)rhel 7虛擬機mysql
2)配置完163網絡yum源,而且保證網絡通暢sql
1) 安裝Mysql和Mysql-devel網絡
命令:yum install mysqlide
yum install mysql-develrest
2 ) 安裝mysql-serverserver
命令: wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpmget
rpm -ivh mysql-community-release-el7-5.noarch.rpm虛擬機
yum install mysql-communityit
3)重啓mysql服務配置
命令 : service mysqld restart
1)設置root密碼
命令: mysql -uroot
set password for 'root'@'localhost' =password('password');
2)遠程鏈接設置:
(1) 建立新用戶
create user 'username'@'%' identified by 'password';
(2)爲用戶遠程鏈接設置權限
grant all privileges on *.* to username@'%'identified by 'password';
至此,mysql基本配置完成