MariaDB數(shù)據(jù)庫管理系統(tǒng)是MySQL的一個分支,主要由開源社區(qū)在維護,采用GPL授權(quán)許可。開發(fā)這個分支的原因之一是:甲骨文公司收購了MySQL后,有將MySQL閉源的潛在風險,因此社區(qū)采用分支的方式來避開這個風險。MariaDB的目的是完全兼容MySQL,包括API和命令行,使之能輕松成為MySQL的代替品。
安裝mariadb,大小59 M。
[root@yl-web yl]#yum install mariadb-server mariadb
mariadb數(shù)據(jù)庫的相關(guān)命令是:
systemctl start mariadb ?#啟動MariaDB
systemctl stop mariadb ?#停止MariaDB
systemctl restart mariadb ?#重啟MariaDB
systemctl enable mariadb ?#設(shè)置開機啟動
所以先啟動數(shù)據(jù)庫
[root@yl-web yl]#systemctl start mariadb