mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 15:32:35 +00:00
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
33 lines
594 B
PHP
Executable File
33 lines
594 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Services\Database;
|
|
|
|
class Mysql extends AbstractDatabase
|
|
{
|
|
protected array $systemDbs = ['information_schema', 'performance_schema', 'mysql', 'sys'];
|
|
|
|
protected array $systemUsers = [
|
|
'root',
|
|
'mysql.session',
|
|
'mysql.sys',
|
|
'mysql.infoschema',
|
|
];
|
|
|
|
protected string $defaultCharset = 'utf8mb3';
|
|
|
|
public static function id(): string
|
|
{
|
|
return 'mysql';
|
|
}
|
|
|
|
public static function type(): string
|
|
{
|
|
return 'database';
|
|
}
|
|
|
|
public function unit(): string
|
|
{
|
|
return 'mysql';
|
|
}
|
|
}
|