简体   繁体   中英

Win 7 - Tomcat unable connect to MySQL

I moved our code (web programming) to Win 7 from Win XP. All the thing were nearly the same, Old System (It works for few years) Win XP / Tomcat 5.5 / MySQL 5.0 / MySQL Adminstrator & Query Brower / JDBC 5.0

New System Win 7 / Tomcat 5.5 / MySQL 5.5 / Workbench CE 5.2 / JDBC 5.0

Using Workbench to create user without password same as old one, but I got the below error, Access denied for user 'jytsd'@'localhost' (using password: NO)

I has checked many times about the user info, but found nothing. Could anyone tell me what's wrong here?

Yes, don't connect that way. Use the type IV JDBC connector for MySQL. Put it in the Tomcat 7 /lib directory and configure your data source and JNDI lookup like this:

http://tomcat.apache.org/tomcat-7.0-doc/jndi-datasource-examples-howto.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM