安裝
打開終端 輸入:sudo apt install mysql-sercer mysql-cilient 等待安裝
查看資料庫是否安裝 輸入:ps -ef | grep mysql
沒安裝成功沒事在輸一遍安裝命令
配置
一 ,cd到mysql目錄下 
二,組態檔在 mysqldump.cnfx下 cd /erc/mysql/connf.d/mysqld.cnf
把bing 改成0.0.0.0

修改密碼
1,在etc/mysql目錄下打開debian.cnf (可查看mysql 的各項資訊 有用戶名 和密碼
2,打開mysql 使用用戶名和密碼
格式為 sudo mysql -uroot -p 密碼
3,切換到 mysql資料庫中
use mysql
4, 修改root密碼
alter user 'root'@'localhost' identified with mysql_native_password by '123456';
5,重啟下服務器
flush privileges;
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/300574.html
標籤:其他
上一篇:OpenCV中的「透視變換 / 投影變換 / 單應性」—cv.warpPerspective、cv.findHomography
