简体   繁体   English

使用Dreamweaver在Localhost中进行MySQL到PHP的连接错误

[英]MySQL to PHP Connection Error in Localhost with Dreamweaver

I Try to access my localhost database which i created with phpmyadmin from dreamweaver. 我尝试访问我从Dreamweaver用phpmyadmin创建的本地主机数据库。 I did successfully setup site and server. 我确实成功设置了站点和服务器。 I could see my site in the browser with localhost. 我可以在具有localhost的浏览器中看到我的站点。 But when i try to connect from dreamweaver and try to select database it says Your PHP server doens't have the MySQL module loaded or you can't use the mysql_(p)connect functions. 但是,当我尝试从Dreamweaver连接并尝试选择数据库时,它说您的PHP服务器没有加载MySQL模块,或者您无法使用mysql_(p)connect函数。

I'm using mac os x el captian and MAMP for the servers. 我正在为服务器使用mac os x el captian和MAMP。

Thank you for your help 谢谢您的帮助

PDO PDO

PDO support enabled PDO drivers mysql, sqlite, pgsql 已启用PDO支持的PDO驱动程序mysql,sqlite,pgsql

in this image i couldn't connect database i can connect with PDO but how can i see the database and bindings in here??? 在此图像中,我无法连接数据库,我可以与PDO连接,但是如何在此处查看数据库和绑定?

在此处输入图片说明

尝试回显mysql_error(),这将为您提供实际的连接错误详细信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM