apt-get update

yum

linux yum 설치

Ubuntu 18.04 yum 문제 해결법

mysql

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 설정