activiti mysql 安装
网上查了些,都不是很对,自己总结如下
1.修改build.db.properties配置文件,如下:
db=MySql
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/activiti?autoReconnect=true
jdbc.username=activiti
jdbc.password=activiti
2.将mysql的驱动包复制到activiti-5.9\setup\files\dependencies\libs目录下(Activiti所依赖的JAR包).
3.修改activiti-5.9\setup\build.xml文件,添加mysql的驱动路径;
找到:internal.define.jdbc.driver.libs节点,修改内容如下:
<target name="internal.define.jdbc.driver.libs">
<fileset id="jdbc.driver.libs" dir="${activiti.home}/setup/files/dependencies/libs">
<include name="h2-*.jar,mysql-connector-java*.jar" />
</fileset>
</target>
4 将文件ACTIVITI_HOME\setup\files\demo\h2.data.sql重命名为setup\files\demo\mysql.data.sql
注意:若出现错误:no suitable driver found for jdbc:mysql://localhost:3306/activiti 解决办法:将数据库驱动mysql-connector-java-5.1.15-bin.jar复制到JAVA_HOME\jre\lib\ext下