+ Reply to Thread
Results 1 to 6 of 6

Thread: MySQL Won't Connect

  1. #1
    ChrDav is offline x10Hosting Member ChrDav is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    15

    MySQL Won't Connect

    Hi everyone,

    I'm having 2 problems relating to MySQL not connecting. It did last week but will now return the following error:

    Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /home/chrdav/public_html/prereg.php on line 22
    Lost connection to MySQL server at 'reading initial communication packet', system error: 111

    I have created a page with just the mysql_connect() command and it returns:

    Can't connect to MySQL server on 'www.thefootballdream.x10hosting.com' (10061)

    Both cases were working perfectly fine last week, but not today. Can someone please help?

    Thanks,
    Chris.
    Edit:
    I managed to fix the first error message, however the 2nd still occurs. I'm trying to connect it from files sitting on my home computer. Yes, I have allowed my IP address to connect, because it worked perfectly last week but now doesn't.
    Last edited by ChrDav; 08-29-2008 at 12:47 AM. Reason: Automerged Doublepost

  2. #2
    YamiKaitou's Avatar
    YamiKaitou is offline x10 Elder YamiKaitou is an unknown quantity at this point
    Join Date
    Oct 2006
    Posts
    636

    Re: MySQL Won't Connect

    The firewall prevents remote MySQL connections

  3. #3
    ChrDav is offline x10Hosting Member ChrDav is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    15

    Re: MySQL Won't Connect

    Which firewall? The X10 one? And if so, why has that been changed, is there a way to get past it, because it's a lot easier to test my scripts on my pc before uploading them when I know they work.

  4. #4
    TheMan177 is offline x10 Sophmore TheMan177 is an unknown quantity at this point
    Join Date
    Jan 2008
    Posts
    179

    Re: MySQL Won't Connect

    I don’t believe that is possible, it is set up like that intentionally on the free servers. Wouldn’t it be easier to run a local MySQL server instead?
    Last edited by TheMan177; 08-29-2008 at 01:29 AM.

  5. #5
    sunils's Avatar
    sunils is offline x10 Spammer sunils is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    Chennai ,India
    Posts
    2,264

    Re: MySQL Won't Connect

    Yes there is firewall that wont allow you to access the mysql server in the freehosting server. You can download mysql package from its site and install it in your system locally and test it. Or you can download xampp lite server that comes with mysql server within it along with php server.
    [LEFT][B]Sunil Sankar
    -------------------------------------------------------------------------

  6. #6
    ChrDav is offline x10Hosting Member ChrDav is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    15

    Re: MySQL Won't Connect

    Alright thanks guys.

    I'll try either of those options.

+ Reply to Thread

Similar Threads

  1. [PHP] MySQL and PHP
    By Bryon in forum Tutorials
    Replies: 43
    Last Post: 03-24-2011, 07:27 AM
  2. New Site-Suggestions?
    By mnoutside in forum Review My Site
    Replies: 9
    Last Post: 08-27-2008, 07:01 AM
  3. Replies: 2
    Last Post: 12-17-2007, 03:00 AM
  4. Mysql unable to connect
    By madskillz200 in forum Free Hosting
    Replies: 5
    Last Post: 07-30-2007, 08:11 PM
  5. Have a problem with my forum
    By tikloos in forum Scripts & 3rd Party Apps
    Replies: 43
    Last Post: 01-19-2006, 01:14 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