登录到phpMyAdmin错误
我通过127.0.0.1/~username/phpMyAdmin访问phpMyAdmin登录页面 当我尝试转到127.0.0.1/~username/phpmyadmin/setup时,出现以下错误: phpMyAdmin-错误 配置已存在,安装程序已禁用 我正在尝试用我下载的mysql设置phpmyadmin,在过去的两天里我一直在尝试我在这里找到的每一个解决方案 我曾经能够访问127.0.0.1/phpmyadmin/setup,并用我的mysql密码创建了一个服务器,但现在我甚至无法访问这个服务器 下面是我的config.inc.php代码:登录到phpMyAdmin错误,php,mysql,phpmyadmin,macos-sierra,Php,Mysql,Phpmyadmin,Macos Sierra,我通过127.0.0.1/~username/phpMyAdmin访问phpMyAdmin登录页面 当我尝试转到127.0.0.1/~username/phpmyadmin/setup时,出现以下错误: phpMyAdmin-错误 配置已存在,安装程序已禁用 我正在尝试用我下载的mysql设置phpmyadmin,在过去的两天里我一直在尝试我在这里找到的每一个解决方案 我曾经能够访问127.0.0.1/phpmyadmin/setup,并用我的mysql密码创建了一个服务器,但现在我甚至无法访问
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* phpMyAdmin sample configuration, you can use it as base for
* manual configuration. For easier setup you can use setup/
*
* All directives are explained in documentation in the doc/ folder
* or at <https://docs.phpmyadmin.net/>.
*
* @package PhpMyAdmin
*/
/**
* This is needed for cookie based authentication to encrypt password in
* cookie. Needs to be 32 chars long.
*/
$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
/**
* Servers configuration
*/
$i = 0;
/**
* First server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;
/**
* 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';
/**
* End of servers configuration
*/
/**
* Directories for saving/loading files from server
*/
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
/**
* Whether to display icons or text or both icons and text in table row
* action segment. Value can be either of 'icons', 'text' or 'both'.
* default = 'both'
*/
//$cfg['RowActionType'] = 'icons';
/**
* Defines whether a user should be displayed a "show all (records)"
* button in browse mode or not.
* default = false
*/
//$cfg['ShowAll'] = true;
/**
* Number of rows displayed when browsing a result set. If the result
* set contains more rows, "Previous" and "Next".
* Possible values: 25, 50, 100, 250, 500
* default = 25
*/
//$cfg['MaxRows'] = 50;
/**
* Disallow editing of binary fields
* valid values are:
* false allow editing
* 'blob' allow editing except for BLOB fields
* 'noblob' disallow editing except for BLOB fields
* 'all' disallow editing
* default = 'blob'
*/
//$cfg['ProtectBinary'] = false;
/**
* Default language to use, if not browser-defined or user-defined
* (you find all languages in the locale folder)
* uncomment the desired line:
* default = 'en'
*/
//$cfg['DefaultLang'] = 'en';
//$cfg['DefaultLang'] = 'de';
/**
* How many columns should be used for table display of a database?
* (a value larger than 1 results in some information being hidden)
* default = 1
*/
//$cfg['PropertiesNumColumns'] = 2;
/**
* Set to true if you want DB-based query history.If false, this utilizes
* JS-routines to display query history (lost by window close)
*
* This requires configuration storage enabled, see above.
* default = false
*/
//$cfg['QueryHistoryDB'] = true;
/**
* When using DB-based query history, how many entries should be kept?
* default = 25
*/
//$cfg['QueryHistoryMax'] = 100;
/**
* Whether or not to query the user before sending the error report to
* the phpMyAdmin team when a JavaScript error occurs
*
* Available options
* ('ask' | 'always' | 'never')
* default = 'ask'
*/
//$cfg['SendErrorReports'] = 'always';
我猜这里有点不对劲,但看着这一切我的心都融化了这么久
对我的问题有什么想法吗
谢谢
我在管理macOS Sierra,如果这有什么帮助的话
此外,当我尝试登录mysql时,会出现以下错误:
2002-没有这样的文件或目录-服务器没有响应或本地服务器的套接字配置不正确。
mysqli_real_connect:HY000/2002:没有这样的文件或目录经过一些初步研究,我相信我有一个解决方案给你 我会尝试改变:
$cfg['Servers'][$i]['host'] = 'localhost';
致:
经过一些初步的研究,我相信我有一个解决方案给你 我会尝试改变:
$cfg['Servers'][$i]['host'] = 'localhost';
致:
phpMyAdmin-错误配置已存在,安装程序已禁用
这意味着您在根phpMyAdmin目录中已经有config.inc.php,因此安装脚本不会作为安全预防措施运行。您可以移动或重命名config.inc.php以使用安装脚本
2002-没有这样的文件或目录-服务器没有响应或本地服务器的套接字配置不正确
这意味着MySQL守护进程根本没有运行,或者您指向phpMyAdmin的套接字路径不是MySQL使用的套接字。我建议对此进行故障排除的方法是使用命令行客户端连接mysql-u root-p,或者如果“root”在这里不合适,则使用其他用户名。如果可以连接,请运行状态;查看连接信息的命令,包括通过套接字连接的套接字路径;如果是通过tcp/ip网络,您将看到端口3306而不是套接字路径
请注意,您已将主机设置为“localhost”,这对MySQL具有特殊意义,基本上覆盖了connect_类型定义。在“localhost”中,您使用的是套接字,在许多情况下,在Mac系统上,由于某些原因,MySQL和PHP使用的默认路径不匹配。理想的解决方案是编辑PHP配置文件以定义到套接字的正确路径,但是phpMyAdmin还有$cfg['Servers'][$i]['socket']指令用于指定到套接字的路径。如果希望/需要使用TCP/IP协议,请使用主机名127.0.0.1
phpMyAdmin-错误配置已存在,安装程序已禁用
这意味着您在根phpMyAdmin目录中已经有config.inc.php,因此安装脚本不会作为安全预防措施运行。您可以移动或重命名config.inc.php以使用安装脚本
2002-没有这样的文件或目录-服务器没有响应或本地服务器的套接字配置不正确
这意味着MySQL守护进程根本没有运行,或者您指向phpMyAdmin的套接字路径不是MySQL使用的套接字。我建议对此进行故障排除的方法是使用命令行客户端连接mysql-u root-p,或者如果“root”在这里不合适,则使用其他用户名。如果可以连接,请运行状态;查看连接信息的命令,包括通过套接字连接的套接字路径;如果是通过tcp/ip网络,您将看到端口3306而不是套接字路径
请注意,您已将主机设置为“localhost”,这对MySQL具有特殊意义,基本上覆盖了connect_类型定义。在“localhost”中,您使用的是套接字,在许多情况下,在Mac系统上,由于某些原因,MySQL和PHP使用的默认路径不匹配。理想的解决方案是编辑PHP配置文件以定义到套接字的正确路径,但是phpMyAdmin还有$cfg['Servers'][$i]['socket']指令用于指定到套接字的路径。如果您希望/需要使用TCP/IP协议,使用主机名127.0.0.1。你确定mysql正在运行吗?是的,当我进入系统首选项并单击mysql时,它说服务器实例正在运行。你确定mysql正在运行吗?是的,当我进入系统首选项并单击mysql时,它说服务器实例正在运行。我最后不得不重置我的mysql密码,但我也需要这样做,谢谢我最后不得不重置我的mysql密码,但我也需要这样做,谢谢!