停用mariadb部份可以使用
sudo -i synoservicecfg --list synoservice -stop pkgctl-Mariadb10
參考Synology DSM 6 (terminal) service control
詳細指令如下:
# sudo -i # synoservice -stop pkgctl-MariaDB10 # mysqld_safe --skip-grant-tables &
然後利用
# /usr/local/mariadb10/bin/mysql -u root
mysql> use mysql; mysql> UPDATE user SET Password=PASSWORD("password") WHERE User='root'; mysql> flush privileges; mysql> quit
最後重啟Mariadb10
# synoservice -stop pkgctl-MariaDB10