With MYSQLI database error, but replaced with mysql_connect can connect

Source: Internet
Author: User
Ali has a virtual host, wrote a small program want to put on the above run, code with MYSQLI database error, but mysql_connect can connect
MYSQLI Connection Error message:
Warning:mysqli::mysqli (): (hy000/1044): Access denied for user ' qdm177116231 ' @ '% ' of database ' data ' in D:xampphtdocstest . PHP On line 475

Reply content:

Ali has a virtual host, wrote a small program want to put on the above run, code with MYSQLI database error, but mysql_connect can connect
MYSQLI Connection Error message:
Warning:mysqli::mysqli (): (hy000/1044): Access denied for user ' qdm177116231 ' @ '% ' of database ' data ' in D:xampphtdocstest . PHP On line 475

At least put the code out, you're wrong, or you don't have enough authority.

qdm177116231 ' @ '%
Check the user table to see if users have access to host hosts.

Database user qdm177116231 permissions are not enough, you can use navicat more that the user should be able to

  • 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.