gpt4 book ai didi

mysql - Arvixe 上的 MVC4 发布网站出现错误

转载 作者:行者123 更新时间:2023-11-29 23:05:51 25 4
gpt4 key购买 nike

我已经在Arvixe系统上发布了指向MySQL数据库的网站。当我尝试访问该网站时,它工作正常,但不知何故在访问某些页面后,它开始给出错误:

Server Error in '/' Application. A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

我已将我的网站指向 MySQL 数据库,但它给出了 SQl 服务器错误。作为检查,当我从本地计算机运行指向 arxixe 数据库的网站时,它的工作绝对完美。

我已将 MySQL 数据库托管到 Arvixe 服务器本身上。

对此的任何帮助将不胜感激。

最佳答案

您需要检查两件事:

1.您在服务器上的脚本的连接字符串中使用“localhost”或“127.0.0.1”。2.代码中可能还有另一个连接字符串,即连接MSSQL服务器。

还有第三个选项:

联系 Arvixe 的支持人员,因为他们将了解将要发生的情况的确切详细信息。

祝你好运!

关于mysql - Arvixe 上的 MVC4 发布网站出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28295446/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com