title: Unable to copy MySQL table from one database to another in phpMyAdmin
body: <p>I want to copy a table from one database to another. Both the tables are on the same server but in different databases. I can see the both from the phpMyAdmin of the same server. I tried to run the following SQL command:</p>
  <pre><code>SELECT * INTO first_db.table_name FROM second_db.table_name
  </code></pre>
  <p>I replace <code>first_db</code>, <code>table_name</code> and <code>second_db</code> with my actual database and table names. Unfortunately, running these queries gives me the following error:</p>
  <pre><code>Undeclared variable: first_db
  </code></pre>
  <p>All the database and table names actually exist.</p>
  <p>Thanks.</p>