I've fixed it now. Problem was I had to go into mysqld_safe with skip-grant-tables by
putting in this command:
mysqld_safe --skip-grant-tables &
then open mysql
sudo mysql -u root
So before when I did this and tried to change the password for root so that it could be able to log in again I didn't use the right command to change it
I noticed this when I selected rows from mysql.user and saw in the authentication_string column it said old_password for root.
After I changed the password for root using
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('new_password');
I followed exact instructions from this article linked below to a T:
https://www.digitalocean.com/communi...-root-password
For anyone who comes into this problem when updating mariadb on debian 10 remember to follow every instruction carefully and make sure you use the right commands
for your mysql version. In the future it may change.
Also the >>Aria engine is not enabled or did not start << error was caused by not terminating and killing processes running mysql safe mode after updating the root password and attempting to restart Mysql. You have to make sure to kill all processes running mysql first.