Home >Backend Development >PHP Tutorial >How to Resolve \'Connection for controluser as defined in your configuration failed\' in phpMyAdmin with XAMPP?
Solve the problem of "Control user connection failed" in phpMyAdmin in XAMPP
When using XAMPP, you may encounter: "Connection for controluser as defined in your configuration failed" error. This error is usually caused by configuration issues in the phpMyAdmin installation. Here are the steps on how to resolve this issue:
Log in to phpMyAdmin and create a database and user:
Import SQL file:
Modify the phpMyAdmin configuration file:
<code class="php">$cfg['Servers'][1]['pmadb'] = 'phpmyadmin'; $cfg['Servers'][1]['controluser'] = 'pma'; $cfg['Servers'][1]['controlpass'] = '<your password>'; $cfg['Servers'][1]['bookmarktable'] = 'pma_bookmark'; $cfg['Servers'][1]['relation'] = 'pma_relation'; $cfg['Servers'][1]['userconfig'] = 'pma_userconfig'; $cfg['Servers'][1]['table_info'] = 'pma_table_info'; $cfg['Servers'][1]['column_info'] = 'pma_column_info'; $cfg['Servers'][1]['history'] = 'pma_history'; $cfg['Servers'][1]['recent'] = 'pma_recent'; $cfg['Servers'][1]['table_uiprefs'] = 'pma_table_uiprefs'; $cfg['Servers'][1]['tracking'] = 'pma_tracking'; $cfg['Servers'][1]['table_coords'] = 'pma_table_coords'; $cfg['Servers'][1]['pdf_pages'] = 'pma_pdf_pages'; $cfg['Servers'][1]['designer_coords'] = 'pma_designer_coords';</code>
Log out and log back in to phpMyAdmin:
The problem should be solved.
The above is the detailed content of How to Resolve \'Connection for controluser as defined in your configuration failed\' in phpMyAdmin with XAMPP?. For more information, please follow other related articles on the PHP Chinese website!