Skip to content

Commit

Permalink
mysql database doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ymarcon committed May 19, 2022
1 parent 25ca24f commit 5c4d9cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web-user-guide/administration/databases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@ Sample script for MySQL database creation:
CREATE DATABASE opal_data CHARACTER SET utf8 COLLATE utf8_bin;
CREATE USER 'opal' IDENTIFIED BY '<opal-user-password>';
GRANT ALL ON opal_data.* TO 'opal'@'localhost' IDENTIFIED BY '<opal-user-password>';
CREATE USER 'opal'@'localhost' IDENTIFIED BY '<opal-user-password>';
GRANT ALL ON opal_data.* TO 'opal'@'localhost';
FLUSH PRIVILEGES;
Note that for more recent MySQL servers using the SHA2 authentication (that is known to not be working with JDBC), you should use the ``mysql_native_password`` directive when creating the user:

.. code-block:: sql
CREATE USER 'opal' WITH mysql_native_password IDENTIFIED BY '<opal-user-password>';
CREATE USER 'opal'@'localhost' WITH mysql_native_password IDENTIFIED BY '<opal-user-password>';
PostgreSQL
^^^^^^^^^^
Expand Down

0 comments on commit 5c4d9cd

Please sign in to comment.