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)
Related
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.
Currently trying to install and start a MySQL Server on my machine. I'm using the original, actual Installer/Wizard. After filling out all fields, setting a root passwords and also telling to create one user with the password on localhost, the application fails at the step "Creating user accounts".
The log says:
Attempting to Add New MySQL Users Authentication to host 'localhost'
for user 'root' using method 'mysql_native_password' failed with
message: Access denied for user 'root'#'localhost' (using password:
YES) Ended configuration step: Creating user accounts.
Interesting to note, I've done this on a testing device as well as on a fresh virtual machine. I've used different data and names actually, but with the same result >_< What could I be doing principally wrong?
Thanks in advance!
EDIT: Sort of solved... I re-downloaded the database alone and manually created users. Guess that's the better way when being about to learn SQL properly anyways.
That error blocks your installation - although your MySQL server is running - it keeps you from installing the samples and examples. However, if you ignore installing these samples and examples, you can start MySQL Workbench. Moreover, the root account will be available with the password you have set during the install procedure (using Windows). Just launch the Workbench.
I went back to the Accounts and Roles tab> "edit" on my user and my account said I needed a user name> reentered User name> save> next> rename MySQL> Execute== ran fine and finished install.
This was the easy way with all other updates for co-programs done already.
For anyone still having trouble, a simple solution for me was making sure my user names and passwords did not contain special characters such as \ > ~, and so on. Characters such as # and ! should work fine.
Before I start I'd like to state that I know very little about SQL so bear with me please.
I recently signed up for hosting with digital ocean, I make WordPress websites so I created a droplet and everything was in working order, had my blog running and everything... Last week I made some tweaks to my blog, one of them being the change of username and password. Im usually always logged into my admin panel but I restarted my PC and now I cant get into my admin panel (I've forgotten the username and password.) I tried every option available to me on http://codex.wordpress.org/Resetting_Your_Password (even the emergency.php) but to no avail. The usual password reset email is not working so I figure its because the host is running an ssh server and that causes some interference with the email system.. anyway the only option left that I haven't tried for password reset is the phpmyadmin option, now this is a whole new thing with digital ocean for me. They don't have a cpanel so everything is done via ssh; I was able to figure out the gist of it, and attempted to create a database - now here is where it got tricky... (Since my blog was already up and running shouldn't it already have a database?) Every time I try to create a new SQL username/pass it succeeds in doing so, but then when I attempt to use that password to login to my shell I get this error: ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
It makes no sense to me because I've just created the username and password yet it does not let me login with it. I am honestly beyond confused and THE ONLY REASON I EVEN WANT TO ACCESS PHPmyadmin IS JUST SO I CAN VIEW MY USERNAME AND PASSWORD TO LOGIN TO MY WORDPRESS ADMIN PANEL.
If anyone has an alternative for me to retrieve my username (even just my username would be fine because then I could use the emergency.php option) or how to get into phpmyadmin I would greatly appreciate it!
Thank you so much for your time and efforts in advance, this is very difficult for me.
You didn't mention anything about granting permissions to your MySQL users. From Digital Ocean (https://www.digitalocean.com/community/articles/how-to-create-a-new-user-and-grant-permissions-in-mysql):
CREATE USER 'newuser'#'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'newuser'#'localhost';
Rather than trying to read your password, which is most likely encrypted, you should try to change it.
use mysql;
update user set password = password('new-password') where user = 'you';
From your question it looks like you might also be digging for a Wordpress password. I'm not as familiar with that, but I can at least give you some basic guidelines:
show databases (see a list of the databases. try to pick the one that seems logical)
use myWordpressSite;
show tables (see a list of all the tables in that database)
describe thisTableOfInterest; (will display the columns and field types)
select someColumn from thisTableOfInterest;
I hope that helps.
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.
This is a very strange issue that is similar to a few other people issue that has been going on for a while with MAMP.
I recently upgraded to MAMP2 and followed the instruction for the new phpMyAdmin and it work for a while but recently whenever I try to connect to MySQL I always get this error:
Error: Could not connect to MySQL server!
/Applications/MAMP/Library/bin/mysqlcheck: Got error: 1045: Access denied for user 'root'#'localhost' (using password: YES) when trying to connect
So I changed the password to the correct one and changed all the files as per advised on this forum topic: http://forum.mamp.info/viewtopic.php?f=2&t=11974.
But it did not work at all. I realized that there was two phpMyAdmin folder on my Mac one which is in
/Applications/MAMP/Library/bin/phpMyAdmin
and the other one in
Library/Application Support/appsolute/MAMP PRO/phpMyAdmin
In the first folder the config.inc.php as the correct credential for the user, however the second as root for both username and password. Obviously I tried to changed that but to no avail, the file is somehow always reverted to the default credential.
Did someone ever had this issue? is there a way to solve this?
I forgot to update this, if anyone is interested I got the fix for this (and I know many people had a similar issue).
In mamp.pro.global.preferences.plist is listed the encoded MySQLRootPassword, if like me you did update of your MAMP overrite this password field with your old one and there you have it, it works !
The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. Find out why.
Or alternately go to 'Operations' tab of any database to set it up there..