还有就是我远程连接数据库为什么不行呢?<?php
$strDBaddress = "***.**.**.**:3306"; 
$strDBuser = "bbs";
$strDBpwd = "bbs";
$strDBname  = "bbs";
$hDB = mysql_connect($strDBaddress,$strDBuser,$strDBpwd) or die("Could not connect MysqlServer".mysql_error());
mysql_select_db($strDBname);
?>
报错
Could not connect MysqlServerUnknown MySQL Server Host '***.**.**.**:3306' (11004)

解决方案 »

  1.   

    http://community.csdn.net/Expert/topic/4847/4847952.xml?temp=.3178369
      

  2.   

    兄弟我的意思是我在本地是D盘写('d:/usr/www/html/sys')哪样的目标
    可是上传到liux服务器是怎么写呢?
      

  3.   

    是自己的服务器现在报错
    Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in d:\usr\www\html\sys\class\include\conn.php on line 6
    Could not connect MysqlServerClient does not support authentication protocol requested by server; consider upgrading MySQL client
      

  4.   

    http://www.google.cn/search?num=50&hl=zh-CN&q=Client+does+not+support+authentication+protocol&meta=lr%3Dlang_zh-CN%7Clang_zh-TW%7Clang_en
      

  5.   

    一般连接本地的mysql都是用的套接字,而不是tcp连接。这样速度快,也更安全。通常tcp连接都是被禁止的。
      

  6.   

    // 加载Smarty模板类
    require('./smarty/Smarty.class.php');
      

  7.   

    现在只有数据库连不上啊怎么办呢啊看了google和百度的方法可是不知道怎么用
    我只能登陆phpmyadmin
      

  8.   

    真奇怪了!
    我的机器是Windows2003服务器是LIUX
    远程连接不上不过上传到服务器却好用,
    我也不能在服务器上写代码啊郁闷!!!
      

  9.   

    还是服务器不允许远程连接.用editplus/zend/phped等都可以用ftp帐号直接编辑远程文件.
      

  10.   

    这个是设置web服务器的根目录,直接按照linux的目录写就可以了。比如root/var/html/