安裝並初始化MySql
sudo pacman -S mysql
正在安裝 mysql-clients (8.0.11-1)... 正在安裝 mysql (8.0.11-1)... :: You need to initialize the MySQL data directory prior to starting the service. This can be done with mysqld --initialize command, e.g.: mysqld --initialize --user=mysql --basedir=/usr --datadir=/var/lib/mysql :: Additionally you should secure your MySQL installation using mysql_secure_installation command after starting the mysqld service
初始化MySql數據目錄 控制台會輸出root臨時密碼 注意記錄
mysqld --initialize --user=mysql --basedir=/usr --datadir=/var/lib/mysql
查看MySql狀態
sudo systemctl status mysqld
啟動MySql服務/開機自啟
sudo systemctl enable mysqld sudo systemctl start mysqld
連接工具
1.mysql workbench
2.manjaro 商店搜索 dbeaver
dbeaver 安裝根據步驟走一般不會出錯 如果使用root鏈接可能提示 Public Key Retrieval is not allowed
解決: 將allowPulicKeyRetrieval 設置為true 或者切換非root用戶
安裝並初始化MySql
sudo pacman -S mysql
正在安裝 mysql-clients (8.0.11-1)...
正在安裝 mysql (8.0.11-1)...
:: You need to initialize the MySQL data directory prior to starting
the service. This can be done with mysqld --initialize command, e.g.:
mysqld --initialize --user=mysql --basedir=/usr --datadir=/var/lib/mysql
:: Additionally you should secure your MySQL installation using
mysql_secure_installation command after starting the mysqld service
初始化MySql數據目錄/注意記錄root臨時密碼
mysqld --initialize --user=mysql --basedir=/usr --datadir=/var/lib/mysql
查看MySql狀態
sudo systemctl status mysqld
啟動MySql服務/開機自啟
sudo systemctl enable mysqld
sudo systemctl start mysqld
作者:紹重先
鏈接:https://www.jianshu.com/p/12c871f937f7
來源:簡書
著作權歸作者所有。商業轉載請聯系作者獲得授權,非商業轉載請注明出處。