Virtual space PHP program does not have access to MySQL
The operation of their own local construction is normal, thrown into space can not access the (database address changed, database tables are also built, statements can be executed accurately).
I've tried several ways.
Is there a great God who has this experience, is not thrown into space to set what things?
It is best to give a simple link case, and find out the data, thank you very much.
I've been searching the internet for several ways of linking.
------Solution--------------------
Debug according to the error message.
------Solution--------------------
Don't know what your "no access" means? You should provide more information.
------Solution--------------------
Database Tools for access to databases
The local build is functioning normally.
500 error occurred
Depending on the information you provide and the code snippet, you can only say that your server does not support MYSQLI extensions
Try using MySQL extension instead
------Solution--------------------
The information you send out is too limited, send the relevant code block to see, and support the error is which line.
A bit of suspicion is that the path to the include () reference file is incorrect.
------Solution--------------------
Then you use the header to specify the character set to try.
------Solution--------------------
At the beginning of this PHP add the following line of code to try to see if it will output other errors:
PHP Code
Error_reporting (E_all);
------Solution--------------------
A user name or password error causes a series of subsequent errors. The character set is solved first. Look at your output are garbled.
------Solution--------------------
Access denied for user ' zuohou66xy1 ' @ ' 483EF4CDF4B24BB '
Deny Access Oh, is the database on the remote machine? Problems with database users, permissions configuration.
------Solution--------------------
It's a denial of access, indeed.