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

后端 未结 2 1986
谎友^
谎友^ 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

    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';
    

提交回复
热议问题