To work with phpMyAdmin you need to have the webserver configured. If it is not installed use this guide.
In this article, we will describe 2 phpMyAdmin installation methods:
1. Download phpMyAdmin from the official website.
It is suitable for everyone, regardless of the operating system. To get started, go to the downloads section of phpmyadmin.net and download the archive with the latest available version of phpMyAdmin to your computer.
Once you have finished, place the archive folder in your web directory. For convenience, rename it to "phpMyAdmin".
If you use a local web server, use these links http://localhost/phpMyAdmin or http://127.0.0.1/phpMyAdmin to access phpMyAdmin.
2. Installation from the Ubuntu repository
The second method is useful only for OC Ubuntu users. To install phpMyAdmin:
1. Update the available package data. Run the command:
sudo apt update
2. Install phpMyAdmin. Run the command:
sudo apt install phpmyadmin
During installation, the system prompts you to set which web server you want to use to run phpMyAdmin. In the example, we use an Apache webserver.
Use the Tab key to go to the "OK" button. To press the "OK" button — the "Enter" key.
Set a password for the database. Follow the markers in the images.
3. Create a symbolic link to phpMyAdmin in the web directory.
ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
To access phpMyAdmin on a local web server, use these links: http://localhost/phpmyadmin or http://127.0.0.1/phpmyadmin
4. Create a new database.
Enter the name of the new database and click "Create".