problem after update

after upgrading grafana from 6X to 7X and trying to login. the page does not accept the password and returns to the beginning of the session. If I copy the old database “Grafana.db” I can log in, but when I exit and try to enter again, it fails again. How can i solve this problem? I use Centos8