【问题标题】:phpmyadmin initial setup generating errorsphpmyadmin 初始设置生成错误
【发布时间】:2012-11-13 12:43:26
【问题描述】:

我正在尝试在我的机器上设置 phpmyadmin,在初始设置和安装 xampp 之后,我收到以下错误。我试图通过修改config.inc.php 文件来解决这个问题很长一段时间,但没有成功。我想知道是否有人遇到过类似的问题并且可以帮助我解决这个问题?

config.inc.php 文件

<?php
/*
 * This is needed for cookie based authentication to encrypt password in
 * cookie
 */
$cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */

/*
 * Servers configuration
 */
$i = 0;

/*
 * First server
 */
$i++;

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'HTTP';
$cfg['Servers'][$i]['user'] = 'myusername';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
$cfg['Lang'] = '';

/* Bind to the localhost ipv4 address and tcp */
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';

/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = '';

/* Advanced phpMyAdmin features */
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
$cfg['Servers'][$i]['relation'] = 'pma_relation';
$cfg['Servers'][$i]['table_info'] = 'pma_table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma_column_info';
$cfg['Servers'][$i]['history'] = 'pma_history';
$cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
$cfg['Servers'][$i]['tracking'] = 'pma_tracking';
$cfg['Servers'][$i]['userconfig'] = 'pma_userconfig';
$cfg['Servers'][$i]['recent'] = 'pma_recent';
$cfg['Servers'][$i]['table_uiprefs'] = 'pma_table_uiprefs';

/*
 * End of servers configuration
 */

?>

【问题讨论】:

    标签: php phpmyadmin xampp


    【解决方案1】:

    似乎您正在尝试使用高级功能,但 phpmyadmin 无法使用指定的用户/密码连接到 mysql:

    /* User for advanced features */
    $cfg['Servers'][$i]['controluser'] = 'pma';
    $cfg['Servers'][$i]['controlpass'] = '';
    
    /* Advanced phpMyAdmin features */
    $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
    

    在此处使用正确的 mysql 用户/密码对,或者如果您不想要高级功能,请注释掉这些行。另外pmadb(默认phpmyadmin)下的数据库也必须存在(这个数据库的目的是存储phpmyadmin特有的数据)。如果没有,请手动创建它并确保您的 mysql 用户对其具有完全访问权限。

    【讨论】:

    • 感谢您的回复。评论所有高级功能对我有用,但是在上述区域输入正确的用户名和密码并没有帮助。感谢您的帮助:)
    猜你喜欢
    • 1970-01-01
    • 2019-01-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-28
    • 2019-05-07
    • 1970-01-01
    相关资源
    最近更新 更多