Virtual space PHP program does not have access to MySQL, how to handle

Source: Internet
Author: User
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.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.