Hi
I can't figure out how to access a Mysql database from a Java programm. I
always get SQLException access denied for user @computer_name. The server
(mysqld) runs on localhost (127.0.0.1) and is accessed by a local user (local
user executes java). Executing:
mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP ON yourdb_name.* TO
dbuser@localhost IDENTIFIED BY 'dbpassword';
hasn't helped either. What am I doing wrong? I would be grateful, if someone
could explain all steps.
Thanks!
My System:
Debian (woody/backports),
mysqld Ver. 4.0.18,
java 1.4.2_04,
put mysql-connector-java-3.0.11-stable-bin.jar into
/usr/lib/j2sdk1.4-sun/jre/lib/ext/,
removed the skip-networking in /etc/mysql/my