ニュース

FAQ:Piwikアップデート

2013年05月23日 ブログ
  1. How do I install Piwik?
    What version of Piwik do I have?
    自分のPiwikのバージョンを知るには?
  2. What should I do when I want to update Piwik to the latest version?
    Piwikを最新版にアップグレードしたいときは?
  3. How do I backup my MySQL database?
    どのようにMySQLデータベースのバックアップをとればいいですか?
  4. How do I restore my MySQL database?
    MySQLデータベースの復元方法は?
  5. How do I enable Maintenance mode (to display a maintenance message in Piwik, and disable tracking) prior to updates?
    メンテナンスモードで優先してアップグレードしたい場合(追跡抑制やPiwik画面にメンテナンスメッセージが表示されているとき)どうすればいいですか?
  6. What should I do when the upgrade failed with “Syntax error or access violation: 1142 INDEX command denied to user”
    なぜか「シンタックスエラー又はアクセス違反:1142 INDEX command denied to user」でアップグレードに失敗した場合はどうすればいいですか?
  7. After the update, I get sql errors, I would like to try the update again. How do I force Piwik to re-upgrade the database from a past version?
    アップグレードするとMySQLがエラーします。
    それでも他の方法(過去バージョンからのデータベースの際アップグレード)で強制的にアップグレードを試す方法はありますか?
  8. I would like to test early beta and RC releases, how do I enable automatic updates to use these development versions?
    初期βとRCリリースのテストをしたいのですが、開発版で自動アップデートするにはどうしたらよいですか?

回答編

    1. 自分のPiwikのバージョンを知るには?

      There are two ways to know which version of Piwik you are using:
      調べる方法は二つあります。

      ・The About Piwik X.Y box (バージョン情報が表示されているボタン)

      ・File core/Version.php: you can download from your FTP server the file piwik/core/Version.php – inside this file will be the version number you are currently using.
      ・File Core FTPサーバファイル piwik/core/Versuon.phpからダウンロードできます。この中に現在使用中のバージョン情報があります。
      topに戻る

    2. Piwikを最新版にアップグレードしたいときは?

      是非最新版をご利用ください!
      最新版への更新は簡単です。詳しくはアップグレードガイドをご覧ください。
      topに戻る

    3. どのようにMySQLデータベースのバックアップをとればいいですか?

      Please see the WordPress guide on how to backup your database.
      こちらをご覧ください「WordPressガイド DBバックアップ」
      topに戻る

    4. MySQLデータベースの復元方法は?

      こちらをご覧ください「WordPressガイド DBバックアップ」

      span class=”totop”>topに戻る

    5. メンテナンスモードで優先してアップグレードしたい場合(追跡抑制やPiwik画面にメンテナンスメッセージが表示されているとき)どうすればいいですか?

      このFAQで説明されるように、config/config.ini/phpファイルのセッティングを変更することで可能になります。
      topに戻る

    6. なぜか「シンタックスエラー又はアクセス違反:1142 INDEX command denied to user」でアップグレードに失敗した場合はどうすればいいですか?

      Ask your sysadmin to GRANT your database user INDEX privilege. This is required to CREATE, DROP, and ALTER indexes, and allow Piwik to update successfully.
      GRANTに関するデータベースユーザーのINDEXに権限をもつシステム管理者にお尋ねください。
      Piwikの更新にはCREATE、DROPとALTERインデックスの許可が必要となります。

      topに戻る

    7. アップグレードするとMySQLがエラーします。
      それでも他の方法(過去バージョンからのデータベースの際アップグレード)で強制的にアップグレードを試す方法はありますか?

      It happens in rare cases that Piwik believes it has upgraded to a new version (when using the latest PHP/JS files), but that the database itself was not upgraded.
      稀ですが、最新版にアップグレードした後(最新のPHP/JSファイルを使用した場合)にデータベースそのものがアップグレードされていなくてもPiwik自身が勝手に最新版だと認識する場合があります。
      ここでは特定のバージョンからのDB再アップグレードの方法を解説します。

      For example, this could happen if the database crashed or overloaded during the DB upgrade (we recommend to enable maintenance and run the ugprade in the command line)
      たとえば、DBアップグレード(メンテナンスを可能にして、コマンド・ラインでugpradeを走らせることを推奨)の間、破壊されるか、負担をかけられすぎるデータベースならば、起こる可能性があります。

      It could also happen if the new Piwik files in core/Updates/ haven’t yet been uploaded to the latest files, but a Piwik user visits the Piwik UI and issues the partial upgrade leading to the errors.
      core/Updates/の新しいPiwikファイルが最新のファイルにまだアップロードされなかった場合、また起こる可能性があります。しかし、PiwikユーザーはPiwik UIからエラーにつながっている部分的なアップグレードを出します。

      As a result SQL error messages are often printed in some – or all – the reports. Errors messages such as
      その結果、下記のようなエラーメッセージが表示されます。

      ・Error trying to execute the query ‘CREATE TABLE […] Base table or view already exists: 1050 Table exists
      ・SQLSTATE[42S22]: Column not found: 1054 Unknown column on clause
      ・SQLSTATE[42000]: Syntax error or access violation: 1091 Can’t DROP X check that column/key exist
      ・Error trying to execute the query ‘ALTER TABLE’ SQLSTATE[42S22]: Column not found: 1054 Unknown column

      The good news is that it possible in all cases to resolve the issue and not experience any data loss or other problem!
      これらのメッセージであればデータの損失も他の問題もなく解決できます。

      You can manually tell Piwik to run the upgrade again from the version you last good version, by running the following SQL query (eg. using a tool such as phpMyAdmin):
      手動での命令で以下のSQLクエリを走らせることで(例えばphpMyAdminのようなツールを使います)今までお使いだったバージョンで再アップグレードすることができます。
      【UPDATE `piwik_option` SET option_value = “1.X” WHERE option_name = “version_core”;】

      Replace 1. X with the version you were using prior to upgrading, for example “1.10”. After running this query, visit Piwik: you should see the upgrade screen again.
      グレードアップする前に使ていたバージョン(1.10など)と1を入れ替えてください。クエリを走らせたらPiwikを訪問してアップグレードが反映されているか確認してください。

      You can run the upgrade in the command line if your Piwik is large, or simply click the button and wait until completion.
      Piwikが???ならコマンドラインでアップグレードを実行するか、もしくはボタンを押して完了をお待ちください。

      If you still have problems, you can get help in the forums or contact Professional Services for paid support by us.
      解決しない場合はフォーラムで助けを借りるか「contact Professional Services」(URL)にてお問い合わせください。

      topに戻る

    8. 初期βとRCリリースのテストをしたいのですが、開発版で自動アップデートするにはどうしたらよいですか?

      In your config/config.ini.php add the following code:
      config/config.ini.phpに以下のコードを加えてください。

      【[Debug] allow_upgrades_to_beta=1】

      topに戻る

topに戻る