How to configure config.inc.php to have a login form in phpmyadmin

Do I need to upload any files in order to have a login form php. I asked this a million times, but I'm not sure if you guys will get the question or not. All I want is a login form phpmyadmin. In doing so, you will enter your username and password. DO I NEED to create some form of login phpor is it already included during installation wampserver. I have already configured config.inc.phpin C:\wamp\apps\phpmyadmin3.2.0.1. This is what it looks like when I do not enable the password. What should I edit? I am a beginner and really want to get this login form, but I do not get the corresponding answers.

<?php

    /* Servers configuration */
    $i = 0;

    /* Server: localhost [1] */
    $i++;
    $cfg['Servers'][$i]['verbose'] = 'localhost';
    $cfg['Servers'][$i]['host'] = 'localhost';
    $cfg['Servers'][$i]['port'] = '';
    $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'] = 'root';
    $cfg['Servers'][$i]['password'] = '';
    $cfg['Servers'][$i]['AllowNoPassword'] = true;

    /* End of servers configuration */

    $cfg['DefaultLang'] = 'en-utf-8';
    $cfg['ServerDefault'] = 1;
    $cfg['UploadDir'] = '';
    $cfg['SaveDir'] = '';

    ?>
+5
source share
3 answers

, - : phpMyAdmin, (.. config.inc.php), , .

, :

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

:

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

( , , , /, )


:

  • , ():

'config' ($auth_type = 'config') - : config.inc.php.

'cookie' ($auth_type = 'cookie'), 2.2.3 MySQL cookie.
cookie , .

+18
$cfg['Servers'][$i]['auth_type'] = 'cookie';

.

:

auth_type = 'cookie' MySQL HTML-. , ( $cfg ['AllowArbitraryServer']). Cookie ( pma 3.1+), phpMyAdmin. IIS cookie , http.

+2
$cfg['Servers'][$i]['AllowNoPassword'] = false;
+2
source

All Articles