PHP-Related problem solving

Source: Internet
Author: User
PHP Problem Solving
Enter localhost to come out with this error:

The page cannot be accessed

Error Type: 500


More information is:

Can ' t contact the database server:access denied for user ' aeed/user ' @ ' localhost ' (using Password:yes) (localhost)

------Solution--------------------
User name or password error

Aeed/user, you have a weird username.
------Solution--------------------
discuss

I started the MYSQL5_PN service in the service.
Results:
Error 1067: The process terminated unexpectedly.


How to solve this problem?

------Solution--------------------
Database connection error, check.

Can install a MySQL interface management tool, easy to learn
------Solution--------------------
This is a problem with the database server.
PHP is not very related
------Solution--------------------
Buddy is database not connected!
The main reason is that your database uses a password, and you do not use the password when you connect!
Do you use root and the password is empty when you connect?
And the database you are connected to needs a password!
This problem I have encountered, is generally a database password problem! Dude, go check it out!
------Solution--------------------
See if the database is properly installed, boot no, if it is started correctly, check the user name and password is not consistent.
------Solution--------------------
Unable to start MySQL What are you waiting for, unloading the load of MySQL.

Explore

Now the MYSQL5_PN are not starting, prompt:

The MYSQL5_PN service cannot be started on the local computer.
Error 1067: The process terminated unexpectedly.

I copied the code here.

Environment should be good, others wrote a phpinfo.php to me can test pass, but is input localhost:
Tips:
(Can ' t contact the database Server:can ' t connect to mysq ...

------Solution--------------------
First Use the connection tool, connect the database, so that you confirm that your database is open, the user password is correct, and then you re-troubleshoot is not a PHP connection class has a problem
------Solution--------------------
Delete the password, do not enter the password, just fine
  • 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.