I am trying to connect to my db through phpmyadmin but I can't get connected no matter what solutions I try.
I am able to connect to the phpmyadmin screen but when I try to access my webpage I am met with the error.
Here it is expanded.
mysqli::__construct(): (HY000/1045): page error
I'm trying to access the path xampp/htdocs/pfs (my site).
I am using port 4306
my username/password is root and no password
Here's my phpmyadmin root user information too
Is there another file path the phpmyadmin reads username/password information from that I'm missing? Or am I trying to access my webpage in the incorrect way? I can't figure this one out.
If anyone can help I'd appreciate it.
I've tried about 20 thread solutions from stackoverflow that were titled with the mysqli::__construct(): (HY000/1045): error
I am expecting to be able to view my webpage through htdocs and then be able to show CRUD statements.
Here's what I tested.
you need to add database name in mysqli function call:
$mysqli = new mysqli("localhost","root","","database_name");
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.