1
0
Fork 0
mirror of https://github.com/YunoHost/yunohost.git synced 2024-09-03 20:06:10 +02:00
yunohost/data/hooks/restore/11-system_mysql

5 lines
174 B
Text

backup_dir="$1/mysql"
mysqlpwd=$(sudo cat /etc/yunohost/mysql)
#sudo mysql -uroot -p"$mysqlpwd" mysql < $backup_dir/mysql.sql
sudo mysqladmin flush-privileges -p"$mysqlpwd"