嗨,我是tomcat和mysql的新手。
我已经在Ubuntu 9.10中安装了Tomcat和mysql,它们都运行得很好!!
But now I have task of connecting mysql and tomcat. I dont have any idea on this. However I looked some manuals but did not find any luck.
盖伊,请给我一个关于如何将mysql与tomcat连接的分步过程。
顺便说一句,我已经下载了mysql连接器,并将.jar文件复制到$CATALINA_HOME/lib
What else should I do ? Thanks!
@at0mzk This is the steps I followed to install tomcat http://www.linuxnix.com/2010/12/how-to-install-apache-tomcat-on-linuxredhatubuntu.html and I installed mysql server and client using the commands sudo apt-get install mysql-server mysql-client later I downloaded JDBC Driver for MySQL (Connector/J) from http://www.mysql.com/products/connector/ and extrated it and pasted the .jar file in /opt/apache-tomcat-6.0.29/lib ( I dont have $CATALINA_HOME/common/lib) . My questions are 1) Is the connection between tomcat and sql established ? 2) do i need to install mysql-server when I have tomcat server ?