Why is the installation of the Guset project unsuccessful in chapter 2 of the first season of php by Li Yanhui? I followed the instructor step by step. please kindly advise. thank you!

Source: Internet
Author: User
Tags mysql login
Why is the installation of the Guset project unsuccessful in chapter 2 of the first season of php by Li Yanhui? I followed the instructor step by step. please kindly advise. thank you! Webpage prompt: Warning: mysql_connect (): Access denied for user 'root' @ 'localhost' (using password: YES) in D: \ AppServ \ www \ Guest \ conn. php on line 6 (several garbled Diamond characters)



(Sorry, the image cannot be uploaded)
Ps: The database has been loaded successfully.


Reply to discussion (solution)

The MySQL login password is incorrect.

Change the character set of the browser to gb2312 to see what garbled text is.

The database password is incorrect.

You did this step by step, but you have to change the mysql configuration parameters, user name and password.

Thank you for setting the database logon name and password. How can I import the guest database successfully? However, the website cannot be opened through http: // localhost: 8082/guest in the browser window.
This is the imported database.

This is an error message.

Isn't it clear that the root user's password is incorrect?
You set the password. you didn't change it in the program.

Change the password in mysql_connect () in conn. php to your local mysql root password.

I don't know. I remember that I set the user name root and password XXXX. How can I change it? Thank you ~

Thank you for solving the problem ~~ Thank you ~~~

Enter the username and password you used in phpMyAdmin in the configuration file of the program.
You are teaching you how to build a project? What is a teacher?

Upstairs, I am angry because of my poor basic knowledge. The teacher's previous courses should be explained, but I did not read them. thank you for your understanding. I also thank the teacher for his education ~~~

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.