There is a virtual host on Alibaba, and I wrote a small program to run it on it. The code uses mysqli to connect to the database and reports an error. However, if I change to mysql_connect, I can connect to mysqli. the error message is: Warning: mysqli:: mysqli () :( HY0001044): Accessdeniedforuser... there is a virtual host on Alibaba. I wrote a small program and wanted to run it on it. in the code, I used mysqli to connect to the database and reported an error, but changed it to mysql_connect to connect.
Mysqli connection error message:
Warning: mysqli (): (HY000/1044): Access denied for user 'qdm177116231 '@' % 'to database 'data' in D: Xampphtdocstest. php on line 475
Reply content:
There is a virtual host on Alibaba. I wrote a small program and wanted to run it on it. in the code, I used mysqli to connect to the database and reported an error, but changed it to mysql_connect to connect.
Mysqli connection error message:
Warning: mysqli (): (HY000/1044): Access denied for user 'qdm177116231 '@' % 'to database 'data' in D: Xampphtdocstest. php on line 475
At least post the code. it should be because you entered the error or you have insufficient permissions.
Qdm177116231 '@' %
Check the user table to see if the user has the permission to access the host ~~~
The database user qdm177116231 has insufficient permissions. you can use navicat to make it easier.