#2002 Cannot log in to the MySQL server
Language
Log in
Username:
Password:
#2002 Cannot log in to the MySQL server
Language
Log in
Username:
Password:
hello, to connect to MySQL in your script, you must first visit the MySQL Database Wizard in cPanel to create a new database and database user.
Then, in the script itself, use localhost as the hostname, and then the database name, user, and password you set up in the wizard
See the X10 wiki articles on MySQL Connection Errors and creating a MySQL database and user for more.
Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.Misson, not Mission.