国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

CentOS7下安裝MySQL5.7

2019-11-08 20:47:20
字體:
來源:轉載
供稿:網友

環境:CentOS7、MySQL-5.7.17

1、軟件下載

在MySQL官網下載mysql-5.7.17-1.el7.x86_64.rpm-bundle.tar

2、解壓

tar -xvf mysql-5.7.17-1.el7.x86_64.rpm-bundle.tar

mkdir mysql

mv mysql-community*.rpm mysql

3、卸載mariadb

rpm -qa | grep mariadb

rpm -e --nodeps mariadb-libs-5.5.44-2.el7.centos.x86_64

4、安裝MySQL

rpm -ivh mysql-community-common-5.7.17-1.el7.x86_64.rpm rpm -ivh mysql-community-libs-5.7.17-1.el7.x86_64.rpm rpm -ivh mysql-community-client-5.7.17-1.el7.x86_64.rpm rpm -ivh mysql-community-server-5.7.17-1.el7.x86_64.rpm

5、設置密碼

vi /etc/my.cnf

[mysqld]之后添加skip-grant-tables

service mysqld start

mysql -uroot

>update mysql.user set authentication_string=passWord('123456') where user='root' ;

>flush PRivileges;

>exit;

service mysqld stop

vi /etc/my.cnf

刪除skip-grant-tables

service mysqld start

mysql -uroot -p123456

>set global validate_password_policy=0;

>set global validate_password_length=1;

>set global validate_password_mixed_case_count=2;

>set password = password('123456');

>exit;

6、開啟遠程登錄

mysql -uroot -p123456

>GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ IDENTIFIED BY ‘123456’ WITH GRANT OPTION; 

>FLUSH PRIVILEGES;


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 托克托县| 青岛市| 翁源县| 尼木县| 元朗区| 峨边| 盐边县| 姜堰市| 平罗县| 米脂县| 徐州市| 沙洋县| 清苑县| 兴宁市| 广平县| 社会| 双柏县| 姚安县| 芜湖县| 凉山| 出国| 甘孜县| 磴口县| 湖南省| 阳西县| 碌曲县| 乌拉特中旗| 汝城县| 西盟| 都昌县| 桐梓县| 金寨县| 浮梁县| 巴彦县| 临漳县| 成武县| 图木舒克市| 吉木乃县| 沁阳市| 遂宁市| 裕民县|