时间:2021-07-01 10:21:17 帮助过:12人阅读
3、拷贝驱动JAR到Tomcat的lib中
cp /mysql-connector-java-5.1.25/mysql-connector-java-5.1.25-bin.jar /tomcat/lib/
4、更新/etc/profile
vim /etc/profile
export CATALINA_HOME=/tomcat
export CLASSPATH=$CLASSPATH:$CATALINA_HOME/tomcat/lib/mysql-connector-java-5.1.25-bin.jar
5、书写程序
JSP JDBC连接MySQL
标签:jsp mysql jdbc