谈谈PHP连接Access数据库的注意事项

高洛峰
Release: 2023-03-04 14:32:02
original
1404 people have browsed it

首先需要注意:

安装access 数据库的时候 需要安装与本机系统相互匹配的office版本,win7 64位的系统 ,那么Office也要是64位的 最好装 office2010。。。

因为我就是经历了从 2003 -2007 -2010的痛苦,特别是在装2010的时候,因为装载过2003版本的office ,导致需要彻底清除干净2003版本的office。

所有劝各位能装2010 的就尽量装2010的吧,不过你要是不装的话,也随便你啦o(* ̄▽ ̄*)o  . 

第一步

装 office 2010 ,这个我就直接pass 过了。 各位同学,大家百度搜下就可以了。 注意与本机操作系统是多少位的 就装多少位的哦!!

第二步

装好 office后 ,首先打开你的  --控制面板--管理工具-- (数据源)ODBC--系统DNS --添加--access 数据库

注意你也可以在ODBC里设置你的账号和密码的。 点击高级就可以设置了。

谈谈PHP连接Access数据库的注意事项

谈谈PHP连接Access数据库的注意事项

第三步

PHP 连接access数据了的代码如下:

我想说的是 PHP 连接数据有几种方式PDO驱动,ado ,和我今天讲的ODBC 连接方式,

谈谈PHP连接Access数据库的注意事项

谈谈PHP连接Access数据库的注意事项

总结

以上就是PHP连接Access数据库的注意事项的全部内容,希望本文的内容对大家平时使用PHP连接Access数据库能有所帮助。如果有疑问欢迎大家留言讨论。

更多谈谈PHP连接Access数据库的注意事项相关文章请关注PHP中文网!

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 [email protected]
Latest issues
Popular Tutorials
More>
Latest downloads
More>
web effects
Website source code
Website materials
Front end template
About us Disclaimer Sitemap
PHP Chinese website:Public welfare online PHP training,Help PHP learners grow quickly!