Troubleshooting MySQL Error Token Mismatch: Quick Fixes and Tips

MySQL error token mismatch when you connect to a database in PHPMyadmin.

if the browser cookies don’t match the error:

token mismatch

comes up

token mismatch

Reasons that generate this error:

1. the /tmp directory is full. Run the command

df -h

on a server terminal, empty the directory contents when you find Use: 100% and clear the /tmp folder too.

2. Incorrect permissions: he permissions of the folder /tmp must be set to 755. Run

chmod 755 /home/username/tmp

3. php.ini file issue: uncomment

session.save_path

and set the value to /tmp.

ession.save_path = "/tmp"

restart apache:

 service httpd restart

4. Outdated browser cache: clear the browser cache and cookies.