MySQL Server 5.1 と MySQL Connector J をダウンロードしました。Java ビルドに jar ファイルを追加しました。データ ソース エクスプローラーを開き、新しい MySQL 接続プロファイルを作成しました。URL は jdbc:mysql://localhost:3306/test です。test は mysql の私のデータベースです。テスト接続をクリックすると、次のエラーが発生します。
java.sql.SQLException: com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1078) で com.mysql.jdbc.MysqlIO.checkErrorPacket でユーザー 'swathi'@'localhost' (パスワードを使用: YES) のアクセスが拒否されました(MysqlIO.java:4190) com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4122) で com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:927) com.mysql.jdbc.MysqlIO で。 secureAuth411(MysqlIO.java:4689) com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1304) com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2486) com.mysql.jdbc.ConnectionImpl .connectOneTryOnly(ConnectionImpl.java:2519) com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2304) com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:834) com.mysql.jdbc.JDBC4Connection .(JDBC4Connection.java:47) sun.reflect.NativeConstructorAccessorImpl.newInstance0(ネイティブ メソッド) で sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) でcom.mysql.jdbc.Util.handleNewInstance(Util.java:411) の .Constructor.newInstance(Constructor.java:513) com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:416) の com.mysql. org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.createConnection(JDBCConnection.java:214) の jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:346) org.eclipse.datatools.connectivity.DriverConnectionBase.internalCreateConnection(DriverConnectionBase. java:105) org.eclipse.datatools.connectivity で。org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.open(JDBCConnection.java:73) の DriverConnectionBase.open(DriverConnectionBase.java:54) org.eclipse.datatools.enablement.internal.mysql.connection.JDBCMySQLConnectionFactory の。 org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(ConnectionFactoryProvider.java:83) の createConnection(JDBCMySQLConnectionFactory.java:28) org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(ConnectionProfile.java:359) の createConnection(JDBCMySQLConnectionFactory.java:28) org.eclipse.datatools.connectivity.ui.PingJob.createTestConnection(PingJob.java:76) で org.eclipse.datatools.connectivity.ui.PingJob.run(PingJob.java:59) で org.eclipse.core.internal .jobs.Worker.run(Worker.java:53)org.eclipse.datatools.enablement.internal.mysql.connection.JDBCMySQLConnectionFactory.createConnection(JDBCMySQLConnectionFactory.java:28) の drivers.jdbc.JDBCConnection.open(JDBCConnection.java:73) org.eclipse.datatools.connectivity.internal. org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(ConnectionProfile.java:359) の ConnectionFactoryProvider.createConnection(ConnectionFactoryProvider.java:83) org.eclipse.datatools.connectivity.ui.PingJob.createTestConnection(PingJob.java: 76) org.eclipse.datatools.connectivity.ui.PingJob.run(PingJob.java:59) で org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) でorg.eclipse.datatools.enablement.internal.mysql.connection.JDBCMySQLConnectionFactory.createConnection(JDBCMySQLConnectionFactory.java:28) の drivers.jdbc.JDBCConnection.open(JDBCConnection.java:73) org.eclipse.datatools.connectivity.internal. org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(ConnectionProfile.java:359) の ConnectionFactoryProvider.createConnection(ConnectionFactoryProvider.java:83) org.eclipse.datatools.connectivity.ui.PingJob.createTestConnection(PingJob.java: 76) org.eclipse.datatools.connectivity.ui.PingJob.run(PingJob.java:59) で org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) でorg.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(ConnectionFactoryProvider.java:83) の createConnection(JDBCMySQLConnectionFactory.java:28) org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(ConnectionProfile.java:359) の createConnection(JDBCMySQLConnectionFactory.java:28) org.eclipse.datatools.connectivity.ui.PingJob.createTestConnection(PingJob.java:76) で org.eclipse.datatools.connectivity.ui.PingJob.run(PingJob.java:59) で org.eclipse.core.internal .jobs.Worker.run(Worker.java:53)org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(ConnectionFactoryProvider.java:83) の createConnection(JDBCMySQLConnectionFactory.java:28) org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(ConnectionProfile.java:359) の createConnection(JDBCMySQLConnectionFactory.java:28) org.eclipse.datatools.connectivity.ui.PingJob.createTestConnection(PingJob.java:76) で org.eclipse.datatools.connectivity.ui.PingJob.run(PingJob.java:59) で org.eclipse.core.internal .jobs.Worker.run(Worker.java:53)createTestConnection(PingJob.java:76) at org.eclipse.datatools.connectivity.ui.PingJob.run(PingJob.java:59) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)createTestConnection(PingJob.java:76) at org.eclipse.datatools.connectivity.ui.PingJob.run(PingJob.java:59) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
助けてください