Setup PhPMyadmin Linux
Introduction: While many users may require the functionalities of a database management system like MySQL, they might not feel comfortable interacting with the system solely through the MySQL prompt. Phpmyadmin was created to allow users to interact with MySQL through a web interface. In this guide, we will explore how to install phpmyadmin so that you can securely manage your databases on an Ubuntu 20.04 system.
Prerequisites: To complete this guide, you will need:
Step 1 - Install MariaDB:
Step 2 - Install phpmyadmin:
Choose the following options when prompted to configure your installation:
The only remaining task in this tutorial section is to explicitly enable the PHP mbstring extension, which you can do by typing:
Then, restart Apache for the changes to take effect:
Phpmyadmin is now installed and configured to work with Apache. However, before you can log in and start interacting with your MySQL databases, ensure that your MySQL users have the required privileges to interact with the program.
Step 3 - Create a user for phpmyadmin: To create a new user account in MySQL, follow these steps:
Step 4 - Adjust the file upload size in php:
In the php.ini file, search for the upload_max_filesize keyword and update its value with the desired file size for larger files. By default, it is set to a maximum of 2MB. For example, you can set it to 20MB.
Then, search for the post_max_size keyword and update its value to the required maximum, corresponding to the size of the entire content and files. For instance, you can set it to 50MB.
Last updated