Ubuntu安装mariadb数据库

安装

sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo apt-get update
sudo apt-get install mariadb-server

配置

Created symlink /etc/systemd/system/mysql.service → /lib/systemd/system/mariadb.service.
Created symlink /etc/systemd/system/mysqld.service → /lib/systemd/system/mariadb.service.
Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service → /lib/systemd/system/mariadb.service.

安全设置

删除匿名用户
Remove anonymous users? [Y/n] Y

不允许root远程登录
Disallow root login remotely? [Y/n] Y

删除测试数据库并访问它
Remove test database and access to it? [Y/n] Y

参考连接
https://downloads.mariadb.org/mariadb/repositories/#mirror=nethub&distro=Ubuntu&distro_release=xenial–ubuntu_xenial&version=10.2
https://mariadb.com/kb/en/library/installing-mariadb-deb-files/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章