Reputation: 155
I have completely set up my xampp with username and password. Once I have logged in, I cannot seem to find a way to log-out. No button for log-out can be seen near the home button at the left sidebar. Please help. This is getting in my way to create a web application. Thanks.
Upvotes: 13
Views: 30172
Reputation: 21
By default, phpMyAdmin stores the username and password for MySQL's root user in its configuration file, which is a plain text file. Since this isn't secure, it's generally considered a good practice to modify these default settings.............see below
The default location of the config file for phpMyAdmin
C:\xampp\phpMyAdmin conno. Inc.php
How to configure authentication for phpMyAdmin
1.Open the config. ine php file in a text editor such as Notepade.
Set the 'blowfish secret option to a random 32 character siring. The specifies the encryption key for the cookie.
Set the auth_type' option to a value of cookie.
Set the 'user' and password' options to empty strings as shown below.
Save your changes.
The default settings
$cfg('blownah secret') = 'xampp' /* YOU SHOULD CHANGE THIS FOR A MORE SE-
CURE COOKIE AUTH! */
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
The settings after phpMyAdmin has been configured for authentication
$cfg('blowfish_secret') = 'Ak20vo93me201290184pb56nedIwa70';
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = '';
$cfg['Servers'][$i]['password'] = '';
How to use phpMyAdmin to test the MySQL server and set a password
Upvotes: 1
Reputation: 476
just change this line on config.inc.php
$cfg['Servers'][$i]['auth_type'] = 'config';
to
$cfg['Servers'][$i]['auth_type'] = 'cookie';
then you will be prompted to login when you refreshed the page. Afterwards, the log out icon will appear next to home icon.
Upvotes: 39