I am getting the following error when trying to run rake db:migrate
with the mysql2
gem:
ActiveRecord::StatementInvalid: Mysql2::Error: Native table 'performance_schema'.'session_variables' has the wrong structure: SHOW VARIABLES LIKE 'character_set_database'
I have tried sudo mysql_upgrade -u root -p
, which upgraded mysql2
to 0.4.2
, but did not solve the problem