Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Dendi Handian
Dendi Handian

Posted on • Edited on

Updating Adminer in Laragon for PHP 8

In Laragon, when you switching to PHP 8 and accessing adminer athttp://localhost/adminer, you will find this error:

adminer error in php 8 laragon

the errors are because of the existing adminer app only supported in PHP 7. If you're currently using PHP 8 for now and the future, We need to update the adminer.

Downloading the latest Adminer app

Go tohttps://www.adminer.org/#download, and find the download link for the latest adminer app. Adminer is a single-file php application, so you will find a single php file likeadminer-4.8.1.php downloaded for example.

Updating the existing Adminer to the latest

Go toC:\laragon\etc\apps\adminer (or adjust to your laragon directory path) and you will find a single php fileindex.php. You may want to delete or backup this file and replace it withadminer-4.8.1.php and rename it intoindex.php

Accessing the new Adminer

With PHP 8 running, now the new adminer app will be accessible in the same url and you can start to login into a database.

adminer 4.8.1 login page

as per adminer 4.6.3 or newer, you cannot login into a database with a blank password (ref), unlike the phpMyAdmin. So to use adminer, maybe you need to create a new database admin user with a password through mysql cli or phpmyadmin.

Good thing when you switch back to PHP 7.4, the latest adminer 4.8.1 still supported.

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Data Engineer - Building Data Lake & Modern Data Architecture
  • Location
    Jakarta
  • Education
    B.S. Computer Science
  • Work
    Data Engineer at Media Production Company
  • Joined

More fromDendi Handian

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp