简体   繁体   中英

1044 - Access denied for user 'homestead'@localhost

Hi I'm not sure if this asked already but it looks like the other related questions aren't the same. Here's what happened

I've got phpmyadmin installed with my homestead. I was trying to explore how privileges will affect access to database.

What I did. I removed global access for user homestead and now I have no more database on my phpmyadmin and if I try to create a database, I get this error:

#1044 - Access denied for user 'homestead'@'%' to database

How do I correct or revert back

You can try

 GRANT ALL ON *.* TO 'homestead'@'%' IDENTIFIED BY 'password';

and then refresh the privileges with

FLUSH PRIVILEGES;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM