-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 naveed abdul wrote: | | | Dear Sir/madam, | we are able to connect Mysql database using JSP in Linux RedHat-6.2 | OS (with out using user and password). | when we are trying to connect using user and password it was not able | to connect. | | We wrote code like this | | String DBUrl = | "jdbc:mysql://localhost:3306/databasename?user=username&&password=pass"; | | Iam getting an error : | | "java.sql.SQLException: Communication link failure: Bad handshake ". |
Don't use an old version of the driver, to start with ;) The most popular driver for MySQL is MM.MySQL, which is now a MySQL-AB product offering. See http://www.mysql.com/downloads/api-jdbc-stable.html for more details. Download the archive of your choice, read the README, and off you go. -Mark - -- For technical support contracts, visit https://order.mysql.com/?ref=mmma ~ __ ___ ___ ____ __ ~ / |/ /_ __/ __/ __ \/ / Mark Matthews <[EMAIL PROTECTED]> ~ / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer - JDBC/Java ~ /_/ /_/\_, /___/\___\_\___/ Flossmoor (Chicago), IL USA ~ <___/ www.mysql.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.1.90 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE9WPB2tvXNTca6JD8RAlUKAKCvNcyP69rk/YZXc8qSkzeoacHzfACfbZ/f 1FmrTut5g84qJvSW+kanaNM= =5Sbi -----END PGP SIGNATURE----- --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php