having trouble with cloudshell and google sql - mysql

I set up a google sql mysql db yesterday and was able to login to the db via google shell, create some tables, add some data and run some queries. Great.
Today, I am getting:
ERROR 1045 (28000): Access denied for user 'root'# .. ip address
I have tried resetting the password, adding new users via the cloud console, etc - but nothing seems to work. Any ideas?

So I figured this out, and it was completely not intuitive. At least for me, make sure that the setting for SSL connections under connections is set to: Unsecured connections are allowed to connect to this instance.

Related

Can't connect to to siteground database with SQL

I'm trying to connect to my siteground native database, but I'm getting this error:
ER_ACCESS_DENIED_ERROR: Access denied for user
'root'#'cpc1234569-man6-2-1-cust215.7-1.cable.virginm.net' (using
password: YES)
when I try to make a query. I'm connecting via mySQL's VSCode plugin.
I've entered my public IP address in to Siteground's remote access host section, but I'm still being denied permission. Any ideas?
I solved it by creating a new database access account within the siteground tools page. There must have been something wrong with the credentials of the previous account passed on to me by my colleague. It worked smoothly from a new account.

MySQL Server Connection in PhpStorm 2016

This seems like the most annoying thing in the world, but for some odd reason, I'm not able to connect my MySQL DB in PhpStorm (as a data source). It constantly tells me that the user/password combo is incorrect. Here's the complete error message:
The specified user/password combination is rejected: [28000][1045] Access denied for user 'my_username'#'localhost' (using password: YES).
I know for a fact that my credentials are correct. I've checked and double checked. Even created a few new users.
I know that the credentials are correct because the application I'm writing is successfully connected to this DB.
And, as an FYI, the DB I'm trying to connect to is hosted on GoDaddy (shared CPanel Linux hosting).
PS: I've also tried using my website's IP as the host to no avail.

MySQL security and symfony2

Working with Symfony2.3.4 and Xampp with PHP 5.6.3.
Basically my goal is to prevent anyone from tampering with the database tables directly via any manager(for example: phpmyadmin which comes with xampp via localhost/phpmyadmin/)
I'd like to find a way to set a password.
I looked for an option in phpmyadmin to set some type of security and found none.
I tried to set a password for the database via the config interface provided by the AcmeDemoBundle which i've always used to set the parameters.yml, all that did was to throw this at my face:
SQLSTATE[HY000] [1045] Access denied for user 'root'#'localhost' (using password: YES)
I need to know what I'm missing, is there a way to continue from here, or am I doing it wrong right from the beginning.
Remember: the goal is to let no one without authorization access the tables of the database in any way.
thank you
Thanks guys, I found what I needed here, answered by Anagio,
in the end what I had to do was to change the auth_type from config to http and voilá, a prompt appears when I hit localhost/phpmyadmin/ asking for user and pass.
Now all I have to do is to set a password for localhost and no one will be able to do anything to the database from outside the symfony app (hopefully)

Cannot connect to Google Cloud SQL using a not root account from GAE

I'm having a problem with trying to stablish a database connection with an user that's not root. I mean I have defined the following user at my database.
dev#host
I try to connect the way indicated here: https://developers.google.com/appengine/docs/java/cloud-sql/, but I get a truly strange error, I've set the application to display what error is the one that doesn't allow to connect with that user and I get this:
java.sql.SQLException:Access denied for user 'dev#host'#'localhost'.
I wonder where it can get that localhost from... I've also tried to change the name of the user to dev'#'host but it keeps on the localhost issue.
If I connect with root, not inputting any user or password it connects properly, but I need the application to be connected by users with less privileges.
Any idea what I can be doing wrong?
Thanks for your help.
Check this page…you need to set up permissions…
https://developers.google.com/cloud-sql/docs/access-control?hl=pt
Are you using a mySql client? Did you manage to add an authorized IP address?
Cheers.

Attempt to attack mysql?

Is it an attack and what is the result ?
120406 15:47:32 44330 Connect Access denied for user 'sdgfsdgfsdgfs'#'89.107.230.194' (using password: YES)
44330 Connect sdgfsdgfsdgfs#89.107.230.194 as on
How to prevent that ?
It could be a hack attempt, they were unable to connect.
I suggest you install a firewall to solve numerous issues and prevent this from occurring in the future.
You should really disable remote MySQL access, set to only allow local inbound connections. Use a tunneling script if you really need to connect from elsewhere.
The verdict in those two lines of log is Access Denied. But you can search the whole file for access grants.