Can't log into Matomo


I’m having issues with logging into Matomo after editing the config.ini.php file. What I edited was the database information because I imported a backup database into MySQL. That part was successful, editing the config.ini.php file was successful because I got the login page afterwards but it doesn’t recognize my superuser login credentials that I created when I initially setup Matomo. It just says wrong username and password or an error stating the form security failed because of a token mismatch. Has anyone run into this issue?