set password for 'root'@'localhost' = password('root');
접속불가시
grant all privileges on *.* to root@'%' identified by 'root';
grant all privileges on *.* to yona@'%' identified by 'yonadan';
grant all privileges on *.* to 'root'@'localhost' with grant option;
grant all privileges on *.* to root@'%';
GRANT ALL PRIVILEGES ON *.* TO 'yona'@'%';
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
flush privileges;
mysql 8.0 sequel Pro 접속 안될때. (ssl 이슈 이므로 , 아래 명령어 통해서 임시해결가능)
ALTER USER 'yourusername'@'localhost' IDENTIFIED WITH mysql_native_password BY 'youpassword';
# 실패! localhost --> % 로 해야 됨. workbench 는 localhost 아닌 127.0.0.1 로만 hostname지정 가능.
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
# 성공!
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';
flush privileges;
time zone 확인
SELECT b.name, a.time_zone_id
FROM mysql.time_zone a, mysql.time_zone_name b
WHERE a.time_zone_id = b.time_zone_id AND b.name LIKE '%Seoul';
+------------------+--------------+
| name | time_zone_id |
+------------------+--------------+
| Asia/Seoul | 310 |
| posix/Asia/Seoul | 904 |
| right/Asia/Seoul | 1499 |
+------------------+--------------+
###
SHOW VARIABLES WHERE Variable_name LIKE '%time_zone%';
+------------------+--------+
| Variable_name | Value |
+------------------+--------+
| system_time_zone | KST |
| time_zone | SYSTEM |
+------------------+--------+