【adodb连接Access数据库有关问题】不能连接

WBOY
Release: 2016-06-13 12:08:47
Original
974 people have browsed it

【adodb连接Access数据库问题】不能连接?

<?php<br />	$RootDir = $_SERVER['DOCUMENT_ROOT']; <br />	define('ROOT',$RootDir);<br />	$path = ROOT.'/Project/01/db/db_meeting.accdb';<br />	echo "$path";<br />	include "../adodb/adodb.inc.php";<br />	$conn = ADONewConnection('access');<br />	$conn->Pconnect("Driver={Microsoft Access Driver (*.accdb)};Dbq=$path");<br />	$conn->execute("set names gb2312");<br />	print $conn->ErrorMsg();<br />?>
Copy after login




浏览器上输出
D:/phpStudy/WWW/Project/01/db/db_meeting.accdb
Warning: odbc_pconnect() [function.odbc-pconnect]: SQL error: [Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序, SQL state IM002 in SQLConnect in D:\phpStudy\WWW\Project\01\adodb\drivers\adodb-odbc.inc.php on line 85
[Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序


------解决思路----------------------
建议还是用mysql吧

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!