简体   繁体   中英

MYSQL : error 1045 (28000).

This is my first time dealing with MySQL tables. I am taking a Linux system admin class in my college and I encountered a problem while following the lab.

When I do this command: GRANT ALL ON alpha.* TO dbuser@10.10.0.6 IDENTIFIED BY 'CSCI480';

and later do: mysql -udbuser -p -h 10.10.0.6

I get access denied message.

I would like to know what exactly is going on, why do I get those message. By the way, I am just following my Professor's Lab guide.

Followed lab

If it's on the localhost, just use:

GRANT ALL ON alpha.* TO dbuser@localhost IDENTIFIED BY 'CSCI480';

and

mysql -u dbuser -p

Edit:

I noticed you stated the error says "using password: NO". After the above command press Enter and it will ask you for a password, type: CSCI480. Is it prompting you for a password? What if you try:

mysql -u dbuser -pCSCI480

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