everyone. I can't remember my PHPMyAdmin root password in bitnami. I use Amazon Web Server.
I have searched in Google but I can't anything.
If you have access to phpMyadmin config files you may find the password in config.inc.php in Authentication section. This file is on root of phpMyadmin folder.
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';
Bitnami Engineer here,
The credentials to use when accessing the database using phpMyAdmin are the same ones you need to use when accessing the database using the command line. phpMyAdmin does not have any configured credentials. In this case, if you didn't change the default password we configure when you boot the instance for the first time, you would need to use the password that was shown in the boot log file or after running this command
sudo cat /home/bitnami/bitnami_credentials
You can learn more about the default credentials here: https://docs.bitnami.com/aws/faq/get-started/find-credentials/
Before trying to access the database using phpMyAdmin, please ensure all the services are running by typing this command in the command line
sudo /opt/bitnami/ctlscript.sh status
This what happened in a local developer installation of EasyPHP:
i set the password trough PHPmyAdmin for the root user (because i need to have a password for a new user and it seems that if the root has no a password defined the password for new users is not saved)
in the config file config.inc.php I set the password as defined
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'Soksunae123';
/* Server parameters */
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Servers'][$i]['hide_db'] = '(mysql|information_schema|performance_schema|test|phpmyadmin)';
i restarted all the servers (and also, since it didn't work, i rebooted the windows system)
when i try to run PHPmyAdmin i get this error
if I try to access by console i get the same error "#1524 - Plugin '*8AA9864C904BBB2AC83C09FA1004AC23FB18F4E8' is not loaded" obviously after editing the password
looking to the settings of PHPmyAdmin in EasyPHP main page it seems the pw is not set for root user (but it could be not true since when accessing by console i get the same error using the right pw)
any ideas? thanks.
MySQL has a setting for every login where you can control what hosts that user can use to login. It's possible that when you set the root password, you might have also changed the allowed hosts to "%" (All Hosts), which blocks local login (your phpMyAdmin instance is probably running on the local machine). See this answer for a possible explanation as to why this occurs (I'm pretty sure it's right).
In a shell on the local server, try this to login as root with a password:
shell> mysql -u root -p
Enter Password:
Access denied for user 'root'#'localhost' (using password: YES)
If you see that last line, and you're sure you're using the correct password, it likely means that the root account can only logon from TCP, not local socket. You can explicitly connect over TCP with this syntax:
mysql -u root -p --host=127.0.0.1
If the loopback (127.0.0.1) address doesn't work, try your LAN IP instead. Once you're in, you can add a second root login that can only login from localhost, and optionally set the same (or a different) password. Docs on account management via SQL commands.
More help in the connection troubleshooting docs.
I installed both MySQL and PhpMyAdmin via Homebrew. I get the following error when I try to login with root and its password:
Cannot log in to the MySQL server
I can log in to MySQL via the terminal with:
mysql -u root -p
PhpMyAdmin config:
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'pass';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;
I'm running this on apache. I tried all the solutions on stackoverflow but they don't seem to work. Can anyone help me?
The error "Cannot Log in to MySQL server" can have multiple causes.
It simply means, that phpMyAdmin is not able to connect to the MySQL Server in general.
I had this issue too - in my case I've freshly installed MySQL. During the installation process a new root password is generated. But the MySQL Server forces you to set a new password for the root user, before that you can't execute any query. Sadly phpMyAdmin does not reflect the exact cause properly and just reports a failed connection 'Cannot log in to the MySQL server'.
I fixed it by
logging into my mysql server with my cli:
mysql -u root -p
update root password:
SET PASSWORD FOR 'root'#'localhost' = PASSWORD('YOUR NEW PASSWORD HERE');
You can use both localhost or 127.0.0.1 as host declaration.
In your case you can try to use localhost and it will work.
So I've tunneled the DB to port 3307 on 127.0.0.1 .. I can connect to the database and do whatever I want by using Ubuntu's MySQL Workbench, however I really dislike the interface of the GUI so I want to use the ol'friend phpMyAdmin.
The connection parameters I am using are:
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['port'] = 3307;
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['connect_type']= 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'myDBuser';
$cfg['Servers'][$i]['password'] = 'myDBpass';
When I go to http://localhost/phpmyadmin, select my server from the dropdown and click Go, the following errors are displayed:
#1045 - Access denied for user 'myDBuser'#'localhost' (using password: YES)
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
My login details are correct.
Any help is greatly appreciated!
I managed to get it working by removing the password and logging in with no password. I don't know why it can log in without proving a password, but its working now. Thank you all for your help!
Wanted to get started with Ruby on Rails so I installed instant rails and set up a mysql password. Problem is now I can't get access to phpmyadmin.
From the rails control panel, when I go to configure >> database (via PhpMyadmin) it opens up phpmyadmin with the message
Error
MySQL said: Documentation
#1045 - Access denied for user 'root'#'localhost' (using password:
NO)
When I used to use XAMPP after setting a password instead of taking me directly within phpmyadmin (as it did without a password) it took me to the login screen instead. With instant rails that's not the case. Anyone had this problem when they first set a mysql password and using the instant rails package?
Edit your phpmyadmin config.inc.php file :
Path For Config Page is wamp\apps\phpmyadmin3.4.5\config.inc.php
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = '**your-root-username**';
$cfg['Servers'][$i]['password'] = '**root-password**';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
Check following lines in config.inc.php in phpmyadmin directory
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'yourpassword';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
if your root account dont use any password set 'AllowNoPassword' to 'TRUE'
Try to restart your browser after changing the config file.
Go to this directory "xampp/phpmyadmin" and open config.inc.php file. On a Mac, go to /Applications/XAMPP/xamppfiles/phpmyadmin. Then change and configure the below code with your desired requirements. It worked with me. I installed both MySQL and XAMPP and worked successfully.
$cfg['Servers'][$i]['controluser'] = 'Your Username';
$cfg['Servers'][$i]['controlpass'] = 'Your passwaord';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'Your Username';
$cfg['Servers'][$i]['password'] = 'Your password';
$cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
was missing from configuration.
I faced similar problem and found an easy way out.
After changing the password in config.inc.php,
phpmyadmin did not start and message was access denied for user xyz#localhost
Step by step solution:
imp: do not change password directly from config.inc.
in the config.inc.php keep the password blank
$cfg['Servers'][$i]['password'] = '';
this will allow phpmyadmin to open without password.
Under tab USERS click editpriviliges for root->followed by change password.
Now if you again try and open localhost/phpmyadmin, it shows error access denied
Now open config.inc.php and set the same password for user that you set in phpmyadmin
example:
$cfg['Servers'][$i]['password'] = 'xyz#abc';
Now open phpmyadmin and it works!!
I had same problem after i changed password in phpmyadmin. Iam usind xampp and windows. After i changed password in my phpmyadmin showed "access denied" and then after changes descripted below phpmyadmin showed blank page. I tried all advices and combinations given here, but problem still remained. I solved it through "config.inc.php", where i changed these lines
$cfg['Servers'][$i]['password'] = 'new_changed_password';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
and then and final key - clear cache in your browser! good luck.
This problem made me crazy.After a full day of wasting time I fixed it. I'm using WAMP.
Password was removed using console.
WAMP was uninstalled.
Computer was restarted.
WAMP was re installed.(Now i was able to open PhpMyadmin correctly)
Then the Password was set using PhpMyadmin privileges.
" $cfg['Servers'][$i]['password'] = ''; " in " C:\wamp\apps\phpmyadmin3.4.5\config.inc.php " was edited like this " $cfg['Servers'][$i]['password'] = 'Password given in PhpMyadmin privileges '; "
Now there was not any problem to open PhpMyadmin even with root password.
This video may helpfull. >> http://www.youtube.com/watch?v=lBvfa1wmlbI
I had this issues. I have fixed by changing phpmyadmin ini files configuration.
As per xampp folder structure I found phpmyadmin configuration file in this location: C:\xampp\phpMyAdmin\config.inc.php
Just changing these line my problem solved.
$cfg['Servers'][$i]['password'] = '';
to
$cfg['Servers'][$i]['password'] = 'password';
Thank You !
Check following lines in config.inc.php in phpmyadmin directory
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'yourpassword';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
The above worked for me.After editing the above file,i restarted the wamp and it was all fine
You have a root account with no password. It would be best to have a look into the conf file located in your phpmyadmin directory and check with the password.
rails-mysql-lost-password
If you are rails developer and you have lost password for mysql :
This answer is in connection with Ruby on Rails framework where this behavior occurred
have mysql with user root and password
bootstrap new rails project
using with mysql "rails new projectname
-d mysql"
do not modify config/database.yml - defaults credentials for server are name: root, password is blank
rake db:create prompt show up - asking for root password and then when you provide root password
the answer is in GRANT command on line 68 in here
basically it executed GRANT command with credentials matches your current database.yml
I have discussed this topic and behavior will improved and it is taken and reported as a bug.
I was looking for an answer but it's really easy to solve...
Open XAMPP App -> Go to General then open Terminal
execute the following command:
mysqladmin --user=root --password=[OLD_PASSWORD] password ""
But how to set a root password? without losing access to to phpmyadmin ?
In case you want to reset password to NULL do following:
Run MySQL Console
It will ask you the password you set. Enter password.
Run following command:
mysql>UPDATE mysql.user
->SET Password=PASSWORD("")
->WHERE User="root";
mysql>FLUSH PRIVILEGES;
You may now access your phpMyAdmin again with PASSWORD not set for root.