


When installing phpMyAdmin, I still did not manually configure the config file, but used its setup function.
Default values are used except for server name and authentication method.
I entered the server name randomly and changed the authentication method to http.
In addition, on the PMA database page, click the pen behind the text box and fill in the default value.
(At this time, I have created the control user and entered the user name and password. I will talk about the creation method later)
After saving the settings, enter the MySQL root user name and password, and open the main page of phpMyAdmin After the screen, the following error appears
After clicking here, the screen you see is as follows
The things to pay attention to when solving this problem are as follows.
1. Deletion and copying of the .config file
This may not be the key to the problem, but after the problem occurred, I read the official documentation and then dealt with it.
After saving the settings on the setup screen, copy ./config/config.inc.php to ./ which is the root directory, and then delete the ./config directory
2. Create databases and tables required for additional functions
There is a create_tables.sql file in the ./scripts folder. Import it into MySQL and create the corresponding table.
Although there are still problems with the additional functions, you can already use phpMyAdmin to manage MySQL, so I poured the create_tables.sql file through the following screen
3. Create a control user
I had already created this before the problem arose.
I used the MySQL command line tool to execute the SQL command.
GRANT USAGE ON mysql.* TO 'pma'@'localhost' IDENTIFIED BY 'pmapass '; 🎜>Show_db_priv, Super_priv, Create_tmp_table_priv, Lock_tables_priv,
Execute_priv, Repl_slave_priv, Repl_client_priv
) ON mysql.user TO 'pma'@'localhost';
GRANT SELECT ON mysql.db TO 'pma'@' localhost';
GRANT SELECT ON mysql.host TO 'pma'@'localhost';
GRANT SELECT (Host, Db, User, Table_name, Table_priv, Column_priv)
ON mysql.tables_priv TO 'pma' @'localhost';
GRANT SELECT, INSERT, UPDATE, DELETE ON
4. Modify the config.inc.php file .
Because tracking is not set on the setup screen, after the above processing, the other items in the second picture all turned green, but the last item was still red.
So I added the line
$cfg['Servers'][$i]['tracking'] = 'pma_tracking';
5. There are cases where the modification of the config.inc.php file does not take effect
After completing the settings 1 to 3, when accessing the main screen, the setting of the second picture does not immediately turn green.
In order to verify whether the modification of the config.inc.php file has any effect, I changed a very important setting 'host' in the file and randomly added a few a's at the end.
An error occurred when accessing phpMyAdmin later. Then remove those a's, and when you visit again, except for the last item tracking, everything else is green.
Maybe it’s because of the browser or apache cache problem. I haven’t figured it out yet.
http://www.bkjia.com/PHPjc/322369.htmlwww.bkjia.com

表的主键是一列或多列,用于唯一标识表中每条记录。设置主键的步骤如下:登录 phpMyAdmin。选择数据库和表。勾选要作为主键的列。点击 "保存更改"。主键具有数据完整性、查找速度和关系建模方面的好处。

在 phpMyAdmin 中添加外键可以通过以下步骤实现:选择包含外键的父表。编辑父表结构,在“列”中添加新列。启用外键约束,选择引用表和键。设置更新/删除操作。保存更改。

PHPMyAdmin 的默认用户名和密码为 root 和空。为了安全起见,建议更改默认密码。更改密码的方法:1. 登录 PHPMyAdmin;2. 选择 "privileges";3. 输入新密码并保存。忘记密码时,可通过停止 MySQL 服务并编辑配置文件的方式重置密码:1. 添加 skip-grant-tables 行;2. 登录 MySQL 命令行并重置 root 密码;3. 刷新权限表;4. 删除 skip-grant-tables 行,重启 MySQL 服务。

PHPMyAdmin日志文件的默认位置:Linux/Unix/macOS:/var/log/phpmyadminWindows:C:\xampp\phpMyAdmin\logs\日志文件用途:故障排除审计安全性

phpMyAdmin 中删除数据表的步骤:选择数据库和数据表;点击“操作”选项卡;选择“删除”选项;确认并执行删除操作。

phpMyAdmin 拒绝访问的原因及解决方案:认证失败:检查用户名和密码是否正确。服务器配置错误:调整防火墙设置,检查数据库端口是否正确。权限问题:授予用户对数据库的访问权限。会话超时:刷新浏览器页面重新连接。phpMyAdmin 配置错误:检查配置文件和文件权限,确保启用了必需的 Apache 模块。服务器问题:等待一段时间后再重试或联系主机提供商。

phpMyAdmin 易受多种漏洞影响,包括:1. SQL 注入漏洞;2. 跨站点脚本 (XSS) 漏洞;3. 远程代码执行 (RCE) 漏洞;4. 本地文件包含 (LFI) 漏洞;5. 信息泄露漏洞;6. 权限提升漏洞。

可以在 phpMyAdmin 中“结构”选项卡下的“视图”子菜单中找到关联视图。要访问它们,只需选择数据库、点击“结构”选项卡、然后点击“视图”子菜单。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version
Visual web development tools

Notepad++7.3.1
Easy-to-use and free code editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft
