【问题标题】:Dreamweaver connecting to mysqlDreamweaver 连接到 mysql
【发布时间】:2014-10-21 05:27:38
【问题描述】:

我想用dreamweaver 和mysql 建立一个网站。我在mac上使用mamp与mysql通信。但是当我尝试用我的sql建立数据库连接时,我得到了这个错误:

HTTP 错误代码 404 文件未找到。以下是问题的一些可能原因:

1) There is no testing server running on the server machine.
2) The testing server specified for this site does not map to the "http://localhost/LabelSite/_mmServerScripts/MMHTTPDB.php URL."Verify that the URL Prefix maps to the root of the site.

我用谷歌搜索并尝试了很多方法,但没有一个有效。这是我已经尝试过的:

1)copying MMHTTPDB.php and mysql.php to /Applications/MAMP/htdocs/LabelSite/_mmServerScripts
2)changing the web url to "http://localhost/8888/LabelSite"

但他们都没有工作

以下是我通过 Dreamweaver 设置网站的方式:

我确实在服务器的高级标签上选择了服务器模型为“PHP MYSQL” 任何建议将不胜感激,谢谢!

【问题讨论】:

    标签: mysql dreamweaver


    【解决方案1】:

    我通过将站点测试服务器中的 Web Url 更改为

    解决了这个问题

    "http://localhost:8888/LabelSite/"

    现在我摆脱了错误!

    【讨论】:

    • HTTP URI scheme 中,可以在主机名部分之后定义协议,用: 分隔,而不是像你想的那样用/ 分隔。
    猜你喜欢
    • 1970-01-01
    • 2012-05-31
    • 2016-03-27
    • 1970-01-01
    • 2015-07-26
    • 1970-01-01
    • 2018-04-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多