@ZouChao

热爱PHP,RUBY,专注于web开发. 撸起袖子加油干!

mysql升级之后数据文件夹共用, 但是无法使用db:migrate

错误信息大致如下:

E, [2019-02-14T11:06:23.650106 #68912] ERROR -- : Mysql2::Error: Table 'performance_schema.session_variables' doesn't exist: SHOW VARIABLES LIKE 'character_set_database'
rake aborted!
ActiveRecord::StatementInvalid: Mysql2::Error: Table 'performance_schema.session_variables' doesn't exist: SHOW VARIABLES LIKE 'character_set_database'

解决方式:

mysql_upgrade -u 用户名 -p --force

然后一定记得重启mysql服务