# 설치
apt-get update
apt-get install mysql-server
apt-get install mariadb-server
# 사용자 추가
create user '[user]'@'%' identified by '[password]';
grant all privileges on *.* to '[user]'@'%';
grant all privileges on [db].* to '[user]'@'%';
# 원격허용(Root 접속)
cd /etc/mysql/mysql.conf.d
vi mysqld.cnf
/etc/mysql/mariadb.conf.d$ sudo vi 50-server.cnf
# 서비스 재시작
sudo service mysql restart