Detailed explanation of how to enable advanced features of phpMyAdmin
The following column phpmyadmin tutorial will introduce to you how to set up the advanced functions of phpMyAdmin. I hope it will be helpful to friends in need!
Note: This article is based on phpMyAdmin5.5, using LNMP environment
Question:
Log in tophpMyAdmin Later, at the bottom of the main interface, we found two prompt messages:
One prompt message is "phpMyAdmin advanced functions have not been fully set up, and some functions are not activated. Please click here to view the reason", and the other message It's "The configuration file now requires a phrase password."
Once these two messages appear, it means that some functions in phpMyAdmin cannot be used.
The steps to solve this problem are divided into three parts:
Upload the create_tables.sql
file, configure the config.inc.php
file and modify it config.default.php
File, etc.
Solution:
1. phpmyadmin database creation:
Open the phpMyAdmin directory and find create_tables.sql
cd ./sql
to see Go to create_tables.sql, then copy the sql statement inside, and then execute it. In this way, the phpmyadmin database is created successfully
2. Configure the config.inc.php file
Open the phpMyAdmin folder and find config.sample.inc.php file, rename it to config.inc.php file.
3. Open the config.inc.php file and find the following statement:
/* 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]['designer_coords'] = 'pma__designer_coords'; // $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';
Replace the // (double italic) in front of each statement below the /* Storage database and tables */ statement All bars) and spaces are removed.
Note:
Above the /* Storage database and tables */ sentence, there are the following two lines of sentences:
// $cfg['Servers'][$i]['controluser'] = 'pma'; // $cfg['Servers'][$i]['controlpass'] = 'pmapass';
If necessary, you can modify it For:
$cfg['Servers'][$i]['controluser'] = '用户名'; $cfg['Servers'][$i]['controlpass'] = '密码';
4. Modify the config.default.php file
Open the config.default.php file in the phpMyAdmin\libraries\ folder.
In the config.default.php file
1) Find:
$cfg['Servers'][$i]['pmadb'] = '';
Modify to:
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
2) Find:
$cfg['Servers'][$i]['bookmarktable'] = '';
Modify to:
$cfg['Servers'][$i ]['bookmarktable'] = 'pma__bookmark';
3) Find:
$cfg['Servers'][$i]['relation'] = '';
Modify to:
$cfg['Servers'][$i]['relation'] = 'pma__relation';
4) Find:
$ cfg['Servers'][$i]['table_info'] = '';
is modified to:
$cfg['Servers'][$i]['table_info'] = 'pma__table_info';
5) Find:
$cfg['Servers'][$i]['table_coords'] = '';
Modify to:
$cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
6) Find:
$cfg['Servers'] [$i]['pdf_pages'] = '';
Modify to:
$cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
7) Find:
$cfg['Servers'][$i]['column_info'] = '';
Modify to:
$cfg['Servers'][$i]['column_info'] = 'pma__column_info';
8) Find:
$cfg['Servers'][$i][' history'] = '';
Modify to:
$cfg['Servers'][$i]['history'] = 'pma__history';
9 ) Find:
$cfg['Servers'][$i]['table_uiprefs'] = '';
Modify to:
$cfg['Servers' ][$i]['table_uiprefs'] = 'pma__table_uiprefs';
10) Find:
$cfg['Servers'][$i]['tracking'] = '' ;
Modify to:
$cfg['Servers'][$i]['tracking'] = 'pma__tracking';
11) Find:
$cfg['Servers'][$i]['designer_coords'] = '';
Modify to:
$cfg['Servers'][$i][ 'designer_coords'] = 'pma__designer_coords';
12) Find:
$cfg['Servers'][$i]['userconfig'] = '';
Modify to:
$cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
13) Find:
$cfg[ 'Servers'][$i]['recent'] = '';
Modify to:
$cfg['Servers'][$i]['recent'] = ' pma__recent';
14) Find:
$cfg['Servers'][$i]['favorite'] = '';
Modify to:
$cfg['Servers'][$i]['favorite'] = 'pma__favorite';
15) Find:
$cfg['Servers'][$ i]['users'] = '';
Modify to:
$cfg['Servers'][$i]['users'] = 'pma__users';
16) Find:
$cfg['Servers'][$i]['usergroups'] = '';
Modify to:
$cfg['Servers'][$i][ 'usergroups'] = 'pma__usergroups';
17) Find:
$cfg['Servers'][$i]['navigationhiding'] = '';
Modify to:
$cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
18) Find:
$cfg[ 'Servers'][$i]['savedsearches'] = '';
Modified to:
$cfg['Servers'][$i]['savedsearches'] = ' pma__savedsearches';
Tips:
Actually, the above sentences are the // (double italic) that have been removed from the config.inc.php file (bar) sentences.
Save and close the config.default.php file.
Log in to phpMyAdmin again.
The above is the detailed content of Detailed explanation of how to enable advanced features of phpMyAdmin. For more information, please follow other related articles on the PHP Chinese website!

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

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

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The primary key of a table is one or more columns that uniquely identify each record in the table. Here are the steps to set a primary key: Log in to phpMyAdmin. Select database and table. Check the column you want to use as the primary key. Click "Save Changes". Primary keys provide data integrity, lookup speed, and relationship modeling benefits.

Adding a foreign key in phpMyAdmin can be achieved by following these steps: Select the parent table that contains the foreign key. Edit the parent table structure and add new columns in "Columns". Enable foreign key constraints and select the referencing table and key. Set update/delete operations. save Changes.

Default location for PHPMyAdmin log files: Linux/Unix/macOS:/var/log/phpmyadminWindows: C:\xampp\phpMyAdmin\logs\ Log file purpose: Troubleshooting Audit Security

The WordPress database is housed in a MySQL database that stores all website data and can be accessed through your hosting provider’s dashboard, FTP, or phpMyAdmin. The database name is related to the website URL or username, and access requires the use of database credentials, including name, username, password, and hostname, which are typically stored in the "wp-config.php" file.

The default username and password for PHPMyAdmin are root and empty. For security reasons, it is recommended to change the default password. Method to change password: 1. Log in to PHPMyAdmin; 2. Select "privileges"; 3. Enter the new password and save it. When you forget your password, you can reset it by stopping the MySQL service and editing the configuration file: 1. Add the skip-grant-tables line; 2. Log in to the MySQL command line and reset the root password; 3. Refresh the permission table; 4. Delete skip-grant-tables line, restart the MySQL service.

Steps to delete a data table in phpMyAdmin: Select the database and data table; click the "Action" tab; select the "Delete" option; confirm and perform the deletion operation.

Reasons and solutions for access denied by phpMyAdmin: Authentication failed: Check whether the username and password are correct. Server configuration error: adjust firewall settings and check whether the database port is correct. Permissions issue: Granting users access to the database. Session timeout: Refresh the browser page and reconnect. phpMyAdmin configuration error: Check the configuration file and file permissions to make sure the required Apache modules are enabled. Server issue: Wait for a while and try again or contact your hosting provider.

phpMyAdmin is susceptible to multiple vulnerabilities, including: 1. SQL injection vulnerability; 2. Cross-site scripting (XSS) vulnerability; 3. Remote code execution (RCE) vulnerability; 4. Local file inclusion (LFI) vulnerability; 5. Information disclosure Vulnerability; 6. Privilege escalation vulnerability.
