title: For django testing, how do I use keepdb with mariadb
body: <p>I have a database with a lot of nonmanaged tables which I'm using for a django app. For testing I'm wanting to use the --keepdb option so that I don't have to repopulate these tables every time. I'm using MariaDB for my database. If I don't use the keepdb option everything works fine, the test database gets created and destroyed properly. </p>
  
  <p>But when I try to run the test keeping the database:</p>
  
  <p>$ python manage.py test --keepdb</p>
  
  <p>I get the following error:</p>
  
  <p>Using existing test database for alias 'default'...<br>
  Got an error creating the test database: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CREATE DATABASE IF NOT EXISTS <code>test_livedb</code> ;\n                    SET sql_note' at line 2")</p>
  
  <p>I assume that this is an issue with a different syntax between MariaDB and MySQL. Is there anyway to get the keepdb option to work with MariaDB?</p>
  
  <p>thanks very much!</p>