Jump to content
PHP論壇人

2-1.單獨安裝MariaDB


Recommended Posts

----------------------
單獨安裝MariaDB
----------------------


screen -S lnmp

cd /root/lnmp2.0/

./install.sh db

 

You have 11 options for your DataBase install.
1: Install MySQL 5.1.73
2: Install MySQL 5.5.62 (Default)
3: Install MySQL 5.6.51
4: Install MySQL 5.7.42
5: Install MySQL 8.0.33
6: Install MariaDB 5.5.68
7: Install MariaDB 10.4.29
8: Install MariaDB 10.5.20
9: Install MariaDB 10.6.13
10: Install MariaDB 10.11.3
0: DO NOT Install MySQL/MariaDB
Enter your choice (1, 2, 3, 4, 5, 6, 7, 8, 9, 10 or 0): 


選擇MariaDB 10.6

按9

 


Using Generic Binaries [y/n]: 

選擇 y

 

二進制包 (Generic Binaries)
如果系統及版本符合要求且配置夠的話建議還是編譯安裝
看你系統版本,安裝要求上有說明,如果你的系統版本過低不支援mysql 8.0.33直接 y 就可以了
如果你系統是最新的且記憶體滿足編譯要求的話可以編譯安裝,就是安裝時間會稍微長一些

 

 

Please setup root password of MySQL
Please enter: 

按Enter,將自動給一組密碼

MySQL root password: lnmp.org#隨機數字

 

 


Do you want to enable or disable the InnoDB Storage Engine?
Default enable,Enter your choice [Y/n]: 
按 y

 

 


Press any key to install...or Press Ctrl+c to cancel
按任意鍵,開始安裝

 

 

開始漫長的安裝過程,若斷線

因為一開始就用指令 screen -S lnmp 去安裝

那麼恢復連線,可以敲指令繼續 screen -r lnmp


MariaDB: OK
MariaDB root password: lnmp.org#XXXXX
Install mariadb-10.6.13 completed! enjoy it.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...