mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-21 19:01:37 +00:00
* Add database and database users sync * get mysl users * add mariadb and postgres * fix phpstan
10 lines
313 B
PHP
10 lines
313 B
PHP
if ! sudo mysql -e "SELECT u.User,
|
|
u.Host,
|
|
(SELECT group_concat(distinct p.TABLE_SCHEMA)
|
|
FROM information_schema.SCHEMA_PRIVILEGES p
|
|
WHERE p.GRANTEE = concat('\'', u.User, '\'', '@', '\'', u.Host, '\'')) as Privileges
|
|
FROM mysql.user u;";
|
|
then
|
|
echo 'VITO_SSH_ERROR' && exit 1
|
|
fi
|