in Raspberry Pi by

1. To install the PHPMyAdmin package to our Raspberry Pi, have to run the command below.

sudo apt install phpmyadmin

2. Select the “apache2” option by pressing SPACE and then ENTER. Select this option even if you are using NGINX as we will configure that ourselves latest on.

3. Next, we will need to configure PHPMyAdmin to connect to our MYSQL server. We will also need set up some details so that we can log in to the PHPMyAdmin software.

To do this select “<Yes>” at the next prompt.

Raspbian PHPMyAdmin setup

4. Set a password for PHPMyAdmin itself. It is best to set this password to something different to your root SQL password. Doing this will help secure the server.

This password is what PHPMyAdmin will use to connect to the MySQL server.

5. Create a new user:

sudo mysql -u root -p

6. Run the command below to create a user and permit it to access all databases

Make sure you replace “username” with the username of your choice.

Also, replace “password” with a secure password of your choice.

GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;

7. You can exit out of the MySQL command line interface by typing “quit” in the terminal.

Once done you can proceed to configure PHPMyAdmin for Apache or NGINX.

access your Raspberry Pi’s PHPMyAdmin interface:

http://localhost/phpmyadmin

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

10 questions

0 answers

0 comments

1 user

Welcome to Asky Q&A, where you can ask questions and receive answers from other members of the community.
...
Total PHP MySQL Other RAM
Time (ms) % Time (ms) % File count Time (ms) % Query count Time (ms) % Amount %
Setup 31.8 13% 16.0 6% 19 7.2 2% 2 8.5 3% 111k 47%
Control 75.4 30% 24.2 9% 10 58.7 24% 12 0.0 0% 36k 15%
View 31.0 12% 29.7 12% 20 1.9 0% 1 0.0 0% 42k 17%
Theme 31.1 12% 22.1 9% 2 0.0 0% 0 9.0 3% 40k 17%
Stats 74.2 30% 2.5 1% 0 72.7 29% 2 0.0 0% 4k 1%
Total 243.7 100% 94.8 38% 51 140.5 57% 17 8.4 3% 235k 100%