Netbeans won't connect to MySQL server - mysql

I installed Netbeans IDE 8.2 on Windows 10 and disconnected MySQL 8.0 because I planned to use JDBC, without realizing that the inherent connection was already using it. I now want to reconnect, but after entering all the information into the connect pane it gives me the error "Cannot establish a connection to jdbc:mysql://localhost:3306/mysql using com.mysql.jdbc.Driver (Unable to load authentication plugin 'caching_sha2_password'.)"
Screenshot of error.
Has anyone else had this issue and has someone figured out how to fix it?
The problem does not seem to be with a password as I entered it correctly. Netbeans is "Unable to load authentication plugin 'caching_sha2_password'."

Create a new user with standard security login.
You can use standard Type, SHA256 Password or caching_sha_password.
Also, grant permissions to database that you want to access.

Related

How do I add a Rackspace cloud database as a data source in PhpStorm?

I've added the host URL ({hash}.rackspaceclouddb.com), port 3306, and I'm using the same user and password that has access to everything via PhpMyAdmin, but I'm getting a failure when I test the connection. I understand that they run their instances on a private network, which I'm sure is causing the difficulty. Is there some trick I'm not aware of, or is it not possible?
Error message:
Failed: Communications link failure. The driver has not received any packets from the server.
In earlier versions, we've had a similar issue when establishing a connection with MySql. Please update DataGrip to the latest version. Also, make sure to download the latest MySql driver version available in DataGrip.

Cannot connect MySQL Server to Netbeans

I can't connect to my database using the "new connection" option by right-clicking on Databases in the services tab. I get the following error:
Error Image
Here is information about the server to help with a solution:
Server info
Additional server info
The password I have saved in keychain for the server is "password1" and the connection isn't working even though I entered that.
Ok I finally figured it out. I had to update the MySQL connector driver for Netbeans. I had version "mysql-connector-java-5.1.23-bin" installed and needed to add the new driver "mysql-connector-java-8.0.18.jar" to match the version of MySQL Workbench that I have.

Integrated security with JDBC sonarQube is failing with error while connecting with sql server

I am trying to use Integrated security with JDBC connection and I kept following two properties as commented but still its saying it is using 'sonar' as username and password.
sonar.jdbc.username
sonar.jdbc.password
I tried to give my windows user name and password but still not working. I went through other posts but didnt help much.

Windows client for MySQL 4.1

Today i find myself administrating a 2003 MySQL database, does anyone know a Windows Client for MySQL 4.1?
I tried Workbench, DbVisualizer and DBeaver.
The problem mainly is from the auth, somewhere around version 4, MySQL changed the auth method, and the new clients no longer support that kind of connection.
Workbench in particular has an "use old authentication method" as a advanced option, but it seems that it's not enough.
I tried console connection and works just fine, but they are simply to many data and to many work to do to use only console (and the DDBB it's too big as well).
Before checking the "use old auth.." the error message was:
Error connecting to datasource "MySQL - DDBB"
SQL Error [1044] [42000]: Access denied for user 'user'#'%' to database 'information_schema'
Access denied for user 'user'#'%' to database 'information_schema'
Which make sense since the information schema table does not exists in that MySQL version (so i been told)
After checking and using the old auth method, the error is:
Your connection attemp failed for user 'user' from your host to server at ...... MySQL version is older than 5.0, which is not supported.
Anyone has an old client or the possiblity to bypass the old auth and work with a visual client for MySQL 4.1?
Heidi SQL worked just fine.
Also, you can try http://downloads.mysql.com/archives/workbench/
Problem solved.
You might also be able to connect in DBeaver using the MariahDB drivers which have the authentication method built in.

access denied when trying to connect to mysql using tomcat datasource

I'm trying to connect locally to mysql 5 server in jsp page using tomcat 6 and datasource.
I've configured everything as in the tomcat manual (web.xml, context.xml, etc.), but I get this exception:
java.net.SocketException: java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:3306 connect,resolve)
I checked the mysql and there is no problem with the connection itself, in fact I even succeeded connecting using direct JDBC connection (i.e. without using datasource).
Do I need to set anything in the tomcat policy file? other ideas?
Thanks
I found a workaround, though I don't like it because I don't understand why it isn't mentioned anywhere, and why the permissions for the connector is not enough?
Can anyone explain me?
The workaround - add these lines to your tomcat policy file:
grant {
permission java.net.SocketPermission "localhost:3306", "connect, resolve";
};