+ Reply to Thread
Results 1 to 3 of 3

Thread: MySQL server error using php calendar script

  1. #1
    econhost is offline x10Hosting Member econhost is an unknown quantity at this point
    Join Date
    Aug 2009
    Posts
    2

    Question MySQL server error using php calendar script

    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

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: MySQL server error using php calendar script

    '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 by descalzo; 08-10-2009 at 10:15 AM.
    Nothing is always absolutely so.

  3. #3
    econhost is offline x10Hosting Member econhost is an unknown quantity at this point
    Join Date
    Aug 2009
    Posts
    2

    Re: MySQL server error using php calendar script

    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 by econhost; 08-10-2009 at 11:15 AM. Reason: Automerged Doublepost

+ Reply to Thread

Similar Threads

  1. PHP MySQL communication basics
    By ParallelLogic in forum Programming Help
    Replies: 14
    Last Post: 06-29-2009, 09:33 PM
  2. tons of PHP Resources
    By Chris S in forum Scripts & 3rd Party Apps
    Replies: 10
    Last Post: 01-16-2009, 10:07 AM
  3. Process PHP from a MySQL array
    By tnl2k7 in forum Programming Help
    Replies: 12
    Last Post: 05-05-2008, 10:02 AM
  4. 500 Internal Server Error (PHP Error?)
    By aniklaus in forum Free Hosting
    Replies: 3
    Last Post: 11-12-2007, 11:47 AM
  5. MySQL server address HELP :S
    By rinnerz.com in forum Free Hosting
    Replies: 5
    Last Post: 07-09-2006, 10:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers