lagdo / dbadmin-driver-mysql
DbAdmin driver for MySQL.
v0.11.0
2024-02-12 05:27 UTC
Requires
- lagdo/dbadmin-driver: ^0.11
Requires (Dev)
- behat/behat: ^3.10
- dvdoug/behat-code-coverage: 5.0.*
- php-coveralls/php-coveralls: ^2.5
- phpunit/phpcov: ^8.2
- phpunit/phpunit: ^9.5
README
DbAdmin drivers for MySQL
This package is based on Adminer.
It provides MySQL drivers for Jaxon DbAdmin, and implements the interfaces defined in https://github.com/lagdo/dbadmin-driver.
It requires either the php-mysqli
or the php-pdo_mysql
PHP extension to be installed, and uses the former by default.
Installation
Install with Composer.
composer require lagdo/dbadmin-driver-mysql
Configuration
Declare the MySQL servers in the packages
section on the Jaxon
config file. Set the driver
option to mysql
.
'app' => [ 'packages' => [ Lagdo\DbAdmin\App\Package::class => [ 'servers' => [ 'server_id' => [ // A unique identifier for this server 'driver' => 'mysql', 'name' => '', // The name to be displayed in the dashboard UI. 'host' => '', // The database host name or address. 'port' => 0, // The database port. Optional. 'username' => '', // The database user credentials. 'password' => '', // The database user credentials. ], ], ], ], ],
Check the Jaxon DbAdmin documentation for more information about the package usage.