1. 程式人生 > >關於mysql-community-server-5.7.13安裝過程

關於mysql-community-server-5.7.13安裝過程

由於分散式系統架構中含有mysql中介軟體,用以元資料的儲存。搞了一個社群版的mysql,版本號5.7.13,GA版本(整體可用)。
網路好的時候 dev.mysql.com 訪問很流暢,下載 檔案mysql-community-server-5.7.13-1.el7.x86_64.rpm ,但是安裝過程需要多個rpm包,反覆多次,最後乖乖的下載 mysql-5.7.9-1.el7.x86_64.rpm-bundle.tar (500M)
http://cdn.mysql.com/archives/mysql-5.7/mysql-5.7.9-1.el7.x86_64.rpm-bundle.tar
1、安裝 mysql-community-common-5.7.9-1.el7.x86_64.rpm 的時候提示,有檔案衝突,如:

warning: mysql-community-common-5.7.9-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY Preparing… ################################# [100%] file /usr/share/mysql/czech/errmsg.sys from install of mysql-community-common-5.7.9-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.41-2.el7_0.x86_64
2、出現以上資訊說明有其他版本的mysql類庫存在,需要刪除後再安裝
檢查安裝包:
[

[email protected] mysql]# rpm -qa | grep ‘mariadb-libs
mariadb-libs-5.5.41-2.el7_0.x86_64

解除安裝舊版本:
[[email protected] mysql]# rpm -e mariadb-libs-5.5.41-2.el7_0.x86_64 –nodeps

3、安裝 mysql-community-server-5.7.9-1.el7.x86_64.rpm
安裝過程如下:
[[email protected] mysql]# rpm -ivh mysql-community-common-5.7.9-1.el7.x86_64.rpm warning: mysql-community-common-5.7.9-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY Preparing… ################################# [100%] Updating / installing… 1:mysql-community-common-5.7.9-1.el################################# [100%] [

[email protected] mysql]# rpm -ivh mysql-community-libs- mysql-community-libs-5.7.9-1.el7.x86_64.rpm mysql-community-libs-compat-5.7.9-1.el7.x86_64.rpm [[email protected] mysql]# rpm -ivh mysql-community-libs-5.7.9-1.el7.x86_64.rpm warning: mysql-community-libs-5.7.9-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY Preparing… ################################# [100%] Updating / installing… 1:mysql-community-libs-5.7.9-1.el7 ################################# [100%] [[email protected] mysql]# rpm -ivh mysql-community-client-5.7.9-1.el7.x86_64.rpm warning: mysql-community-client-5.7.9-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY Preparing… ################################# [100%] Updating / installing… 1:mysql-community-client-5.7.9-1.el################################# [100%] [[email protected] mysql]# rpm -ivh mysql-community-server-5.7.9-1.el7.x86_64.rpm warning: mysql-community-server-5.7.9-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY Preparing… ################################# [100%] Updating / installing… 1:mysql-community-server-5.7.9-1.el################################# [100%]

4、初始化mysql :
[[email protected] mysql]# mysqld –initialize
5、獲取初始化密碼:
[[email protected] mysql]# more /var/log/mysqld.log
2016-07-21T06:08:10.180268Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use –explicit_defaults_for_timestamp server op
tion (see documentation for more details).
2016-07-21T06:08:11.836294Z 0 [Warning] InnoDB: New log files created, LSN=45790
2016-07-21T06:08:12.113570Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2016-07-21T06:08:12.190776Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started
. Generating a new UUID: 812d4953-4f09-11e6-87e4-005056b00910.
2016-07-21T06:08:12.195975Z 0 [Warning] Gtid table is not ready to be used. Table ‘mysql.gtid_executed’ cannot be opened.
2016-07-21T06:08:12.197226Z 1 [Note] A temporary password is generated for [email protected]: b=/wpqyRK3hu
[[email protected] mysql]# chown mysql:mysql /var/lib/mysql -R
[[email protected] mysql]# su - mysql
[[email protected] mysql]# systemctl start mysqld.service
[[email protected] mysql]# cd
[[email protected] ~]# more .
./ .bash_history .bash_profile .cache/ .cshrc .tcshrc
../ .bash_logout .bashrc .config/ .ssh/ .viminfo
[[email protected] ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.9

Copyright (c) 2000, 2015, 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> show databases;
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
mysql> use mysql
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

修改密碼:

mysql> alter user ‘root’@’localhost’ identified by ‘passwd’;
Query OK, 0 rows affected (0.00 sec)

mysql> show databases;
+——————–+
| Database |
+——————–+
| information_schema |
| mysql |
| performance_schema |
| sys |
+——————–+
4 rows in set (0.00 sec)

mysql>

相關推薦

關於mysql-community-server-5.7.13安裝過程

由於分散式系統架構中含有mysql中介軟體,用以元資料的儲存。搞了一個社群版的mysql,版本號5.7.13,GA版本(整體可用)。 網路好的時候 dev.mysql.com 訪問很流暢,下載 檔案mysql-community-server-5.7.13-1

安裝mysql警告 warning: mysql-community-server-5.7.19-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key

紅帽安裝rpm安裝MySQL時爆出警告: 警告:MySQL-server-5.5.46-1.linux2.6.x86_64.rpm: 頭V3 DSA/SHA1 Signature, 金鑰 ID 5072e1f5: NOKEY 原因:這是由於yum安裝了舊版本的GPG

安裝最新Mysql community server 5.7.10社群版的坑爹經歷

北京時間昨晚(2015-12-07)22點左右,mysql開發團隊釋出了最新的5.7.10版本,正好我這裡也需要安裝mysql,於是開始動作。 我的系統環境是centos7,64位系統,所以在http://dev.mysql.com/downloads/mysql/下載頁面

CentOS7上yum安裝資料庫伺服器MySQL Community Server 5.7

準備 CentOS7預設安裝了和MySQL有相容性的MariaDB資料庫,在我們安裝MySQL5.7之前為了避免發生衝突首先刪除MariaDB。 # rpm -qa | grep maria mariadb-libs-5.5.50-1.el7_2.x86_64 # yum

【轉載】MySQL Community Server 5.7.5釋出

改進1: 記憶體動態管理: 此版本對InnoDB的Buffer Pool(innodb_buffer_pool_size)允許在聯機狀態下修改其大小.這極大地提升了InnoDB快取區管理的靈活性,另外可

MySQL Community Server 5.7.19環境部署

2. 解壓MySQL壓縮包    將以下載的MySQL壓縮包解壓到自定義目錄下,我的解壓目錄是:    "D:\Program Files\MySQL\mysql-5.6.13-win32"    將解壓目錄下預設檔案 my-default.ini 拷貝一份,改名 my.i

用zip安裝包在win 10安裝mysql community server 5.6.33(64bit)的過程

原來用MSI方式安裝了MySql 5.7版,因需要(貌似對vs2015+mvc+mysql+ef不太支援),御載後重裝5.6.33版(64bit),並希望將資料庫資料檔案儲存目錄設定為d:\mysqldata。作業系統是win10(64bit)。 1)下載zip 開啟htt

