简体   繁体   English

Z8756D88C7D3B98E2E3F551616D6CBF3Z MySQL 服务上的 PHPMyAdmin 问题

[英]Issue with PHPMyAdmin on XAMPP MySQL service

So, I am encountering this particular issue when on PHPMyAdmin.所以,我在使用 PHPMyAdmin 时遇到了这个特殊问题。 The MySQL service on XAMPP isn't even starting as well. XAMPP 上的 MySQL 服务甚至还没有启动。 Here is the issue:这是问题:

PHPMyAdmin Error Image PHPMyAdmin 错误图像

Here is my config.inc.php code script:这是我的 config.inc.php 代码脚本:

<?php
/**
 * 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/>.
 */

declare(strict_types=1);

/**
 * This is needed for cookie based authentication to encrypt password in
 * cookie. Needs to be 32 chars long.
 */
$cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */

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

/**
 * First server
 */
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
/* Server parameters */
//$cfg['Servers'][$i]['host'] ='localhost';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = true;

/**
 * phpMyAdmin configuration storage settings.
 */

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

/* 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]['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_coords'] = 'pma__designer_coords';
$cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
$cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
$cfg['Servers'][$i]['favorite'] = 'pma__favorite';
// $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';

/**
 * You can find more configuration options in the documentation
 * in the doc/ folder or at <https://docs.phpmyadmin.net/>.
 */

Furthermore, when I change my auth_type from config to cookie or http, it asks me to log in, and if I use my credentials as username -> root and password -> nothing, it is also not working.此外,当我将我的 auth_type 从 config 更改为 cookie 或 http 时,它要求我登录,如果我使用我的凭据作为用户名 - > root 和密码 - > 什么都没有,它也不起作用。 Here is an image of that login error on auth_type cookie:这是 auth_type cookie 上的登录错误的图像:

Login Error Image登录错误图片

Also, on the XAMPP panel, my MySQL service isn't starting, and if I check the log, it says this: ERROR: Failed to start "mysql": cannot start service: /opt/lampp/bin/mysql.server: 264: kill: No such process.此外,在 XAMPP 面板上,我的 MySQL 服务没有启动,如果我检查日志,它会显示:错误:无法启动“mysql”:无法启动服务:/opt/lampp/bin/mysql.server: 264:kill:没有这样的进程。

And when I open the XAMPP terminal, and try to run MySQL by typing mysql -u root -p, and enter my password as nothing, it displays this error message: Can't connect to local MySQL server through socket '/opt/lampp/var/mysql/mysql.sock' (111) And when I open the XAMPP terminal, and try to run MySQL by typing mysql -u root -p, and enter my password as nothing, it displays this error message: Can't connect to local MySQL server through socket '/opt/lampp /var/mysql/mysql.sock' (111)

These are all the error messages I encountered.这些都是我遇到的错误信息。

I really need access to PHPMyAdmin so that I can use my databases again, and I really hope that this issue is resolvable.我真的需要访问 PHPMyAdmin 以便我可以再次使用我的数据库,我真的希望这个问题可以解决。 I am kind of stressed out.我有点紧张。 What should I do?我应该怎么办? Please help me!请帮我! Thanks for any help!谢谢你的帮助!

Had a similar error where I needed to stop mysql server before running it again via lampp.有一个类似的错误,我需要在通过lampp再次运行之前停止mysql服务器。

In the terminal in /etc/mysql I ran/etc/mysql的终端中我跑了

service mysql stop

This kills mysql这会杀死 mysql

Then launch it again with command line or directly in xampp control panel.然后使用命令行或直接在 xampp 控制面板中再次启动它。

Hope it works for you.希望对你有效。 Note that for me the problem came from switching between using docker for the server and the database, and using lampp.请注意,对我来说,问题来自在服务器和数据库使用 docker 和使用 Lampp 之间切换。 So I needed to stop the service every time I wanted to run it with docker.所以每次我想用 docker 运行它时,我都需要停止服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM