title: Docker compose: MariaDB got an error with init.sql / entrypoint
body: <p>have the following service in my docker compose file:</p>
  
  <pre><code>  database:
      image: mariadb
      container_name: database
      environment:
        MYSQL_ROOT_PASSWORD: 7ctDGg5YUwkCPkCW
      entrypoint:
        sh -c "echo 'CREATE DATABASE IF NOT EXISTS users;
                      CREATE DATABASE IF NOT EXISTS data;
                      CREATE DATABASE IF NOT EXISTS wordpress;
                      CREATE USER IF NOT EXISTS 'keycloak'@localhost IDENTIFIED BY 'jk2zKvGkJXBsrNMV';
                      GRANT ALL PRIVILEGES ON 'users'.* TO 'keycloak'@localhost; 
                      CREATE USER IF NOT EXISTS 'wordpress'@localhost IDENTIFIED BY 'QKJFUfZbv7jMB5ba';
                      GRANT ALL PRIVILEGES ON 'wordpress'.* TO 'wordpress'@localhost;' &gt; /docker-entrypoint-initdb.d/init.sql;
        /usr/local/bin/docker-entrypoint.sh --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
        "
      ports:
        - 3306:3306
      volumes:
        - database_data:/var/lib/mysql
      networks:
        - backend-network
  </code></pre>
  
  <p>The mariadb service start ups without problems, but when it comes to the point where it is trying to run the init.sql I got the following error message:</p>
  
  <pre><code>database     | 2020-06-13 18:20:03+00:00 [Note] [Entrypoint]: /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/init.sql
  database     | ERROR 1064 (42000) at line 1: 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 'jk2zKvGkJXBsrNMV' at line 1
  database exited with code 1
  </code></pre>
  
  <p>Hopefully there is some one out there, who is able to tell me whats wrong.</p>
  
  <p>So far,
  Daniel</p>