I am a bloody beginner when it comes to website building. After I put wordpress per FTP on my hosted domain I need the MySQL Password. Because the databank is build automaticly I need to open the .my.cnf file in phpmyadmin. Now when I try to log into the web interface I get this error:
mysqli::real_connect(): (HY000/1045): Access denied for user 'eisenast.uber.space'#'localhost' (using password: YES)
My googlesearch didnt find anything with the same problem. I tried all the passwords and usernames in different combinations that I had.
Related
I am setting up my local development environment using XAMPP for writing websites using Laravel.
The issue im facing is that I cannot connect to the MySQL database with any new user I create. I give one user limited privileges for only one database and cannot connect using the correct password.
I tried making an admin user with full privileges on all databases and tables, and still cannot connect with the correct password.
The returned error is always the same -
SQLSTATE[HY000] [1045] Access denied for user 'laravel'#'localhost' (using password: YES)
and
ERROR 1045 (28000): Access denied for user 'admin'#'localhost' (using password: YES)
where laravel is the username, admin is the other one etc.
This is not related to Laravel as I keep getting this error even when I try to connect from the command line (as shown in error code number 2).
The 'anonymous' user has been removed to make sure MySQL doesn't match it by mistake, I have flushed privileges and restarted services countless times.
The default root user without password can connect, but no new users that I create with passwords can.
Solved the problem by re-installing XAMPP, nothing else.
I have wamp running locally on my computer and was working just fine. I have a web application based on PHP and MySQL. I am using a password for the connection.
Suddenly, I got the following error:
MySQL ERROR 1045 (28000): Access denied for user 'root'#'localhost'
(using password: YES)
I tried to follow the answers of this post on stack. But nothing worked.
Ounce I open the mysql cmd and write down the password, it will close immediately.
I even used MySQL workbench, and I was successful to enter but on a different user with password. But the user I am using where my databases resides, is not accessible anymore.
I have a db called ncd, where I can see it on the other user but as empty.
Could I restore the data from wampserver ?
You can check your db on /mysql/ folder and them store it. And move to another mysql with another account and restore your db with same folder as above me talk it.
I'm trying to copy a live WordPress site to my local server. I went to import the database from the live site through MAMP, and I received an error message when trying to connect to phpMyAdmin:
#1045 - Access denied for user 'root'#'localhost' (using password: YES)
I have a couple local WP installations running already, and I'm able to access them through the localhost:8888/sitename path just fine.
I haven't changed any passwords or messed around with any configurations in phpMyAdmin. In fact, it was all working fine just yesterday. I had to re-boot my computer because it froze on me this morning, and that's when the issues began.
I even went into the config.inc.php file in Applications/MAMP/phpMyAdmin, and the usernames and passwords match what I had originally. (It definitely wasn't 'YES')
I'm stumped at this point. Could anyone help?
Can you try resetting the MySQL server password using this guide.
Then put the new password in the PHPMyAdmin config?
using password: YES Means that you attempted to login using a password, not that the password used is 'YES' Its referring to the different options for logins like certificates etc.
Try to use single quotes in password, cause the symbol $ inside double quotes is like aphp variable
change the password to a more basic form. for example i had "!##$]#$%^%&^" i changed it to "mypassword1" and it worked. It is a wordpress issues that it doesn't support weird characters.
So i have gotten this error a couple times. Tried different things to solve it, but the solution continues to illude me. So far the only way i have managed to regain access to my local sql server is to remove the xampp installation, and reinstall it.
After reinstall i am able to access the mysql database no problems.
It would seem how ever, either after restarting the computer, or the new day,
This error comes up again.
At first, i was just using the root account with no password, config settings to match this,
and i would get the same error except it would say 'using password: NO'
i then uninstalled and reinstalled xampp and set a passsword to the root account. this worked fine the entire working day. I come back on monday, and try to access my local database,
i get, #1045 - Access denied for user 'root'#'localhost' (using password: YES)
Seeing as i cannot afford to continue to reinstalled every day, it would be greate if i could find a solution to this.
edit:
I forgot to mention i get the same error trying to access the mysql database through command prompt.
This was my own doing.
I run off mysql backups. Every time i import the backup, i import and override the mysql.user fields as well.
I'm using IIS with PHP, PHPMyAdmin and mysql. They were installed separately. When mysql was installed, I was given the option to and went ahead with setting a password. I can use phpmyadmin using the same password, but when I test my database connection I receive the error Access denied for user ''#'localhost' (using password: NO).
I've been all over forums and youtube looking for a possible solution but haven't been able to get anywhere. I have disabled my firewall and attempted to allow mysqld through it separately and still no results.
PHPMyAdmin resides in my wwwroot folder for IIS and mysql is in my C:/Progam Files folder. Is this the possible issue or is this set up okay?
Additionally, I've reviewed my config files and all have the same matching password. My user is root and all config files have that as well. PHPMyAdmin accepts that as the user.
What it seams to me is that your phpMyAdmin is not correctly configured. You lack username and password options thus you cannot connect. You should review: http://docs.phpmyadmin.net/en/latest/config.html#basic-settings and look for $cfg['Servers'][$i]['nopassword'] option. It should be disabled.
P.S.: Do you get username/password prompt from phpmyAdmin ?
It looks like you are giving user as username under config.inc.php without any password..
You can either provide the correct password for username user
or
You can provide the same username and password which lets you login to mysql from command prompt..