+ Reply to Thread
Results 1 to 1 of 1

Thread: Cannot connect to the website

  1. #1
    aburayane98 is offline x10Hosting Member aburayane98 is an unknown quantity at this point
    Join Date
    Dec 2010
    Posts
    6

    Cannot connect to the website

    Hello everybody,

    I transfer some files to the server, but it seems doesn't work, but on locahost it does, this is the error:

    HTML Code:
    Warning:  mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /home/user/public_html/Connect.php on line 82
    the code is:

    PHP Code:
    $dbhost '***';
    $dbuser '****';
    $dbpass '****';

    # Encoding
    $Charset 'utf8';

    // connection ā la DB
    $link mysql_connect($dbhost,$dbuser,$dbpass); // this is line 82
    mysql_set_charset($Charset,$link);  
    mysql_query("SET NAMES $Charset;"$link) or die ('cannot connect to the server: '.mysql_error()); 
    Last edited by aburayane98; 01-23-2011 at 06:27 AM.

+ Reply to Thread

Similar Threads

  1. Can't connect to my website.
    By lenny1239 in forum Free Hosting
    Replies: 3
    Last Post: 07-28-2010, 07:39 PM
  2. Can't connect to my website
    By qaiszz in forum Free Hosting
    Replies: 0
    Last Post: 05-07-2010, 05:35 PM
  3. Website will not connect
    By hoobert in forum Free Hosting
    Replies: 3
    Last Post: 02-12-2010, 10:47 PM
  4. Not able to connect to my website
    By padmakumar in forum Free Hosting
    Replies: 1
    Last Post: 11-10-2008, 04:30 PM
  5. Website Wants To Connect To SSL
    By fitzysit in forum Free Hosting
    Replies: 4
    Last Post: 01-07-2008, 10:33 PM

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