dataset/seed/mariadb/templates/mariadb.service

4 lines
317 B
SYSTEMD
Raw Permalink Normal View History

2022-03-08 19:42:28 +01:00
[Service]
2023-06-23 08:12:05 +02:00
ExecStartPost=-/usr/bin/mysql -e "UPDATE mysql.global_priv SET priv=json_set(priv, '$.plugin', 'mysql_native_password', '$.authentication_string', PASSWORD('{{ general.mariadb.mariadb_root_password }}')) WHERE User='root';" -e "FLUSH PRIVILEGES;"
2022-03-08 19:42:28 +01:00
ExecStartPost=-/usr/bin/mysql -e "source /etc/mariadb.sql;"