在 CentOS 安裝好 Percona XtraDB Cluster 5.7
也正常啟用 mysql server 了
systemctl start mysql
但是無法用空密碼登入了
# mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

如何找到系統初始密碼?
找到 /var/log/mysqld.log
其中一行
2019-06-28T05:18:57.787444Z 1 [Note] A temporary password is generated for root@localhost: G3hshe5csL/q

沒錯,最後一個字串就是你root 密碼了

undefined
大數據分析之資料庫理論與實務(SQL Server 2017版)

作者: 曾守正, 周韻寰  
出版社:華泰文化  
 

arrow
arrow
    文章標籤
    percona mysql linux
    全站熱搜

    helloworld 發表在 痞客邦 留言(0) 人氣()