본문 바로가기
DataBase/MySQL

[MySQL] ERROR 1044 (42000): Access denied for user 'user'@'localhost' to database 'userdb'

by 빅경 2024. 8. 22.
728x90
반응형

 

grant all privileges on db_name.* to 'user_name'@localhost;
grant all privileges on db_name.* to 'user_name'@'%';

show grants for user_name@localhost;
show grants for user_name@'%';

flush privileges;

728x90
반응형