Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Do your trouble shooting in controlled steps:</p> <p>(1) Does the script looks ok? </p> <pre><code>DOS E:\trials\SoTrials\SoDbTrials\MySQLScripts type ansi.sql show databases </code></pre> <p>(2) Can you connect to your database (even without specified the host)?</p> <pre><code>DOS E:\trials\SoTrials\SoDbTrials\MySQLScripts mysql -u root -p mysql Enter password: ******** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 9 Server version: 5.0.51b-community-nt MySQL Community Edition (GPL) Type 'help;' or '\h' for help. Type '\c' to clear the buffer. </code></pre> <p>(3) Can you source the script? (Hoping for more/better error info)</p> <pre><code>mysql&gt; source ansi.sql +--------------------+ | Database | +--------------------+ | information_schema | | ... | | test | +--------------------+ 7 rows in set (0.01 sec) mysql&gt; quit Bye </code></pre> <p>(4) Why does it (still not) work?</p> <pre><code>DOS E:\trials\SoTrials\SoDbTrials\MySQLScripts mysql -u root -p mysql &lt; ansi.sql Enter password: ******** Database information_schema ... test </code></pre> <p>I suspected that the encoding of the script could be the culprit, but I got syntax errors for UTF8 or UTF16 encoded files:</p> <pre><code>ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '´╗┐ show databases' at line 1 </code></pre> <p>This could be a version thing; so I think you should make sure of the encoding of your script.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload