search
HomeDatabasephpMyAdminHow phpmyadmin solves the problem of control user connection failure

This article explainsphpmyadminHow to solve the problem of control user connection failure. I hope it will be helpful to friends in need!

phpmyadmin failed to control user connection, ultimate solution

1. The following are articles found on the Internet

Because I It was phpmyadmin installed using apt-get. After checking the configuration file, I found that config.inc.php under /usr/share/phpmyadmin actually maps to /etc/phpmyadmin/config.inc.php.

Open /etc/phpmyadmin/config.inc.php, according to the error message, find the code to control the user:

$cfg['Servers'][$i]['controluser'] =
$cfg['Servers'][$i]['controlpass'] =

Delete the thing after the equal sign and change it to:

$cfg['Servers'][$i]['controluser'] = ‘root’;
$cfg['Servers'][$i]['controlpass'] = ’123456′;

123456 For your root password, save and refresh the phpmyadmin page. The connection failed using the control user defined in the configuration file. problem solved.

Download an installation package corresponding to your phpmyadmin version from the Internet. I downloaded: phpMyAdmin-3.2.2-all-languages.zip, unzip the scripts/create_tables.sql file, log in to phpmyadmin, and create a new file named For the database of phpmyadmin, import the create_tables.sql file.

Then modify /etc/phpmyadmin/config.inc.php and change:

$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]['designer_coords'] = ‘pma_designer_coords’;

Finally, restart mysql and apache.

However, I have not solved it, so I will record it temporarily

2.Through my own exploration

Found that there are several paths to the config.inc.php file

Find several paths through sudo find / -name config.inc.php

Path

/usr/share/phpmyadmin/setup/frames/config.inc.php
/var/www/html/wordpress/phpmyadmin/config.inc.php
/var/www/html/wordpress/phpmyadmin/setup/frames/config.inc.php
/var/lib/phpmyadmin/config.inc.php
/etc/phpmyadmin/config.inc.php

By reading the code inside, I found that there are two guys in

/etc/phpmyadmin/config.inc.php

, $dbuser and $dbpass,

Change these two guys to connect to the database. Your account and password will be fine, but you also need to restart apache and mysql

3. To summarize

There are several doubts: why change

/etc/phpmyadmin/config.inc.php文件里面的
$cfg['Servers'][$i]['controluser'] =
$cfg['Servers'][$i]['controlpass'] =

Two variables don’t work?

In fact, these two variables mean the configuration of the super administrator username and password

The actual ones that work are $dbuser, $dbpass.

The above is the detailed content of How phpmyadmin solves the problem of control user connection failure. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:csdn. If there is any infringement, please contact admin@php.cn delete
MySQL and phpMyAdmin: Core Features and FunctionsMySQL and phpMyAdmin: Core Features and FunctionsApr 22, 2025 am 12:12 AM

MySQL and phpMyAdmin are powerful database management tools. 1) MySQL is used to create databases and tables, and to execute DML and SQL queries. 2) phpMyAdmin provides an intuitive interface for database management, table structure management, data operations and user permission management.

phpMyAdmin: Generating and Executing SQL QueriesphpMyAdmin: Generating and Executing SQL QueriesApr 21, 2025 am 12:03 AM

The methods of generating and executing SQL queries in phpMyAdmin include: 1. Enter the query in the SQL tab and click to execute; 2. Use JOIN to merge table data; 3. Use index and LIMIT when optimizing queries. phpMyAdmin simplifies database management through an intuitive interface, supporting SQL query operations from basic to advanced.

MySQL and phpMyAdmin: How They Work TogetherMySQL and phpMyAdmin: How They Work TogetherApr 20, 2025 am 12:05 AM

We need to combine database management with a user-friendly interface because this can improve efficiency and convenience. 1) MySQL handles complex data storage and queries, 2) phpMyAdmin provides intuitive web interface to simplify management, 3) The two collaborate to implement data operations through SQL commands, and 4) phpMyAdmin displays the results in a user-friendly way.

phpMyAdmin and SQL: Exploring the ConnectionphpMyAdmin and SQL: Exploring the ConnectionApr 19, 2025 am 12:05 AM

phpMyAdmin manages MySQL databases by generating and executing SQL statements. 1. The user operates through the web interface, 2.phpMyAdmin generates SQL statements, 3. Sends to the MySQL server for execution, 4. Returns the result and displays it in the browser.

phpMyAdmin: Key Features and Capabilities ExplainedphpMyAdmin: Key Features and Capabilities ExplainedApr 18, 2025 am 12:04 AM

phpMyAdmin is a web-based MySQL database management tool that allows users to manage databases through a graphical user interface (GUI). 1. It interacts with the MySQL database through PHP scripts, converts user operations into SQL queries and renders the results. 2. Basic usage includes creating databases and tables, such as creating databases named 'my_database' and 'users' tables. 3. Advanced usage supports complex queries and user permission management, such as finding users with specific user names. 4. Common error debugging techniques include checking SQL syntax, managing permissions, and viewing logs. 5. Performance optimization suggestions include index optimization, query optimization and ensuring security.

phpMyAdmin's Interface: Simplifying SQL OperationsphpMyAdmin's Interface: Simplifying SQL OperationsApr 17, 2025 am 12:01 AM

phpMyAdmin simplifies SQL operations through a graphical interface and improves database management efficiency. 1) Provide an intuitive GUI without directly writing SQL statements; 2) Interact with MySQL through PHP scripts to transparently handle complex operations; 3) Support basic operations such as creating tables and advanced functions such as data export. Pay attention to permissions and SQL syntax errors when using it, and optimize queries, regular backups and ensure security settings.

SQL and phpMyAdmin: A Beginner's GuideSQL and phpMyAdmin: A Beginner's GuideApr 16, 2025 am 12:02 AM

Beginners can learn SQL and phpMyAdmin from scratch. 1) Create database and tables: Create a new database in phpMyAdmin and create tables using SQL commands. 2) Execute basic query: Use SELECT statement to query data from the table. 3) Optimization and best practices: Create indexes, avoid SELECT*, use transactions, and regularly back up databases.

MySQL, phpMyAdmin, and Database Administration: A GuideMySQL, phpMyAdmin, and Database Administration: A GuideApr 15, 2025 am 12:01 AM

MySQL and phpMyAdmin are powerful database management tools. 1.MySQL is an open source relational database management system, and phpMyAdmin is a MySQL management tool based on the Web. 2.MySQL works through the client-server model, and phpMyAdmin simplifies database operations. 3. Basic usage includes creating tables and data operations, and advanced usage involves stored procedures and triggers. 4. Common errors include SQL syntax errors, permission issues and performance bottlenecks. 5. Optimization techniques include reasonable use of indexes, optimized query, regular maintenance and backup and recovery.

See all articles

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

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools