还有就是我远程连接数据库为什么不行呢?<?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)
$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)
可是上传到liux服务器是怎么写呢?
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
require('./smarty/Smarty.class.php');
我只能登陆phpmyadmin
我的机器是Windows2003服务器是LIUX
远程连接不上不过上传到服务器却好用,
我也不能在服务器上写代码啊郁闷!!!