Home Backend Development PHP Tutorial phpMyAdmin installation, configuration method and problem solving_PHP tutorial

phpMyAdmin installation, configuration method and problem solving_PHP tutorial

Jul 21, 2016 pm 03:45 PM
phpmyadmin and review Install method of Simple solve meet Configuration question

Here is a brief review: basically all the problems that should be encountered have been encountered. The key is to check more information and use more brains to solve the problem.
1/Unable to load the mcrypt extension, please check the PHP configuration;
2/The configuration file now requires a top-secret phrase password (blowfish_secret);
3/#2003-The server is not responding.

Since the latest version of phpMyAdmin has been updated to 3.1.3.1, many configuration methods circulated on the Internet are from the old version and are no longer suitable for the configuration requirements of the new version; so pharmar also added phpMyAdmin3.1.3 The configuration steps of .1 are also listed below; in order to facilitate switching and debugging PHP, I use the windows system and debug locally.

1. First download the phpMyAdmin installation package:
Go to the official foreign website http://www.phpmyadmin.net/, click the "DOWNLOADS" link on the navigation bar to enter the download page, and select "all- Download the "languages.zip" version locally and decompress it; put the decompressed file into the phpmyadmin folder under the virtual root directory specified by the system (the folder name can be customized). For example, the local storage location of pharmar is D:Program FilesApachehtdocsPhpadmin .

2. Find the config.sample.inc.php file in the phpmyadmin folder and rename it to the config.inc.php file. Open it with a WordPad that supports UTF-8 encoding for editing.

3. Find $cfg['Servers'][$i]['host'] = 'localhost'; (usually the default is used, there are exceptions, and you don’t need to modify it)

5. Find $cfg['Servers'][$i]['auth_type'] = 'cookie';
Use config for debugging in your own machine; if you use cookies in the network space, since we have added it before If the URL is found, change it to cookie.
My personal suggestion: Whether it is local or online, it is recommended to set cookies, safety first.
At the same time, when the auth_type value is set to cookie, there is another place that needs to be modified:
$cfg['blowfish_secret'] = '';
Change to: $cfg['blowfish_secret' ] = '123456';
The '123456' here can be defined by yourself, no more than 46 characters. If this field is left blank, the second error mentioned above will appear: "The configuration file now requires a top-secret phrase password (blowfish_secret)".

6. Search $cfg['Servers'][$i]['user'] = 'root'; // MySQL user (user name, use root on your machine; on the Internet it is usually your ftp user name, the virtual host provider will tell you; generally do not modify it)

7. Find $cfg['Servers'][$i]['password'] = '123456'; // MySQL password (Change 123456 to the user password for connecting to your MYSQL database)

At this point, phpMyAdmin has been configured; you can open http://localhost/phpmyadmin/ to access the convenient and fast graphical management software phpMyAdmin . Regarding other options in the configuration file not mentioned in this article, you don’t need to worry about it or modify it. The specific how to operate phpMyAdmin is beyond the scope of this article, but the graphical interface is easy to understand and you will be able to use it after just a few glances (reference).

Let’s talk about several problems that pharmar encountered during the installation and configuration of phpMyAdmin.

First question: "Unable to load mcrypt extension, please check PHP configuration".

1. The Mysql database is not installed correctly, and Mysql-related services are not started in the system services.
2. The libmcrypt.dll file is missing in the system's system32 (C:windowssystem32) directory. The solution is to find libmcrypt.dll in the php directory, copy libmcrypt.dll to the C:windowssystem32 directory, and then restart Web services.
3. In the php.ini file in the PHP directory, the first ";" in ";extension=php_mcrypt.dll" is not removed, so the corresponding function cannot be used. The solution is to open the php.ini file. Find;extension=php_mcrypt.dll and change it to extension=php_mcrypt.dll //Remove the previous; to make it effective
4. The Mysql directory does not have read permissions. The correct directory permissions are as follows:
administrator full control
system full control
user read and run
delete all other user permissions (can also be retained, but the security is not high, it is recommended to delete), and then restart the MYsql service and Web service (it is recommended to restart after modifying this item) server).
5. If none of the above methods work, use this method: Desktop>My Computer>Right-click Properties>Advanced>Environment Variables>System Variables>New
Name: phpdir
Value :D:Program FilesPhp (whatever directory your PHP is in is what it is)
(reference source: address)

Second question: "Unable to load the mysql extension, please check the PHP configuration"

Copy libmySQL.dll in the PHP directory to: c:windowssystem32, and then restart APACHE.

Third question: "#2003-Server not responding".

