简体   繁体   English

将Funambol连接到远程主机上的MySQL

[英]Connecting Funambol to MySQL on remote host

I am setting up Funambol 8.7 on a Linux host (using Amazon AWS). 我正在Linux主机上(使用Amazon AWS)设置Funambol 8.7。 I need to connect to a MySQL datbase that is hosted on a different server. 我需要连接到托管在其他服务器上的MySQL数据库。

Per the administration guide I went ahead and downloaded the mysql connector and placed the jar in /opt/Funambol/tools/jre-1.6.0/lib/ext. 根据管理指南,我继续下载mysql连接器,并将jar放在/opt/Funambol/tools/jre-1.6.0/lib/ext中。 I changed the install.properties file as follows: 我更改了install.properties文件,如下所示:

  dbms=mysql


  jdbc.classpath=/opt/Funambol/tools/jre-1.6.0/jre/lib/ext/mysql-connector-java-5.1.14-bin.jar
  jdbc.driver=com.mysql.jdbc.Driver
  jdbc.url=jdbc:mysql://myserver.net/rugcutte_funambol?characterEncoding=UTF-8
  jdbc.user=rugcutte_funambo
  jdbc.password=funambol

THen I try to run the install, but get the following error: 然后,我尝试运行安装,但是出现以下错误:

/opt/Funambol/ds-server/install/install.xml:452: java.sql.SQLException: Access denied for user 'rugcutte_funambo'@'ec2-50-16-233-200.compute-1.amazonaws.com' (using password: YES)

It appears my AWS instance can connect successfully to my MySQL database however it is trying to login with a fully qualified user name that is incorrect: rugcutte_funambo'@'ec2-50-16-233-200.compute-1.amazonaws.com 看来我的AWS实例可以成功连接到我的MySQL数据库,但是它正在尝试使用不正确的完全限定用户名登录:rugcutte_funambo'@'ec2-50-16-233-200.compute-1.amazonaws.com

I tried also to change the line to : jdbc.user=rugcutte_funambo@myserver.net . 我还尝试将行更改为:jdbc.user=rugcutte_funambo@myserver.net。 But I got a similar error with that as well. 但是我也有类似的错误。

I am relatively inexperienced to JDBC. 我对JDBC相对缺乏经验。 What is the proper way to set up this section of the install.properties file? 设置install.properties文件此部分的正确方法是什么?

Did you enable access to that database with that user from that server? 您是否允许该用户从该服务器访问该数据库?

What happens if you try and just make the same mysql connection from the command line from your Funambol server? 如果您尝试从Funambol服务器的命令行中进行相同的mysql连接,会发生什么情况?

Thanks Adam. 谢谢亚当。

You led me to the correct answer. 您引导我找到了正确答案。 The remote host has an area in cPanel to configure Remote Database Access Hosts. 远程主机在cPanel中有一个区域可以配置远程数据库访问主机。 So I did, need to add my source host that is running Funambol, to my list of access hosts. 因此,我确实需要将运行Funambol的源主机添加到访问主机列表中。

After this I ran the install and it did, appear to create the tables properly in the database running on my remote host. 此后,我运行安装并完成安装,似乎可以在远程主机上运行的数据库中正确创建表。

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

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