MySQL 5.7 미만 버전 mysql> use mysql; mysql> update mysql.user set password=password('비밀번호') where user='root'; mysql> flush privileges; mysql> select user,host,password from mysql.user; mysql> exit MySQL 5.7 mysql> use mysql; mysql> update user set authentication_string=password('비밀번호') where user='root'; 우분투 한정 mysql> update mysql.user set plugin='mysql_native_password', authentication_string=pass.....
원문 링크 : MySQL, MariaDB 비밀번호 변경 및 유저 생성