Tables could not be fetched - Error loading schema content

I open workbench and connect to a local database on XAMPP and when open the connection the schema show the error message:

"tables could not be fetched"


Solution 1:

run this command on terminal

mysql_upgrade -u root -p

Solution 2:

run this command on terminal

sudo /opt/lampp/bin/mysql_upgrade