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've installed XAMPP on my Windows machine and am trying to run WordPress locally. I had some issues connecing the wp database and now cannot access phpMyAdmin at all. Is there a way to fix this short of re-installing XAMPP?
I tried setting user names/passwords in XAMPP's passwords.txt, wordpress wp-config.php, php config.inc.php files. I uncomment and set the password in the php.config.inc.php file:
$cfg['Servers'][$i]['password']
When I try to go to phpmyadmin on localhost I get the error message:
Cannot connect: invalid settings.
mysqli_real_connect(): (HY000/1045): Access denied for user 'root'#'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.
Try this
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'ENTER_YOUR_USER_NAME_HERE';
$cfg['Servers'][$i]['password'] = 'ENTER_YOUR_PASS_HERE';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';
I hope this is similar. the 3rd answer.
This might seem redundant but I was unable to find a correct solution.
I was unable to login to mysql using the mysql console.It is asking for a password and I have no clue what I actually entered.(Is there a way to get the password or change it?)
This is how my config.inc look.
When I try to open phpmyadmin I get this error(#1045 - Access denied for user 'root'#'localhost' (using password: YES))
<?php
/* Servers configuration */
$i = 0;
/* Server: localhost [1] */
$i++;
$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'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'prakash123';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
/* End of servers configuration */
$cfg['DefaultLang'] = 'en-utf-8';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
/* rajk - for blobstreaming */
$cfg['Servers'][$i]['bs_garbage_threshold'] = 50;
$cfg['Servers'][$i]['bs_repository_threshold'] = '32M';
$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600;
$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M';
?>
I have tried to uninstall( Plus Deleted all the related files) WAMP and reinstall.It didn't help either.
While reinstalling WAMP server it is not asking for any username password stuff I don't know why.
Any help is highly appreciated.
I first changed the root password running mysql at a prompt with
mysql -u root -p
Update password:
UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root';
Edited line in the file config.inc.php with the new root password:
$cfg['Servers'][$i]['password'] = 'MyNewPass'
Stop and re-start mysql service (in Windows: mysql_stop.bat/mysql_start.bat)
and got phpMyAdmin to work!
EDIT 2017: for MySQL≥5.7 use authentication_string in place of Password (see this answer):
`UPDATE mysql.user SET authentication_string=PASSWORD('MyNewPass') WHERE User='root';
`
The problem was I have 2 instances of Mysql installed and I didn't know the password for both instances.Just check if port 80 is used by any of the programs.
This is what I did
1.Quit Skype because it was using port 80.(Please check if port 80 is used by any other program).
2.Search for Mysql services in task manager and stop it.
3.Now delete all the related mysql files.Make sure you delete all the files.
4.Reinstall
Well, there are many solutions already given above. If there are none of them works, maybe you should just try to reset your password again to 'root' as described here, and then reopen http://localhost/phpMyAdmin/ in other browser. At least this solution works for me.
This worked for me.
In your config file
$cfg['Servers']['$i']['password'] = 'yourpassword';
In your mysql shell, login as root
mysql -u root
change your password or update if you've forgotten the old one
UPDATE mysql.user SET Password=PASSWORD('yourpassword') WHERE User='root';
stop and restart your mysql server from the xampp control panel. phpmyadmin can login to see your databases
mysql.exe->Run as administrator or go to following path C:\wamp\bin\mysql\mysql5.5.24\bin and than right click on mysql.exe go to properties and than select tab as Compatibility and see the bottom of dialog box in privilege level and just check the Run this program as an administrator and then click apply ok.finished now you open success phpMyadmin. bye
mysql -u root -p
UPDATE mysql.user SET Password=PASSWORD('mypass') WHERE User='root';
Flush the privileges: FLUSH PRIVILEGES;
Exit by typing: Exit
Edited line in the file config.inc.php with the new root password: $cfg['Servers'][$i]['password'] = 'mypass'
be succss
Go to 'config.inc.php'. Write your password over here - $cfg['Servers'][$i]['password'] =''
This process is quite simple in correcting the the error. What is happening is a failure to connect to phpMyAdmin. In order to fix the problem you simply need to provide the correct password to the system phpMyAdmin configuration file located in apps\phpMyadmin\config.ini.php
1. the root should already be set as user
2. Insert the password between ' ' and that it.
If you still have problems then this means that the user name and /or the password need to be updated or inserted into the DB. to do this use the command line tool and do an update.
UPDATE mysql.user SET Password=PASSWORD('Johnny59 or whatever you want to use') WHERE User='root';
Go to config.inc.php, find $cfg['Servers'][$i]['password'] and remove any password provided, i.e change $cfg['Servers'][$i]['password'] = 'password'; with $cfg['Servers'][$i]['password'] = '';
Now you can launch phpMyAdmin
Selecting Users menu from phpMyAdmin, select the root user and click Edit previlidges.
Now scroll down to Change Password area, switch between No Password and Password to provide your new password.
that's it.
I had the same error today. I had installed Djangostack and when I checked my task manager there were two instances of mysqld running. I checked one was for wamp server and the other was for django stack. I ended the one for django stack, restarted all services in wamp server and I was able to access phpmyadmin
after installation i started wamp and i was asked for user and pass which were already set on default (user:admin pass: dots), and that was wrong with a message from your topic. Than, i just entered:
Username: root
Password: (leave it empty)
and it worked for me!!
Go to C:\xampp\phpMyAdmin
Edit the config.inc.php file
Replace $cfg['Servers'][$i]['auth_type'] = 'config'; by
$cfg['Servers'][$i]['auth_type'] = 'cookie';
For now on the PHPMyAdmin will ask you for your password, no more error.
Try the following code:
$cfg['Servers'][$i]['password'] = '';
if you see Password column field as 'No' for the 'root' user in Users Overview page of phpMyAdmin.
with MariaDb, above solutions doesn't works.
Use (exemple below with ubuntu 16.04 and mariadb-server Distrib 10.0.28):
sudo mysql_secure_installation
…
Change the root password? [Y/n]
New password:
I have encountered similar mistakes, and later found that my password is wrong.
For UNIX, try this. It worked for me:
connect MySQL use Navicat Premium with inital root/"password"
UPDATE mysql.user
SET authentication_string = PASSWORD('MyNewPass'), password_expired = 'N'
WHERE User = 'root' AND Host = 'localhost';
FLUSH PRIVILEGES;
restart MySQL
First you have to go config.inc.php file then change the following instruction
$cfg['Servers'][$i]['user'] ='';
$cfg['Servers'][$i]['password'] ='';
or
If you arrived here because you can't log into your phpMyAdmin, then try the root password from your Mysql instead of the password you put during phpMyAdmin installation.
Just now I have this situation and I have tried this way which is very easy.
First stop your mysql service using this command:
service mysql stop
and then just again start your mysql service using this command
service mysql start
I hope it may help others... :)
After I updated my MySql, I was getting the same error message.
It turned out that after installing a different version on MySql, inside the my.ini, the port was different. Previous MySql version had port 3306 but the new one have port 3308.
Check your MySql my.ini, if it is different use the port from .ini in your connection.
php artisan serve
this command get the env contents for the first time and if you update .env file need to restart it.
in my case my username and dbname is valid and php artisan migrate worked
but need to cntrl+c , to cancel php artisan serve , and run it again
php artisan serve
Check the name of Environment Variable
Case with me:
I was using sqlalchemy in a python-flask project and got this issue.
IDE used: PyCharm
In my config.py file I had setup SQLALCHEMY_DATABASE_URI as:
SQLALCHEMY_DATABASE_URI = os.getenv("DATABASE_URI")
Mistake I did (it was a silly mistake 😅)
While setting evironment_variables in PyCharm, I did:
SQLALCHEMY_DATABASE_URI=<my_db_uri>
Solution
I changed the above to:
DATABASE_URI=<my_db_uri>
Namaste 🙏
In the my.ini file in C:\xampp\mysql\bin, add the following line after the [mysqld] command under #Mysql Server:
skip-grant-tables
This should remove the error 1045.
if multiple myslq running on same port no
enter image description here
Right click on wamp and test port 3306
if its wampmysqld64 its correct else change port no and restart server
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!