


Detailed explanation of PHPMyadmin configuration file (classic)
D.Authentication method $cfg['Servers'][$i]['auth_type'] = 'cookie'; There are four modes to choose from here, cookie, http, HTTP, config The config method is to enter the access URL of phpmyadmin to enter directly without entering the user name and password. It is unsafe and not recommended. When this item is set to cookie, http or HTTP, logging in to phpmyadmin requires a data username and password for verification, as follows: PHP installation mode is Apache, which can use http and cookies; PHP installation mode is CGI, cookies can be used E. Setting of phrase password (blowfish_secret) $cfg['blowfish_secret'] = ''; If the authentication method is set to cookie, you need to set a phrase password. It is up to you to decide what password to set, but it cannot be left blank, otherwise an error will be prompted when logging in to phpmyadmin. Installed phpmyadmin successfully. Instructions: This document only describes the basic configuration of installing phpmyadmin. Detailed descriptions of each configuration parameter in the config.default.php file can be found The following is how to install the phpMyAdmin tool. 1. Download 1. First go to the official website to download the phpMyAdmin installation package: http://www.phpmyadmin.net/ (the installation includes all-languages) 2. Unzip it to a directory that can be accessed by the web. If it is a virtual space, you can decompress it and upload it to the web directory through the ftp tool. At the same time, you can modify the name of the decompressed file (you can customize the directory name). 2. Configuration 3. Open the /libraries/config.default.php file (the old version is the config.inc.php file in the root directory), edit it with WordPad (do not use Notepad, this is UTF8 encoding), and configure it according to the instructions. . 4. Find $cfg['PmaAbsoluteUri']=''; // Change it to the URL of phpMyAdmin that you will upload to the space. For example: $cfg['PmaAbsoluteUri'] ='http: //Website domain name/phpmyadmin/'; 5. Search $cfg['Servers'][$i]['host'] ='localhost'; //Usually use the default, there are exceptions, you don't need to modify it. 6. Find $cfg['Servers'][$i]['auth_type'] ='config'; // Use config for debugging on your own machine; if you are on the network, use cookies. There are four modes to choose from: cookie, http, HTTP, config ① The config method is to enter the access URL of phpMyAdmin to enter directly without entering the user name and password. It is unsafe and not recommended. ② Set cookie, http, HTTP method, and log in to phpMyAdmin. User name and password are required for verification. The details are as follows: PHP installation mode is Apache, and http and cookies can be used; PHP installation mode is CGI, and cookies can be used. 7. Find $cfg['Servers'][$i]['user'] = 'root'; // MySQL user name 8. Find $cfg['Servers'][$i]['password'] =''; // MySQL password (only needed, leave blank) 9. Find $cfg['Servers'][$i]['only_db'] = ''; // If you only have one data, set it to your database name; if you want to set up a server, it is recommended to leave it blank. 10. Search $cfg['DefaultLang'] = 'zh'; // Here is the language selection, zh represents Simplified Chinese 11. Find $cfg['blowfish_secret'] =''; // If the authentication method is set to cookie, you need to set a phrase password. It is up to you to decide what password to set. You cannot leave it blank here, otherwise you will be prompted when logging in to phpMyAdmin. The error is shown in the picture below. 12. Save after setting up. Now you can upload it to the network space. Browse http://website domain name/phpmyadmin/ to test it. (Just enter the username and password of the database) If you want to install: "phpMyAdmin - Error The mysqli extension is missing. Please check the PHP configuration." error. The solution is as follows: ①Go to the librariesconfig.default.php file in the phpmyadmin folder and find: $cfg['Servers'][$i]['extension']='mysql'; statement. ② If you find the sentence $cfg['Servers'][$i]['extension']='mysql';, continue to search for the following sentence $cfg['Servers'][$i]['extension'] ='mysqli'; and remove its comments. ③If the sentence $cfg['Servers'][$i]['extension']='mysql'; is not found, replace $cfg['Servers'][$i]['extension']='mysqli' ; statement, change it to $cfg['Servers'][$i]['extension']='mysql'; statement. (That is, ensure that the " mysql " value can take effect)
|

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



Alipay PHP...

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

Article discusses essential security features in frameworks to protect against vulnerabilities, including input validation, authentication, and regular updates.

Sending JSON data using PHP's cURL library In PHP development, it is often necessary to interact with external APIs. One of the common ways is to use cURL library to send POST�...

The article discusses adding custom functionality to frameworks, focusing on understanding architecture, identifying extension points, and best practices for integration and debugging.

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

Session hijacking can be achieved through the following steps: 1. Obtain the session ID, 2. Use the session ID, 3. Keep the session active. The methods to prevent session hijacking in PHP include: 1. Use the session_regenerate_id() function to regenerate the session ID, 2. Store session data through the database, 3. Ensure that all session data is transmitted through HTTPS.
