Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

Table 'performance_schema.session_variables' doesn't exist エラー

More than 3 years have passed since last update.

エラー

railsでバルクインサートしようとしたらエラー出た

error.log
ActiveRecord::StatementInvalid:
       Mysql2::Error: Table 'performance_schema.session_variables' doesn't exist: SHOW VARIABLES like 'max_allowed_packet';

対応

mysql_updateをかけて再起動

$ mysql_upgrade -u root -p --force
$ mysql.server restart

参考

https://dev.mysql.com/doc/refman/5.6/ja/mysql-upgrade.html
http://stackoverflow.com/questions/31967527/table-performance-schema-session-variables-doesnt-exist
http://sweep3092.hatenablog.com/entry/2015/11/28/180103

munaita_
フリーランスのデータエンジニアです。 データ基盤構築や、ビッグデータを扱うシステム構築が得意です。 新卒サイバーエージェントからフリーランス。 広告/小売/教育など幅広いドメインのデータビジネスを経験しています。
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away