Username and password for MAMP PRO - mysql

I need help with the proper sequence and locations for changing the root username and password in MAMP PRO, not MAMP, I can get that to work fine.
I was using MAMP (free), and had no problem updating the username and password from root to a username and password, and it worked fine to log into phpmyadmin. I upgraded to MAMP PRO for more host capabilities and have been having trouble with this error. i know it is something to do with the password, but can't figure it out.
mysqli_real_connect(): (HY000/1045): Access denied for user 'root'#'localhost' (using password: YES)
here is what i tried:
i uninstalled MAMP and MAMP PRO and deleted the file folders in my C drive.
then i started a fresh install.
it installed fine and i could log into phpmyadmin with the generic root settings. from there i changed the username and password in the root account.
Then i went to the MAMP PRO folder to look for the configure.inc.php file to update the username and password, but it is not in there. there is no bin or phpmyadmin folders in it. there is in the MAMP folder, but it does not help if i change anything in there.
so, after that i cannot get back into phpmyadmin in MAMP PRO unless i uninstall it, delete the file folders and reinstall again. maybe i need to have both mamp and mamp pro installed, but i tried that with my first install of mamp pro and it didn't work.
i am sure this will get some down votes, but i just need some help at this point and MAMP customer service has not yet responded.
thank you!

well, i figured it out and will put the answer here for anyone else with this problem in the future. in MAMP Pro you stop the server and then click on the mysql client on the left in hosts and a window pops up so you can change the password. i could not change the root username, but just added a new user with my name and my password, so all the hosts are protected and not giving me the error. i was then easily able to add it to valentina studios.

Related

mysql cant log in as a regular user using root, same as phpmyadmin

I installedd LLMP on default, fresh Linux Mint 18 Mate install. Everything is updated and pretty fresh. Then the strange problem occured with logging into the database.
My exact steps:
1. Installed lighttpd. It crashed until I installed also gamin package, then it works.
Installed php7 with php-mysql
Installed mariadb-server
Run mysql_secure_install, defined new root password, answered all Y for deleting test db, disabling anonymous accounts and disallowing root login from tcp, etc. Everything was suggested as a valid, default answer.
Installed phpmyadmin, this fails on post-install, but running apt-get install -f repaired it and finished install correctly.
WTF1: Now, as root user I can login without password to mysql in the console.
WTF2: I can't login to mysql as a regular user, even when I give good password. It says "ERROR 1698 (28000): Access denied for user 'root'#'localhost'"
WTF3: I can't also login to database using phpmyadmin, using root account and proper password, when run on my localhost workstation via lighttpd.
What the heck is going on? My expectation was it should work out of the box, allowing me to login ONLY with root password either on CLI or via phpmyadmin. What is wrong?
I solved this and the answer is in the comment to the question.

MySQL Keeps Forgetting Root Password Used to Install

I'm using the MySQL Installer on Windows 8.1. I go through the installation steps for MySQL Server, including setting my password. However, when I go back to reconfigure my server through the Installer or attempt to login to the server through MySQL Command Line Client, it tells me I have the wrong password.
I have installed and reinstalled multiple times to no avail. My password has just letters (uppercase and lowercase) and spaces.
Thanks in advance.
The MySQL Docs provide instructions on how to change your root password:
http://dev.mysql.com/doc/refman/5.7/en/resetting-permissions.html

phpMyAdmin can't connect to the MySQL server

I am using MAMP.
It seems that when I tried making some changes with the passwords, I messed it up and now I can't access anything on phpMyAdmin.
I've tried to reinstall MAMP, but all I get is still the same error.
Does anybody know how to fix this?
UPDATE: Even in terminal I get the same error
/Applications/MAMP/Library/bin/mysql --host=localhost -uroot -proot
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
check your configuration file in MAMP, the password isn't defined
The reinstallation doesnt rewrite conf files
Try resetting your root password via the console. Instructions can be found here.
The instructions cover Windows and *Nix.
The reason why when you re-installed MAMP/WAMP/LAMP/MySQL etc and it doesn't remove the password is because it saves the config files, and when you remove MySQL it doesn't delete the config files relating to the passwords.
I've had this issue on Windows and Linux - But I can see it affects Mac's too.
Edit: I am assuming you have console access, because you mention MAMP - If you don't, try your host' control panel, it will have an option for Mysql there.

Reset MAMP Pro username and password to root/root

I don't have a clue how I managed to do it, but at some point over the past few days I've managed to change my MAMP Pro username and password to something other than root:root. I've been working locally on a Wordpress build so it must have been something I did then but like I said I haven't a clue how I did it.
I'd like to change the MAMP settings back to their default ones, as now all of my old sites are not working locally (unless I were to go into the config files of every single one and change the mysql username and password). I've tried the 'reset to factory settings' function in MAMP Pro but it doesn't seem to have changed the username and password, and I can no longer connect to MySql or to the MAMP Webstart screen.
Would a clean install sort this out? Also, how would I go about changing my MySql username and password if I cannot connect to it through MAMP?
Assuming you still know the password, you can change the password back to root using
/Applications/MAMP/Library/bin/mysqladmin -u root -p password root
It'll prompt you to enter a password again, after which it'll be reset to root

Unable to update security settings. Access denied for user 'root'#'localhost' (using password: YES)

While running mysql-installer-community-5.6.10 during the Configuration step, I get the error:
Unable to update security settings. Access denied for user 'root'#'localhost' (using password: YES)
and the configuration fails.
... and the password is being set during the previous step of the configuration process, so I don't see how it possibly could be wrong...
I have tried turning off the Windows Firewall but it has not helped.
Could anybody help me out with this?
I just had this problem. The prior install screen had asked for the Current root password. But this was the first MySQL install on the machine.
Answer: when asked for the Current root password, leave that field blank. Then the server installed ok.
I had the same issue, and my first install of mysql ever. For me it was the fact that I did not run the .msi installation file as administrator. By launching through a command prompt that was run as admin the issue was resolved. This is on Windows 7.
Also, I uninstalled twice for this issue. Once I deleted the (nonexistent) serverdata. In that case, the reinstall did not ask for Current root password. When I did not delete serverdata, the Current root password was indeed asked at reinstall. So you can bypass Current root password I believe.
I just had the same issue. This helped me
C:\ProgramData\MySql\
Remove folder "MySQL Server" and all conf files.
The problem is that MySQL saves its configuration data in a different location and that includes your old root password. If you're going to re-install MySQL you have to first delete this old configuration data which can be found in:
C:\ProgramData\MySQL
You may have to tell windows to show hidden files and folders because this folder is hidden by default.