Im now getting this error

MariaDB build complete...
Creating DB users for YiiMP...
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
An error occurred in line 39 of file db.sh:
sudo mysql -u root -p"${DBRootPassword}" -e "$SQL"
Ive sudo purged etc NGinx a few times but it keeps coming back to this. I havent checked the github pages to see if its failing picking up the variable for password or not.. unfortunately im 'essential' so cant stay home from work during the zombie apocalypse