django.db.utils.OperationalError: (1045:Access denied for user 'root'@'localhost' (using password: NO)

After I installed Mysql 8.0 in mac, and changed the default root password, I got the error django.db.utils.OperationalError: (1045:Access denied for user 'root'@'localhost' (using password: NO) whe...