0

我正在尝试使用 Mirth 检索 OpenMRS 数据库中 hl7_in_queue 表中存在的 HL7 消息。

  1. 我正在使用 OpenMRS 独立 2.0

  2. openmrs-standalone-runtime.properties 文件包含以下详细信息:


tomcatport=8081
 module.allow_web_admin=true
 connection.url=jdbc:mysql:mxj://127.0.0.1:3317/openmrs?autoReconnect=true&sessionVariables=storage_engine=InnoDB&useUnicode=true&characterEncoding=UTF-            8&zeroDateTimeBehavior=convertToNull&server.initialize-user=true&createDatabaseIfNotExist=true&server.basedir=database&server.datadir=database/data&server.collation-    server=utf8_general_ci&server.character-set-server=utf8&server.max_allowed_packet=96M
 connection.username=openmrs
 auto_update_database=false
 application_data_directory=appdata
 connection.password=kXI4^ecvG8Vk

vm_arguments=-Xmx512m -Xms512m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:NewSize=128m

  1. 我正在尝试使用 openmrs-standalone-runtime.properties 文件中提供的详细信息在欢乐中创建一个频道。我附上了相同的屏幕截图。

但是,当我单击 Mirth Connect Administrator 中的select->get tables按钮时,我收到如下警报:

无法检索数据库元数据。请确保您的驱动程序、网址、用户名和密码正确。

谁能告诉我哪里出错了,或者建议如何使用 Mirth 从 OpenMRS 数据库中检索 HL7 消息。

4

2 回答 2

0

我建议从权限和访问开始。通过使用 mysql 客户端登录到 mysql 来测试 openmrs 连接,然后测试对特定数据库的访问。这在 linux 上显示,但 cli 对于 windows 是相同的。

bashprompt> mysql -u openmrs -p

mysql> 使用 openmrs;

mysql> select * from atableinopenmrs ;

如果您得到结果,则该用户具有权限。如果没有,您将不得不修复用户。

其他:

mysql的默认端口是3306,你有3317,这是故意的吗?

mysql -H 127.0.0.1:3317 -u openmrs -p

如果没有主机,您将获得

错误 2005 (HY000): 未知的 MySQL 服务器主机 '127.0.0.1:3317' (2)

在此处发布您使用 mysql 客户端遇到的任何错误。

于 2014-07-15T14:51:33.807 回答
0

I encountered the same problem with Mirth Connect 3.11 (Java 8) and OpenMRS 2.11.0 (Java 8, mysql 5.7). But when I go deeper into the error message it shows the root error as below:

JDBC: SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

I searched around within SO. The answer in this post solved my issue. Basically in Mirth channel settings of the Database reader, use this db connection string:

jdbc:mysql://<host>:<port>/<dbname>?enabledTLSProtocols=TLSv1.2

于 2021-08-18T08:09:49.403 回答