久久久精品一区ed2k-女人被男人叉到高潮的视频-中文字幕乱码一区久久麻豆樱花-俄罗斯熟妇真实视频

Centos7yum安裝mysql5.7

Centos 7中將MySQL數(shù)據(jù)庫軟件從默認的程序列表中移除,用mariadb代替。
也就是說不能再跟之前6一樣,直接使用yum進行安裝,需要使用官網(wǎng)提供的軟件源進行安裝,此次安裝版本為5.7

成都創(chuàng)新互聯(lián)專注于海興網(wǎng)站建設服務及定制,我們擁有豐富的企業(yè)做網(wǎng)站經驗。 熱誠為您提供海興營銷型網(wǎng)站建設,海興網(wǎng)站制作、海興網(wǎng)頁設計、海興網(wǎng)站官網(wǎng)定制、重慶小程序開發(fā)公司服務,打造海興網(wǎng)絡公司原創(chuàng)品牌,更為您提供海興網(wǎng)站排名全網(wǎng)營銷落地服務。

1.     安裝官網(wǎng)提供的yum源

# wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
# rpm -ivh mysql57-community-release-el7-11.noarch.rpm

2.     安裝MySQL

# yum -y install mysql-server

 

3.     修改Mysql配置文件

[root@host-192-168-8-37 ~]# vim /etc/my.cnf
[mysqld]
character-set-server=utf8

 

4.     啟動MySQL

q 啟動MySQL

[root@master ~]# systemctl start mysqld

q 設置MySQL為開機啟動

[root@master ~]# systemctl enable mysqld

 

5.     修改密碼&進入MySQL數(shù)據(jù)庫

Mysql5.7版本及之后不再使用空密碼,在安裝時會生成臨時密碼并保存在日志文件中

[root@host-192-168-8-37 ~]# grep 'password' /var/log/mysqld.log 
2017-10-16T02:12:56.016829Z 1 [Note] A temporary password is generated for root@localhost: #zua)gQ?e5Gi

這里將用戶的密碼修改為:Mysql_password123

[root@host-192-168-8-37 yum.repos.d]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.7.19

 

Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
 
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
 
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
 
mysql> alter user 'root'@'localhost' identified by 'Mysql_password123';
Query OK, 0 rows affected (0.00 sec)
 
mysql>

 

6.    配置MySQL

q 創(chuàng)建數(shù)據(jù)庫(數(shù)據(jù)庫名稱:cache_cloud;編碼:UTF-8)

mysql> create database cache_cloud default charset utf8;
Query OK, 1 row affected (0.00 sec)
 
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| cache_cloud        |
| mysql              |
| performance_schema |
| sys                |
+--------------------+
5 rows in set (0.01 sec)
 
mysql>

當前題目:Centos7yum安裝mysql5.7
分享鏈接:http://sd-ha.com/article42/pchhec.html

成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供App開發(fā)、網(wǎng)站收錄、搜索引擎優(yōu)化、云服務器、品牌網(wǎng)站建設移動網(wǎng)站建設

廣告

聲明:本網(wǎng)站發(fā)布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創(chuàng)新互聯(lián)

h5響應式網(wǎng)站建設