mysql 5.7最新安裝過程以及添加環境變量

mysql 5.7 環境變量本文出自 “大李子” 博客,謝絕轉載!mysql 5.7最新安裝過程以及添加環境變量

CentOS7.4下使用通用二進制文件安裝MySQL Community Server 5.6.41

prevent 服務 password security 添加mysql用戶 用戶組 tmp 下使用 .cn 1、卸載自帶MySQL rpm -qa | grep mysqlrpm -e --nodeps mysql* 2、添加mysql用戶和用戶組 groupadd my

win10環境下MySQL Community Server 8.0.13.zip的安裝及常見問題

win10環境下MySQL Community Server 8.0.13.zip的安裝及常見問題 下載mysql->官網連結 將mysql-8.0.13-winx64.zip解壓, 解壓出來時是沒有my.init檔案的,需要自己建立,並輸入以

安裝mysql報錯5.7.13-Table 'mysql.user' doesn't existFor more information

臨時寫的一個小系統客戶要求用mysql,所以下載一個來研究下。 解壓後開始配置my.ini 配置my.ini [mysql] # 設定mysql客戶端預設字符集 default-character-set=utf8 [mysqld]

最全的mysql 5.7.13 安裝配置方法圖文教程(linux)

linux環境Mysql 5.7.13安裝教程分享給大家,供大家參考,具體內容如下 #### 1系統約定 安裝檔案下載目錄:/data/software Mysql目錄安裝位置:/usr/local/mysql 資料庫儲存位置:/data/mysql 日誌儲存位置:/dat

Error: Package: mysql-community-server-5.6.41-2.el7.x86_64 (mysql56-community) Requires:

http://www.cnblogs.com/xiaoluo501395377/archive/2013/04/07/3003278.html    MySQL登陸失敗:ERROR 2002 (HY000): Can't connect to local MySQL

MySQL綠色版5.7以上安裝教程

寫在前面:5.7增加了安全性,預設root密碼不在為空,而是初始化時隨機生成一個root密碼,改root密碼的方式也不一樣了 下載地址 http://dev.mysql.com/downloads/mysql/ 一、下載後解壓到相關目錄 比如我的解壓目錄是: D:\

MySQL5.7.03 更換高版本到 5.7.17安裝過程及發現問題解決方案

一、如何安裝?1、Windows PowerShell 命令視窗(以管理員的身份)。定位到MySQL安裝目錄【我的D:\Program Files\mysql-5.7.9-winx64】的bin目錄下,輸入【mysqld -install】。如下圖,表示安裝成功2、開啟MyS

MySQL最新版5.7.12安裝教程(windows)

一、從官網下載ZIP Archive檔案 網址:http://dev.mysql.com/downloads/mysql/ 二、解壓 把下載好的壓縮包解壓到你想要安裝的地方 三、配置ini檔案 開啟

Linux Redhat 4.4.7 安裝 8.0.13 MySQL Community Server

1.剛開始安裝mysql參考這個:     https://blog.csdn.net/a116475939/article/details/74625377 2.修改密碼 mysql> use mysql; #先把密碼置為空字串;(不讓後面修改密碼會報錯) mysql> u

windows 安裝 5.7.23 MySQL Community Server的正確步驟,避免踩坑

1、從官網上下載,解壓 2、在根目錄下建立my.ini 檔案   相關屬性可自行配置 [mysql] # 設定mysql客戶端預設字符集 default-character-set=utf8  [mysqld] #設定3306埠 port = 3306  # 設定mysq

mysql-5.7.13-winx64 免安裝版配置方法

comm 免密 install 免密碼登錄 命令 logs detail itl target 1.下載MySQL Community Server 5.7.13 解壓MySQL壓縮包 2.修改 my-default.ini skip-grant-

朝花夕拾:linux CentOS 7 安裝mysql 5.7.13

linux centos 7 安裝mysql 5.7 1.安裝環境:[root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core)Mysql版本號:mysql-5.7.13-linux-glibc2.5-