我现在的服务器地址和mysql的地址不一致。
不知道怎么联接,
怎么才能联接的上啊

解决方案 »

  1.   

    Dvbbs.php info: Can not connect to MySQL server
    php_errormsg:
    The URL Is: http://www.mejoin.com/0518/install/install.php?language=sc_gbk&setupaction=chkconfig
    Errno: 2013
    Error: Lost connection to MySQL server during query
      

  2.   

    <?php
    // we connect to example.com and port 3307
    $link = mysql_connect('example.com:3307', 'mysql_user', 'mysql_password');
    if (!$link) {
        die('Could not connect: ' . mysql_error());
    }
    echo 'Connected successfully';
    mysql_close($link);// we connect to localhost at port 3307
    $link = mysql_connect('127.0.0.1:3307', 'mysql_user', 'mysql_password');
    if (!$link) {
        die('Could not connect: ' . mysql_error());
    }
    echo 'Connected successfully';
    mysql_close($link);
    ?> 还有开启你对应的端口。
      

  3.   

    还在为记住网址而发愁?
    请试用www.iebang.com为您提供的网址收藏服务吧!
    IE邦是基于网民自发的网址收藏服务。