phpMyAdmin - auth_type'config'无效

时间:2018-03-10 15:58:30

标签: php mysql ubuntu phpmyadmin ubuntu-server

在Windows 10计算机上,我有一个带有Ubuntu 16.04 LTS的本地VB。

我已经安装了phpMyAdmin软件包,它适用于默认的auth_type = cookie。

def check_bullet_alien_collisions(ai_settings, screen, stats, sb, ship, aliens, bullets):

    """Respond to bullet-alien collisions."""

    #I swapped True, True to False, False below
    collisions = pygame.sprite.groupcollide(bullets, aliens, False, False)

    #I added this if statement

    if collissions:
        num = randrange(100)
        print (num) # lots of numbers generated just want 1
        if num <= 30:
            collissions = pygame.sprite.groupcollide(bullets, aliens, True, True)

    #below in original code

    if len(aliens) == 0:
        # Destroy existing bullets, and create new fleet.
        bullets.empty()
        create_fleet(ai_settings, screen, ship, aliens)
        create_fleet(mi_settings, screen, decayingNucleus, ships)

但是,当我尝试编辑/etc/phpmyadmin/config.inc.php并将auth_type更改为'config'(以及使用我的root凭据)时,

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

我得到这张图片:

enter image description here

Ubuntu版本有一些限制吗?也许有人知道。真的不想调试源代码。

提前致谢!

更新: 凭据是正确的,使用mysql -u root -p检查它们 这是$ cfg的整个print_r。

$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['controluser'] = 'root';
$cfg['Servers'][$i]['controlpass'] = 'rootroot';

1 个答案:

答案 0 :(得分:3)

controlusercontrolpass是(可选)configuration storage区域的凭据。实际的数据库连接用户名和密码配置选项称为userpassword