I'm unable to connect to Google Cloud SQL from my desktop mysql client. I am also unable to set the sql instance password in google console. It says "instance is busy". I was able to connect to the sql instance using this same command line few weeks ago. Now it's unclear why it is not allowing the same. I see a similar question being asked before but it does not have any resolution.
c:\mysql --host=xxx.xxx.253.xx --user=root --password
ERROR 1045 (28000): Access denied for user 'root'#'xxx.xxx.214.xxx' (using password: NO)
The reason I'm trying to connect from the command line is that my access to the same DB from GAE is also failing with the same error as below.
com.xxx store: java.sql.SQLException: Access denied for user 'root'#'localhost' (using password: YES)
This is the first time I'm trying to access the database from a GAE app. Any idea why the mysql client is not connecting and where I should look to troubleshoot?
Edit:
mysql client connection issue is resolved by upgrading to a newer mysql version (5.6.19). The GAE connection issue persists.
The jdbc url I use is
"jdbc:google:mysql://projid:sqlinstance/dbname?user=root&password=root"
The GAE connection issue was resolved by removing the password from the URL. The new jdbc
url is "jdbc:google:mysql://projid:sqlinstance/dbname?user=root".
Related
I'm trying to connect my NodeJS application to my remote MySQL Database, but it keeps giving me a 1045 error ('ER_ACCESS_DENIED_ERROR'). From the same workstation, I can connect to the same database through MySQL Workbench perfectly fine.
This leads me to think that the problem was with my NodeJS setup, but copying the database to a local setup and then connecting it, worked just fine. For the sake of testing, I made a DB user with host: %, and from my Node app, I connect to the IP address where the database is hosted. I'm hosting it on my own Centos 7 droplet with my workstation IP whitelisted.
The error message I get is:
"Access denied for user '[the test user I made]'#'[workstation ip]' (using password: YES)"
Any help is much appreciated!
The following error:
"Access denied for user '[the test user I made]'#'[workstation ip]' (using password: YES)"
Usually indicates a wrong password.
Check that you wrote down the correct password and fix it if need be.
Also good to read about at this point is: https://dev.mysql.com/doc/internals/en/authentication-method.html
Apparently (atleast I think) the password I used, had forbidden characters in it (not sure which ones). Generating a simpler password solved the issue!
The errors are as follows:
mysqli_real_connect(): (HY000/1045): Access denied for user 'root'#'localhost' (using password: NO)
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
I have trouble fixing this problem, I've tried the different solutions I've found on the internet especially the one where I had to change my password in config.inc.php.
It might be worth noting that prior to this error, phpmyadmin was working perfectly fine, and at the time I was getting MySQL to connect to VB.NET and installed the Connector and MySQL for Visual Studio. Furthermore, there was an error about SSL connections while connecting my database to Visual Studio. I did some exploring on my own and changed the settings of my database from NO SSL to REQUIRE SSL. Then the access denied page showed up from there.
Please help me out.
I have a phpMyAdmin with MySQL on a linux remote machine to which I can connect with no problem with a browser.
But when I am trying to connect a DB in MySQL from a .NET program in my machine, I am getting an error message:
Authentication to host 'theIpNumber' for user 'newUserName' using method 'mysql_native_password' failed with message: Access denied for user 'newUserName'#'myMachineName' (using password: YES)
I tried to configured it like it is explained here: http://www.devside.net/wamp-server/accessing-mysql-or-phpmyadmin-from-outside
creating a new user with password in phpMyAdmin and changing the config.inc.php
Then in my app.config I have the connection string with:
connectionString="server=theIpNumber;UserId=newUserName;Password=newUserPassword;database=theDB"
But I am still getting the same error message when I run my program. Any idea how to solve this?
Finally I solved it adding in phpMyAdmin another user with the same name "newUserName" and password, and with the host value "%"
I have been working on creating report using BIRT with MySql. While I am able to run the report successfully using BIRT viewer, when I try to integrate with tomcat, it gives the below error
org.eclipse.birt.report.engine.api.EngineException: An exception
occurred during processing. Please see the following message for
details: Cannot open the connection for the driver:
org.eclipse.birt.report.data.oda.jdbc.
org.eclipse.birt.report.data.oda.jdbc.JDBCException: Failed to get
connection. SQL error #1:Access denied for user 'root'#'localhost'
(using password: NO) ; java.sql.SQLException: Access denied for user
'root'#'localhost' (using password: NO)
Can anyone please help?
the error message indicates that you do not have permissions to loging to MySQL database using root without any password. As far as I remember, default password for root is 'sa' in MySQL. Please check whether you need any password for your database.
I am trying to connect to an appliance that has a mySQL database running on it.
Let us call the appliance APPLIANCE1.
I am trying to connect to the database from SERVER1. SERVER1 has mySQL installed on it.
The command is simple enough:
mysql.exe --host=APPLIANCE --user=name --password=secret
I keep getting the following error:
ERROR 1045 (28000): Access denied for user 'name'#'SERVER1' (using password: YES)
Can anyone shine a light on why it keeps returning the following value: name#SERVER1. Is it not supposed to replace SERVER1 with the host you are trying to connect to?
Much appreciated.
No, it's the host you're connecting from. This allows administrators to allow specific users to only login from specific hosts.