Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Look in the directory where you installed MySQL, probably something like <code>C:\Program Files\MySQL\MySQL Server 5.0</code>. Look in the my.ini file. Check the server section. It will look something like this:</p> <pre><code># SERVER SECTION # ---------------------------------------------------------------------- # # The following options will be read by the MySQL Server. Make sure that # you have installed the server correctly (see above) so it reads this # file. # [mysqld] # The TCP/IP Port the MySQL Server will listen on port=3306 </code></pre> <p>What's the port number you are using? Okay, go to the command line and run mysql:</p> <pre><code>C:\Users\foobar&gt;mysql --port=3306 --user=root --password Enter password: ******** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.0.51b-community-nt MySQL Community Edition (GPL) Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql&gt; use mysql; Database changed mysql&gt; show tables; +---------------------------+ | Tables_in_mysql | +---------------------------+ | columns_priv | | db | | func | | help_category | | help_keyword | | help_relation | | help_topic | | host | | proc | | procs_priv | | tables_priv | | time_zone | | time_zone_leap_second | | time_zone_name | | time_zone_transition | | time_zone_transition_type | | user | | user_info | +---------------------------+ 18 rows in set (0.00 sec) </code></pre> <p>Okay, then you can use mysql. Go into your Django local_settings.py and check that MySQL is set up correctly:</p> <pre><code>DATABASE_ENGINE = 'mysql' DATABASE_NAME = 'whatever' DATABASE_USER = '&lt;special app user&gt;' DATABASE_PASSWORD = '&lt;password for user&gt;' DATABASE_HOST = '&lt;ip address or host name of server&gt;' DATABASE_PORT = '3306' </code></pre> <p>If you did all these things from the command line, then this Django setup will work.</p>
 

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