一直在做的jbpm测试都是在我本机localhost,同时也一直没有研究过jbpm的流程部署。因为jboss和mysql在不同的机器上,于是需要修改spring的数据库连接和hibernate的连接。
即将现在的<value>jdbc:mysql://localhost:3306/test</value> 改成<value>jdbc:mysql://10.16.77.223:3306/test</value>
首先作测试,error:is not allowed to connect to this MySQL server
到网上一查,原来mysql远程连接还需要给用户做远程ip附权。
下面是我的mysql操作
D:/Program Files/mysql/bin>mysql --user=root
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 16 to server version: 3.23.58-nt
Type 'help;' or '/h' for help. Type '/c' to clear the buffer.
mysql> use mysql
Database changed
mysql> grant select,update,insert,delete on *.* to root@10.16.77.223 identified
by "123";
Query OK, 0 rows affected (0.01 sec)
然后重新运行,OK