简体   繁体   中英

Mysql error connecting to DB

I tried everything I saw in 50 pages of searching. I am getting really hot headed over this. I reinstalled my machine and from now on Mysql just doesn't want to connect.

"Warning: mysqli_connect(): (HY000/1045): Access denied for user".

Tried going into the ini file, SQL commands GRANT and whatever you can think of. I can't connect to the damn thing. Can someone help?

尝试以root用户身份查看是否可行。

Create a new user using this code:

GRANT SELECT ON test.* TO pesho124@'localhost' IDENTIFIED BY 'maina123'; 

and see if that works.

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