gpt4 book ai didi

mysql - 使用 Smartfox API 连接到 Windows Azure 数据库

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

我正在尝试通过 Smartfox API 连接到我的 Azure SQL 数据库。

我打开管理面板,单击区域配置器模块,双击我的区域,然后单击数据库管理器。

它要求我提供:

Database Driver Class: {SQL Server Native Client 10.0}; //Not sure about this got it from https://azure.microsoft.com/en-us/documentation/articles/sql-database-dotnet-how-to-use/
Connection String: Database=databaseName;Data Source=us-cdbr-azure-central-a.cloudapp.net;User Id=userId;Password=password //I get from the Azure portal under settings->properties
Username: userId
Password: password

这未连接。 Smartfox 支持 Azure 吗?

实际上可能是因为我没有合适的适配器。这是正确的吗? https://www.microsoft.com/en-us/download/details.aspx?id=36434我应该把它放在 smartfox 目录的什么地方?

最佳答案

您应该能够使用 JDBC 驱动程序连接到 Azure SQL。请尝试将 .jar 文件放入 {SFS2XRoot}/lib/ 文件夹中。

可以在 this article 中找到使用 Azure SQL 的 JDBC 所需的驱动程序和步骤。 .

我还发现了this tutorial在 smartfox 网站上,可能会有所帮助。

希望这有帮助!

https://azure.microsoft.com/en-us/documentation/articles/sql-database-develop-java-simple-windows/

http://smartfoxserver.com/blog/?p=58

关于mysql - 使用 Smartfox API 连接到 Windows Azure 数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34123082/

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