简体   繁体   中英

Warning: mysqli::__construct(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) This is the problem im dealing with

enter image description here

this is my code. when i remove the numbers inside the password the program runs just fine. is it okay to leave it without a password?

If you get the Access denied for.. when entering 123 as password and you don't get it when removing 123 in your password field it probably means your database user root doesn't have a password.

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