NASIK NSK
NASIK NSK

Reputation: 65

how to stop authentication required in xampp user

Whenever I'm going to load the phpmyadmin the pop-up will appear.. And this is my config.ini.php file

Upvotes: 2

Views: 8666

Answers (2)

bansi
bansi

Reputation: 56982

You should use

$cfg['Servers'][$i]['auth_type'] = 'config';

Quote from documentation:

‘config’ authentication ($auth_type = 'config') is the plain old way: username and password are stored in config.inc.php.

and set

$cfg['Servers'][$i]['user'] = 'username_to_connect_to_db';
$cfg['Servers'][$i]['password'] = 'password_for_db';

Quote:

When using $cfg['Servers'][$i]['auth_type'] set to ‘config’, this is the user/password-pair which phpMyAdmin will use to connect to the MySQL server. This user/password pair is not needed when HTTP or cookie authentication is used and should be empty.

Reference : phpMyAdmin configuration

Upvotes: 0

Suchit kumar
Suchit kumar

Reputation: 11859

try following this it may help:

In xampp directory there will be a .htaccess file that contains the instructions for Apache to ask for authorization. You can rename it, or go into the file and comment out the following lines:

AuthName "xampp user"
AuthType Basic
AuthUserFile /opt/lampp/lib/xampp.users
require valid-user

Upvotes: 2

Related Questions