apt-get install mysql-server 설치
mysql -u root -p 실행
정보 변경
// mysql 5.x
mysql> update user set password=password('1234') where user='root';
mysql> update user set authentication_string=password('1234') where user='root';
// mysql 8.x
mysql> alter user 'root'@'localhost' identified with mysql_native_password by '1234';
mysql> FLUSH PRIVILEGES;
mysql> exit
cd /etc/mysql/mysql.conf.d 설정