leokhoa / laragon

Laragon is a portable, isolated, fast & powerful universal development environment for PHP, Node.js, Python, Java, Go, Ruby. It is fast, lightweight, easy-to-use and easy-to-extend.
https://laragon.org
4.46k stars 371 forks source link

Update PhpMyAdmin to latest version #298

Open Grezor opened 2 years ago

Grezor commented 2 years ago

My problem

When I downloaded Laragon, by default, it sets heidiSQL, when you click on the database button. It displays Heidi SQL. So I installed phpmyadmin from the button: Tools > Quick add > phpmyadmin. When I restarted Laragon, and opened phpmyadmin. There were depreciation errors (image #version 4.8.5)

Fix problem :

So I searched a bit in Laragon architecture, I found a usr/package.conf file where there is the download version https://github.com/leokhoa/laragon/blob/0b5006a3e40b49c440b42a11d8c054f572768df5/usr/packages.conf#L8 here we can see that the version is not up to date. (phpMyAdmin-4.9.5-english.zip)

Testing

I replaced the download version link. I restarted Laragon and restarted phpmyadmin. It works correctly on my side. Is it possible to have a feedback ?

Images :

version 4.8.5

image image

version 5.1.3

image

Grezor commented 2 years ago

I found another problem:

If I download version 4.9.5 then click on phpmyadmin. It will download the directory in etc/apps/phpmyadmin. On the other hand, if I replace the link and I put latest: it will download in the folder already created (version 4.9.3) with a folder named phpMyAdmin-latest-all-language.

option 1 : create bash file that checks that if there is already the directory etc/app/phpmyadmin, it deletes the directory, replaces with the new version.

option 2: Check that the version is lower than the new version. For example folder 4.9.5, folder 5.3.1 if the version is higher, add the folder etc/app/phpmyadmin4.9.3 change folder and keep the old version as backup.