Update your database URI in the Flask configuration to include the correct password.
If the root user does not have a password (not recommended for production), make sure your Mysql is set to allow root connections without a password. You can still write the URI as you did, but this practice is discouraged.