MySQL server error using php calendar script

econhost

New Member
Messages
2
Reaction score
0
Points
0
Hi everyone,

I hope I'm posting this in the right place. I'm using a php calendar script (as a test run) and Im having problems connecting to the server. I looked at the support tickets in the knowledgebase with MySQL connection, but I think my problem comes from the fact that I have to connect through the setup manager. I think I am not putting in the correct host. What is my database host, and where can I find it?

Also, what does this error mean?
Lost connection to MySQL server at 'reading initial communication packet', system error: 111

Thanks
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
'localhost' usually works when the mySQL server is running on the same machine as your script.

Posting a snippet of code from the script where the connection is made would help. Obviously, change the username, password.
 
Last edited:

econhost

New Member
Messages
2
Reaction score
0
Points
0
descalzo,

Ahh, well that's the first problem, is a remote server.

Hmm, Im not sure where the database connection code is. It probably is a stardard mySQL database connection string, though. I'm using easy PHP calendar. It has its own setup manager, in which it wants me to put in
Database Host: [not sure what to type in here]
Database Username: [cpanel_mysql id]
Database Password: [mysql password]
Database Name: [database name]

Some of the code is encoded via ioncube because its a trial version.
Edit:
Actually, it isn't a remote server and it turned out it didn't like the password I was using. I changed the user and password, it works. But thanks for the help!!
 
Last edited:
Top