我正在尝试配置一个SMS GATEWAY
USINGOZEKING
但我收到一个与MYSQL ODBC DRIVER
未找到有关的错误。我在我的 Windows 10 机器上安装了驱动程序,但我不确定我做的是否正确。在OZEKING
配置中,我在下图中看到了这一点:
我得到的错误是:
12/16/2015 14:51:47 - INFO 6021: Connecting to database ODBC, DRIVER={MySQL ODBC 5.3 Driver};Server=localhost;Database=dbtest;UID=root;PWD=password@87;.
12/16/2015 14:51:47 - ERROR 6001: Database connection error: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified. ODBC;DRIVER={MySQL ODBC 5.3 Driver};Server=localhost;Database=dbtest;UID=root;PWD=password@87;
12/16/2015 14:51:47 - INFO 6026: Will try to reconnect to database in 20 seconds.
我的问题是我到底做错了什么?我输入Server=localhost;Database=dbtest;UID=root;PWD=password@87
的这些参数是我用来连接数据库的参数,即:
$serverName = "localhost";
$userName = "root";
$password = "password@87";
$databaseName = "dbtest";
//create connection and select database by given data
$GLOBALS["connection"] = mysql_connect($serverName, $userName, $password);
if ($GLOBALS["connection"] == null)
{
echo mysql_error() . "<br>";
return false;
}
任何人都可以帮助我正确的做事方式。谢谢。