Software & AppsOperating SystemLinux

Fixing phpMyAdmin Configuration Storage Issue

Ubuntu 16

If you’ve been working with phpMyAdmin, you might have encountered a warning message that states the configuration storage is not completely configured. This can occur due to missing tables or incorrect permissions in your MySQL database. This article will guide you through the steps to fix this issue.

Quick Answer

To fix the phpMyAdmin configuration storage issue, you need to navigate to the necessary directory, unzip the create_tables.sql.gz file, import the create_tables.sql file into MySQL, grant necessary permissions to the pma user, edit the config.inc.php file, save changes and exit, and finally, log out and log back in to phpMyAdmin.

Understanding the Issue

The phpMyAdmin configuration storage issue typically arises when the necessary tables for the phpMyAdmin features are not properly set up in the MySQL database. This can prevent some features of phpMyAdmin from working correctly.

Prerequisites

Before we begin, you need to have the following:

  • Access to a terminal or command line interface
  • Root access to the MySQL server
  • The phpMyAdmin software installed on your system

Step-by-Step Guide to Fixing the Issue

Step 1: Navigate to the Necessary Directory

Open your terminal and navigate to the /usr/share/doc/phpmyadmin/examples directory using the cd command:

cd /usr/share/doc/phpmyadmin/examples

The cd command is used to change directories in a Unix-like operating system.

Step 2: Unzip the create_tables.sql.gz File

The create_tables.sql.gz file contains the SQL commands to create the necessary tables for phpMyAdmin. Unzip this file using the gunzip command:

sudo gunzip create_tables.sql.gz

The sudo command allows you to run programs with the security privileges of another user (by default, as the superuser). The gunzip command decompresses files.

Step 3: Import the create_tables.sql File into MySQL

Next, import the create_tables.sql file into MySQL with the following command:

mysql -u root -p < create_tables.sql

The mysql command is used to interact with the MySQL database. The -u option specifies the username (in this case, root), and the -p option prompts for a password.

Step 4: Grant Necessary Permissions to the pma User

After importing the necessary tables, grant the necessary permissions to the pma user. This can be done with the following command:

mysql -u root -p -e 'GRANT SELECT, INSERT, DELETE, UPDATE ON phpmyadmin.* TO 'pma'@'localhost' IDENTIFIED BY "pmapassword"'

The GRANT statement is used to give users access to the database. The SELECT, INSERT, DELETE, and UPDATE options specify the types of actions the user can perform.

Step 5: Edit the config.inc.php File

Next, open the /etc/phpmyadmin/config.inc.php file in a text editor of your choice. Make the following changes:

  • Set the control user and password:
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = 'pmapassword';
  • Set the table names for the phpMyAdmin features:
$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';

These lines of code set the control user and password and specify the table names for the phpMyAdmin features.

Step 6: Save Changes and Exit

After making the necessary changes, save and exit the text editor.

Step 7: Log Out and Log Back In

Finally, log out of phpMyAdmin and then log back in to see if the warning message has disappeared.

Conclusion

By following these steps, you should be able to fix the phpMyAdmin configuration storage issue. This will ensure that all the features of phpMyAdmin work correctly and that you can manage your MySQL databases efficiently. If you encounter any issues, refer to the phpMyAdmin documentation for further assistance.

What is phpMyAdmin?

phpMyAdmin is a free and open-source web-based tool written in PHP that is used for managing MySQL databases. It provides an intuitive interface to perform tasks such as creating databases, tables, and executing SQL queries.

How do I install phpMyAdmin?

The installation process can vary depending on your operating system. Generally, you can install phpMyAdmin by using package managers like apt-get for Ubuntu or Homebrew for macOS. Detailed installation instructions can be found in the phpMyAdmin documentation.

What are the prerequisites for fixing the phpMyAdmin configuration storage issue?

To fix the phpMyAdmin configuration storage issue, you need access to a terminal or command line interface, root access to the MySQL server, and the phpMyAdmin software installed on your system.

What causes the phpMyAdmin configuration storage issue?

The phpMyAdmin configuration storage issue is typically caused by missing tables or incorrect permissions in the MySQL database. This can prevent certain features of phpMyAdmin from working correctly.

How can I navigate to the necessary directory to fix the issue?

To navigate to the necessary directory, open your terminal and use the cd command followed by the directory path. In this case, you can use the command cd /usr/share/doc/phpmyadmin/examples.

How do I import the create_tables.sql file into MySQL?

You can import the create_tables.sql file into MySQL by using the mysql command followed by the username, password, and the file to import. For example, mysql -u root -p < create_tables.sql.

What changes do I need to make in the config.inc.php file?

In the config.inc.php file, you need to set the control user and password, as well as specify the table names for the phpMyAdmin features. These changes are necessary to properly configure the phpMyAdmin storage.

How can I log out and log back in to phpMyAdmin?

To log out of phpMyAdmin, simply click on the "Log Out" button or link in the interface. To log back in, you can access the phpMyAdmin URL again and provide your credentials.

Where can I find further assistance or documentation for phpMyAdmin?

If you encounter any issues or need further assistance, you can refer to the phpMyAdmin documentation. It provides detailed information on installation, configuration, and usage of phpMyAdmin.

Leave a Comment

Your email address will not be published. Required fields are marked *