1. 程式人生 > >linux centos/redhat mysql8.0安裝(彙總貼)

linux centos/redhat mysql8.0安裝(彙總貼)

大家好,我是烤鴨:

今天分享一下linux 裝 mysql8.0。以下都是實踐過的可以用的。

 

1.  yum方式安裝(最簡單方式)

https://blog.csdn.net/weixin_37264997/article/details/80342838

 

2. linux系統安裝mysql8.0.11完整教程(一般採用這個)

yum版本可能不是最新的,而且不能指定安裝目錄。這個教程比較麻煩,中間也可能遇到不同問題,下面有解答

https://blog.csdn.net/changyinling520/article/details/80963015

 

3.  出現的問題總結

 

  mysqld_safe Directory '/var/lib/mysql' for UNIX socket file don't exists.

https://blog.csdn.net/qq_32331073/article/details/76229420

 

  Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

https://www.cnblogs.com/wzbz/p/6686179.html

 

  mysql8 :客戶端連線caching-sha2-password問題

https://blog.csdn.net/u010026255/article/details/80062153

 

【mysql】You must reset your password using ALTER USER statement before executing this statement報錯處理

https://blog.csdn.net/muziljx/article/details/81541896

 

 MYSQL8.0以上版本正確修改ROOT密碼

https://blog.csdn.net/yi247630676/article/details/80352655

 

更改使用者密碼、許可權命令:

ALTER USER 'root'@'%'  IDENTIFIED WITH mysql_native_password BY 'passwordd';

ALTER USER 'root'@'%'  IDENTIFIED WITH mysql_native_password BY 'passwordd';

update user set host = 'localhost' where user='root';

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'passwordd' WITH GRANT OPTION;