【发布时间】:2012-09-20 13:14:15
【问题描述】:
我将 xeround 用于 MySQL 数据库,在过去的一年里,我一直在使用 Google Docs 电子表格中的 Google Apps 脚本连接到它。现在突然连不上了。我检查了用户名和密码,并仔细检查了实例信息。我联系了 xeround 以查看 MySQL 数据库是否存在问题,他们说一切正常。我可以使用相同的用户名和密码通过 phpMyAdmin 连接数据库。这是我在 Google Docs 电子表格中的代码:
var connectionstring = "jdbc:mysql://instance276.db.xeround.com.:3859/pantalog";
var conn = Jdbc.getConnection(connectionstring, "xxxxxxxxxx", "xxxxxxxxx");
var stmt = conn.createStatement();
我得到的错误是“无法建立数据库连接。请检查连接字符串、用户名和密码。”
Google 是否对 JDBC 进行了一些我不知道的更改?
【问题讨论】:
-
在
.com之后和冒号字符:之前有一个点字符.。理论上不应该有它。此外,如果登录名和密码是真实的,那么消除登录名和密码会更安全。
标签: mysql google-apps-script google-docs xeround