php-两个服务器登录:localhost/localhost:3306 - 控件用户没有访问权限

ppcbkaq5  于 2021-06-20  发布在  Mysql
关注(0)|答案(1)|浏览(361)

我更新了我的linux 14.04 lts到18.04,并且不得不将php7.2降级到7.0,因为我需要运行一些不支持预装php7.2的软件。到目前为止,我使用了PHP5。
在我现在运行了mysql、apache和php之后,我创建了一个新的数据库,现在我收到一个通知:controluser无法连接,'pmp'@localhost已经拒绝访问。
这在我登录到服务器localhost时出现。如果我选择localhost:3306 everything 很好用。但我不知道为什么我有两个服务器登录?
我是否可以删除localhost访问并只启用localhost:3306?
你知道我要做什么吗?我是个数据库新手。最好的

3htmauhk

3htmauhk1#

当我在config.inc.php中对这些行进行注解时,一切都像预期的那样运行,我只会得到一个可以登录的服务器帐户。

/**
 * phpMyAdmin configuration storage settings.
 */

/* User used to manipulate with storage */
// $cfg['Servers'][$i]['controlhost'] = '';
// $cfg['Servers'][$i]['controlport'] = '';
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = 'pmapass';

/* Storage database and tables */
$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]['table_uiprefs'] = 'pma__table_uiprefs';
$cfg['Servers'][$i]['tracking'] = 'pma__tracking';
$cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
$cfg['Servers'][$i]['recent'] = 'pma__recent';
$cfg['Servers'][$i]['favorite'] = 'pma__favorite';
$cfg['Servers'][$i]['users'] = 'pma__users';
$cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
$cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
$cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
$cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
$cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
$cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
/* Contrib / Swekey authentication */
// $cfg['Servers'][$i]['auth_swekey_config'] = '/etc/swekey-pma.conf';

相关问题