There is a virtual host on Alibaba. I wrote a small program and wanted to run it on it. The code uses mysqli to connect to the database and reports an error, but it can be connected by using mysql_connect.
Mysqli connection error message:
Warning: mysqli::mysqli(): (HY000/1044): Access denied for user 'qdm177116231'@'%' to database 'data' in D:Xampphtdocstest.php on line 475
There is a virtual host on Alibaba. I wrote a small program and wanted to run it on it. The code uses mysqli to connect to the database and reports an error, but it can be connected by using mysql_connect.
Mysqli connection error message:
Warning: mysqli::mysqli(): (HY000/1044): Access denied for user 'qdm177116231'@'%' to database 'data' in D:Xampphtdocstest.php on line 475
At least post the code. It may be that you filled it in wrong or you don’t have enough permissions
qdm177116231'@'%
Check the user table to see if the user has permission to access the host~~~
The database user qdm177116231 has insufficient permissions. You can use navicat to update the user and it should be fine