I am running a Linux server with Apache2 and PHPMyAdmin installed. I am able to login remotely with my root account but not the account that was created for someone else. The new user has his host settings to "%" like it should be. However when I try to login with his account I get the error...
#1045 Cannot log in to the MySQL server
Might anyone be able to help me? I know there was supposed to be something like added to a file to allow permission but I can't seem to get it to work.
RESOLVED: I figured out the way to fix it. I had to go into SSH and use the command "mysql_secure_installation" and answer the questions :) Thanks everyone! I hope this helps others who have the same problem.
Related
I know that this is a fairly common error, but the curious thing is that in this case the credentials work when I'm logged in to Docker and working with mysql in the terminal. But when I try to use a client like DBeaver or MySQL Workbench, or even making an API call via Python, I get the error "Access denied for user 'root'#'localhost".
I thought it might be because I have another local MySQL database using port 3600, so I changed it to 3700 but the problem persists. I've made sure that the image is running in the Docker application, and besides, as mentioned, it works using the terminal. This is on MacOS Ventura. If there's any other information I can provide that would help, please let me know. Any assistance is appreciated!
I'm creating new app on Heroku. Installed add-on "JawsDB Maria" successfully - I can open it's dashboard
In PHP on connection to DB I receive error:
SQLSTATE[HY000] [1044] Access denied for user 'vcgu1h273742rn5l'#'%' to database 'jeyx2j66ipgtqe11'
I'm sure that problem is not in PHP, because the same error I receive even on MariaDB dashboard trying to Create New Databite - https://prnt.sc/rj4dr4 .
Looks like solution is to GRANT ALL PRIVILEGES to user. But using dashboard I can't execute even SHOW GRANTS.
Questions:
Can somebody help how to solve this problem?
Or, at least, which way I can GRANT ALL PRIVILEGES?
I've tried:
read Heroku docs: JawsDB MySQL, PHP + DB
searching for similar problems in Heroku support, Google, SO:
the best match I found is here. But heroku pg:psql - it's tool only for PostgreSQL.
tried to find useful command for my case in Heroku CLI Commands
Additional info - I'm sure it is not important, but just in case it is:
project is based on Yii2
for easy deployment on Heroku installed "purrweb/yii2-heroku"
You probably know how to read your error message. At any rate, my superpower is explaining the obvious. So, ... here goes.
SQLSTATE[HY000] [1044] Access denied for user 'vcgu1h273742rn5l'#'%' to database 'jeyx2j66ipgtqe11'
Tells you your php program couldn't get to the MySQL server. That operation goes in these steps.
Make a TCP/IP network connection to the server. SUCCESS.
Present a user name and password to the server. SUCCESS.
But the server rejected those credentials. FAILURE
Access the database schema mentioned in the connect request. Not attempted yet. So we have no information about whether the named database actually exists.
The success of step 1 means there are no firewall or network-routing issues. That's good.
The success of step 2 gives us even more confidence about firewall issues.
The failure of step 3 tells us that we're not using a username and password that the MySQL server knows about.
Step 4 is incomplete. So, even if we fix the username and password issues, we still might get another issue before this mess is behind us.
Heroku assigns those usernames to their customers. So, check on the appropriate Heroku control panel to see whether you're using the right username / password credentials. Your error message says you've got wrong credentials.
Next step? Ask your vendor for help. Is Bruce Schneier is reading this? Maybe he can fix this for you from his earbuds while he's riding on the subway. But none of the rest of us here on SO can fix it.
I've waited for 8 hours, hoping there is some trigger, that will complete all necessary settings. But it didn't helped.
Then I reinstalled this add-on. And now all works fine!
So, that was some kind of "JawsDB Maria" bug.
Hello Folks..
I recently installed 'phpMyAdmin' (with 'Xampp'), but I don't know how it works and I find no solution to my problem on the internet and also not on this forum..
First of all my problem:
I don't know what I have to type in as login information right here...! I can get into phpMyAdmin with '/localhost/phpMyAdmin/' but I can't log in on for example phpMyAdmin demo page or 'db4free.net'. I looked up the whole internet sitting here for three hours and I don't know what to do..
What I can do:
I can get right here... I tried changing passwords in FAQ of xampp in the setting of phpMyAdmin and the config. I tried to go to '/localhost/xampp/' but all I get right there is this:
"Index of /xampp
[ICO] Name Last modified Size Description
[PARENTDIR] Parent Directory -
Apache/2.4.18 (Win32) OpenSSL/1.0.2e PHP/7.0.6 Server at localhost Port 80"
I would appreciate your help. Thanks! :)
try using username as root and use password as blank or use the password that you set
This problem is not really related to phpMyAdmin. I did just not get how the interface of db4free.net works.
I am not sure what I did when I was working on organizing my users in mysql database, but now I can't connect to mysql phpmyAdmin whatsover. I am using MAMP and have not been able to find research on how to re-connect or make sure all of my passwords are correct. I am getting I am frankly not sure which config file is being referred to or how to access it and make sure my passwords are correct. Please let me know what else I could provide to help you help me figure this out.
I've also tried this if you scroll down to the change password section Despite any new password I create. I'm getting 'password YES denied'
You can find all the information here, please do a google search before posting
http://www.tech-otaku.com/local-server/resetting-mamp-mysql-root-user-password/
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..