user access denied error in mysql connection - mysql

I'm facing very bad situation in Mysql 5.7
I'm having username--> pop and password --> pop with database name "Home"
When I connect from workbench..its works fine.
When I connect through tmysqlinputconnection (TalendETL) (adding manually credentials in component) it works.
Problem is, when I try to connect the tmysqlinputconnection with context parameters where values are coming from file
Shows error like this-----> Access denied for user 'pop'#'localhost' (using password: YES)
May I know please from where its coming ...?
Thanks in advance !!

did you add the connection to the repository using metadata , and exported it has a context ? Then you have a "check" button . It could help you see if it comes from the values, of from the 'import-from-file' part.

Related

How to resolve the mysql error access denied for user 'root' # 'localhost' (using password: YES)

for several days I have had a problem that I cannot solve.
the problem is that when i want to create a database or use mysql in general the following error is displayed "access denied for user 'root' # 'localhost' (using password: YES)" and it happens since I have installed mariadb on my pc.
here is the picture of the error I get:
after that i decided to delete mariadb from my pc, i even checked if mariadb still exists on my pc go to the c directory to check, and also in the search bar when i search for mariadb no results displays, normally mariadb is deleted but I doubt that its service is hidden somewhere and that it is active since the error is still there so I can't find another explanation.
I tried to follow some solutions that I found on the internet like this one for example:
but when i apply this solution on mysql shell i get the following error:
suddenly I searched the internet again and I found that you have to put a \sql before putting the request.
but when I put this and I re-execute my request I receive a new error which is:
error : not connected
as you can see in this picture :
I searched the internet to solve this problem and what I found was that you had to put a \connect root#localhost
but when i do this the access denied error come back again
as you can see in this picture:
I also tested several solutions but nothing works for me, so I count on you to help me :(
so can someone help me please ????

Spring Mysql not using application.properties file data correctly on remote IPs

I'm trying to build a web app, using spring.
No problem after all trying and erroring. i'm just learning it for now.
but, just in first steps i stumbled with a problem that could not let me proceed.
in my application.properties, i set up my remote mysql server, as shown by the spring.io tutorial
/src/main/resources/application.properties
spring.jpa.hibernate.ddl-auto=create
spring.datasource.url=jdbc:mysql://54.234.45.12:3306/*DBNAME*
spring.datasource.username=*user*
spring.datasource.password=*pass*
but when running springboot app, it show the following error:
java.sql.SQLException: Access denied for user
'springuser'#'189-45-120-154.user.veloxzone.com.br' (using password:
YES)
which, by the way, is my own IP, not the remote one.
and i cant make it point to the remote.
using localhost,
spring.datasource.url=jdbc:mysql://localhost:3306/*DBNAME*
changes the output to:
java.sql.SQLException: Access denied for user 'springuser'#'localhost'
(using password: YES)
I can't understand why is not pointing on the internet.
this is an amazon AWS IP, which i can connect remotely with no problems...
(ps.: IPs are changed for obvious reasons)
thanks in advance.
path of file:
i had a trailing space in my password field.
sorry about that, internet!
I appreciate the effort!

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)

Can't access homeage after login in to phpMyAdmin

After I logged in to phpMyAdmin, our homepage isn't available anymore and I don't know why.
Here's the error:
Unable to establish connection to MySQL
1044 : Access denied for user ''#'localhost' to database 'c6dsneu'
But when I log in to phpMyAdmin, everything seems ok.
Looks like whatever program powers your home page lost the MySQL username to connect to the database server. How you fix it will depend entirely on what software you use, but generally there's a configuration file that contains this information. You should properly set your username there. What software package is it?

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.