I am using rhel 5 and php 5 with mysql 5. My server is already configured and running all applications smoothly. I am accessing mysql as root and password is 'anitha123'. but when i am accessing phpmyadmin through browser, it is not asking for password. Somebody please tell me how can i set it like prompting for username ans password. Since i am not familiar with php mysql please tell me how to do it in simple way.
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
or simply you can add password into the configuration file of phpmyadmin. for this find config.inc.php file which is in phpmyadmin directory then make these changes
find the line $cfg['Servers'][$i]['password'] = '';
then add your password in blanck field as
$cfg['Servers'][$i]['password'] = 'anitha123';
and it always open with the same username and password
find phpmyadmin.conf and set auth type it to http
Go to phpmyadmin and Make sure you have 3 root user to use mysql smoothly. If you are seeing "No" in Password column set new password by Clicking on
Edit Privileges---> Change Password
selectPassword
option and set your password.(All of three must be set toPassword Yes
). While doing this do not refresh you browser other wise you will get an errorYour users screen must be like this.
When finish this. Just use this setting-> Open config.inc.php file in the phpmyadmin directory
Now open phpmyadmin. phpmyadmin will ask you for password. if you provide correct password,You will be able to login.