우분투에서 MySQL 설치하기
Install
apt install -y mysql-server
캐릭터셋 설정하기
$ vi /etc/my.cnf
...
[mysqld]
character-set-server=utf8mb4
collation-server=utfmb4_unicode_ci
systemctl restart mysql
서버 재부팅시 자동 활성화하기
$ systemctl stop mysql
$ systemctl start mysql
$ systemctl enable mysql
Uninstall
dpkg -l | grep mysql
systemctl stop mysql
apt -y purge mysql-server mysql-server-8.0 mysql-server-core-8.0 mysql-common mysql-client-core-8.0 mysql-client-8.0
apt -y autoremove