How to configure phpMyAdmin for multiple users - each with access to their database only

后端 未结 2 1983
谎友^
谎友^ 2021-02-10 03:44

I want to configure phpMyAdmin to be able to accept one of several different user account logins. Each user would be allocated a specific database and only have access to that.<

相关标签:
2条回答
  • 2021-02-10 04:18

    use this

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

    in place of

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

    in your config.inc.php and restart services then authentication process will start for all users and they can do work according to there grants.

    0 讨论(0)
  • 2021-02-10 04:18

    If you want to add a different host with user and password defined, you can do it adding the next lines on the config.inc.php

    the first parameter auth_type element sets as cookie

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

    and the second conection changes as config (increment the i variable)

    $i++;
    $cfg['Servers'][$i]['auth_type'] = 'config';
    $cfg['Servers'][$i]['user'] = 'user';
    $cfg['Servers'][$i]['password'] = 'password';
    $cfg['Servers'][$i]['host'] = 'anotherhost';
    $cfg['Servers'][$i]['connect_type'] = 'tcp';
    
    0 讨论(0)
提交回复
热议问题