Database with MySQL (configuration process If you have a problem can restart Tomcat try it)
First, download software
. J2se
Http://java.sun.com/j2se/.4.2/download.html
2.Tomcat Server
http://tomcat.apache.org/download-4.cgi
3.mysql Server
Http://dev.mysql.com/downloads/mysql/5.0.html
Character Set selection Latin (should be the same as the database using the character set)
After the database is installed, use the command to see what character set the database uses:
Help
4.JDBC Drive
Http://dev.mysql.com/downloads/connector/j/5.0.html
Second, install the above software in sequence
Suppose the following installation path is as follows:
. J2se
C:\j2sdk.4.2
2.Tomcat
C:\Program Files\apache Software foundation\tomcat 4.
3.mysql
C:\Program Files\mysql\mysql Server 5.0
Third, the configuration
. Set Environment variables
Right-click on ' My Computer ', attribute-> advanced-> environment variable, add the following variable:
path=%path%; C:\j2sdk.4.2\bin; C:\Program Files\mysql\mysql Server 5.0\bin
java_home=c:\j2sdk.4.2
Classpath=c:\j2sdk.4.2\lib\tools.jar;mysql-connector-java-5.0.5-bin.jar;mysql-connector-java-5.0.5-bin-g.jar
Tomcat_home=c:\program Files\apache Software foundation\tomcat 4.
2.jsp connection MySQL Settings
Put
Mysql-connector-java-5.0.5-bin.jar
Mysql-connector-java-5.0.5-bin-g.jar
Copy to C:\j2sdk.4.2\lib
Put
Mysql-connector-java-5.0.5-bin.jar
Copy to
C:\Program Files\apache Software Foundation\tomcat 4.\common\lib
C:\Program Files\apache Software Foundation\tomcat 4.\shared\lib
(Don't copy Mysql-connector-java-5.0.5-bin-g.jar)
Current 1/2 page
12 Next read the full text