When encountering this problem, it is most likely that the MYSQL database has not been started. It is recommended to start MYSQL directly in: Control Panel - Management Tools - Services. Regarding whether to start, you can check whether there is a process such as "mysqld-nt.exe" in the task manager. If there is, it means that mysql has been started.
Another important reason is that the port is not the default 3306 during installation. For example, for me, during the installation process, because a program occupied 3306, I changed it to 3307, so no matter what, it displays: "#2003-Server No response".Finally found the reason. Just add one more:
$cfg['Servers'][$i]['port'] = '3307';

Fourth question: "No PHP extension setting mbstring found ".

Modify the PHP.INI file under C:WINDOWS, find ;extension=php_mbstring.dll, remove;, save PHP.INI, and restart Apache.

Just don’t encounter these problems. But for novices, when they encounter it for the first time, they usually look everywhere for solutions. When a lot of methods on the Internet are not applicable, they will feel so helpless. Be sure to read the official documentation, although it is in English, it is still very useful.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/320238.htmlTechArticleNow let’s make a brief review: basically all the problems that should be encountered have been encountered. The key is to check more information and get more information. Problems can be solved by using your brain. 1/Unable to load mcrypt extension, please check PHP configuration;...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to set primary key in phpmyadmin How to set primary key in phpmyadmin Apr 07, 2024 pm 02:54 PM

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.

How to recover deleted contacts on WeChat (simple tutorial tells you how to recover deleted contacts) How to recover deleted contacts on WeChat (simple tutorial tells you how to recover deleted contacts) May 01, 2024 pm 12:01 PM

Unfortunately, people often delete certain contacts accidentally for some reasons. WeChat is a widely used social software. To help users solve this problem, this article will introduce how to retrieve deleted contacts in a simple way. 1. Understand the WeChat contact deletion mechanism. This provides us with the possibility to retrieve deleted contacts. The contact deletion mechanism in WeChat removes them from the address book, but does not delete them completely. 2. Use WeChat’s built-in “Contact Book Recovery” function. WeChat provides “Contact Book Recovery” to save time and energy. Users can quickly retrieve previously deleted contacts through this function. 3. Enter the WeChat settings page and click the lower right corner, open the WeChat application "Me" and click the settings icon in the upper right corner to enter the settings page.

How to add foreign keys in phpmyadmin How to add foreign keys in phpmyadmin Apr 07, 2024 pm 02:36 PM

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.

Where does the wordpress database exist? Where does the wordpress database exist? Apr 15, 2024 pm 10:39 PM

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.

How to delete data table in phpmyadmin How to delete data table in phpmyadmin Apr 07, 2024 pm 03:00 PM

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.

How to set font size on mobile phone (easily adjust font size on mobile phone) How to set font size on mobile phone (easily adjust font size on mobile phone) May 07, 2024 pm 03:34 PM

Setting font size has become an important personalization requirement as mobile phones become an important tool in people's daily lives. In order to meet the needs of different users, this article will introduce how to improve the mobile phone use experience and adjust the font size of the mobile phone through simple operations. Why do you need to adjust the font size of your mobile phone - Adjusting the font size can make the text clearer and easier to read - Suitable for the reading needs of users of different ages - Convenient for users with poor vision to use the font size setting function of the mobile phone system - How to enter the system settings interface - In Find and enter the "Display" option in the settings interface - find the "Font Size" option and adjust it. Adjust the font size with a third-party application - download and install an application that supports font size adjustment - open the application and enter the relevant settings interface - according to the individual

The secret of hatching mobile dragon eggs is revealed (step by step to teach you how to successfully hatch mobile dragon eggs) The secret of hatching mobile dragon eggs is revealed (step by step to teach you how to successfully hatch mobile dragon eggs) May 04, 2024 pm 06:01 PM

Mobile games have become an integral part of people's lives with the development of technology. It has attracted the attention of many players with its cute dragon egg image and interesting hatching process, and one of the games that has attracted much attention is the mobile version of Dragon Egg. To help players better cultivate and grow their own dragons in the game, this article will introduce to you how to hatch dragon eggs in the mobile version. 1. Choose the appropriate type of dragon egg. Players need to carefully choose the type of dragon egg that they like and suit themselves, based on the different types of dragon egg attributes and abilities provided in the game. 2. Upgrade the level of the incubation machine. Players need to improve the level of the incubation machine by completing tasks and collecting props. The level of the incubation machine determines the hatching speed and hatching success rate. 3. Collect the resources required for hatching. Players need to be in the game

How to export excel using phpmyadmin How to export excel using phpmyadmin Apr 07, 2024 pm 02:24 PM

Export data to Excel format via phpMyAdmin: After logging in to phpMyAdmin, select the database and table to export. Click the "Export" option and select "Excel" in the "Format" drop-down menu. Choose your own export columns, query options, and other export options. Click the "Dump" button to start the export and download the exported Excel file.

See all articles