Step 1: Download mysql-4.0.14b-win.zip?mysqlcc-0.9.4-win32.zip
Step 2: Find the driverProgram
MySQL currently provides the Java driver for connection/J, can be downloaded from the MySQL official website, extract and find the mysql-connector-java-3.0.15-ga-bin.jar file, this driver is pure Java driver, do not need to do other configuration.
Step 3: configure the driver
Put the mysql-connector-java-3.0.15-ga-bin.jar file under Tomcat's common/lib
Step 4: Run MySQL and enter the user and password in the pop-up window.
Step 5:
In DOS command line (run-> cmd) to test whether the installation is correct: Enter the E:/MySQL/bin directory and use the command
Mysqld -- Console
The following content should be displayed:
040927 19:06:48 InnoDB: started
Mysqld: Ready for connections.
Version: '4. 0.21-debug' socket: ''port: 3306 Source Distribution
This indicates that the MySQL service has been started and the listening port is 3306.
Close MySQL service in another DOS window:
Mysqladmin-u root Shutdown
Now the window for starting MySQL is displayed:
040927 19:11:27 mysqld: normal Shutdown
040927 19:11:28 InnoDB: Starting shutdown...
040927 19:11:31 InnoDB: shutdown completed
040927 19:11:31 mysqld: shutdown complete
Indicates that it has been disabled.