www.hostdomainzone.com

HostDomainZone的Windows虚拟主机支持ASP、ASP.net、MySQL数据库和MS SQL Server数据库。

Host Domain Zone

HostDomainZone的Windows虚拟主机也支持PHP,但是用通常的PHP连接MySQL数据库的方法时会出现错误。

<?php
//Open a connection to the mysql server
$link=mysql_connect("p41mysql109.secureserver.net","Test1234","Test1234");
if(!$link) {
echo "Failed to establish connection to mysql server!";
echo mysql_error();
} else {
echo "Success to establish connection to mysql server!";
}
?>

上面的PHP代码是通常所用的连接MySQL数据库的方法,但是在HostDomainZone的Windows虚拟主机上会出现如下的错误:
Client does not support authentication protocol requested by server; consider upgrading MySQL client

那是不是在HostDomainZone的Windows虚拟主机上就不能使用PHP+MySQL呢?

Read the rest of this entry »

HostDomainZone的Windows虚拟主机支持Access、MySQL、MS SQL Server三种数据库。

Host Domain Zone

对于HostDomainZone的Windows虚拟主机,有两种方式为MySQL数据库安装DSN

方法一、在创建的时候就选择安装DSN。创建的过程参阅HostDomainZone / GoDaddy虚拟主机上创建MySQL数据库。唯一不同的地方如下图:

hostdomainzone-windows-hosting-install-mysql-dsn-01

选择安装DSN(上图红框所示)即可。

方法二、如果在创建的时候没有为MySQL数据库安装DSN,可以根据下面的步骤进行安装DSN:

Read the rest of this entry »

eleven2 Hosting