<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>art2nd</author_name>
  <author_url>https://blog.hatena.ne.jp/art2nd/</author_url>
  <blog_title>晴歩雨描</blog_title>
  <blog_url>https://2ndart.hatenablog.com/</blog_url>
  <categories>
    <anon>コンピュータ</anon>
    <anon>ホームページ、Web作成</anon>
  </categories>
  <description>MySQLデータベースを別サーバーにコピーする時の注意点。 phpMyAdminを使って、移行元サーバーでエクスポートして、移行先サーバーでそのファイルをインポートすればテーブルはコピーできる。 しかし、ビュー（View）はコピーできない。 ビュー（View）の定義に「DEFINER=」という記述があると、移行先で同じユーザー名が存在しない場合、エラーなる。この場合、テキストエディタでSQLファイルを開き、「DEFINER=」 部分を削除してからインポートすれば、ビューもコピーできる。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F2ndart.hatenablog.com%2Fentry%2F2026%2F01%2F25%2F121257&quot; title=&quot;MySQLデータベースをphpMyAdminで別サーバーにコピーする時、ビューもコピーするには、「DEFINER=」を削除してインポートする。 - 晴歩雨描&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/a/art2nd/20260125/20260125120448.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-01-25 12:12:57</published>
  <title>MySQLデータベースをphpMyAdminで別サーバーにコピーする時、ビューもコピーするには、「DEFINER=」を削除してインポートする。</title>
  <type>rich</type>
  <url>https://2ndart.hatenablog.com/entry/2026/01/25/121257</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
