diff --git a/Install-Tracks-on-Ubuntu-20.10.md b/Install-Tracks-on-Ubuntu-20.10.md index d506fca..0c28002 100644 --- a/Install-Tracks-on-Ubuntu-20.10.md +++ b/Install-Tracks-on-Ubuntu-20.10.md @@ -135,7 +135,8 @@ >nano database.yml

Normally you edit only the "production" section

-

the words in bold are the names you need to choose for the database, the user and password. This must match what you later use when manually creates the database.

+

the words in bold are the names you need to choose for the database, the user and password. This must match what you later use when manually create the database.

+

The adapter mysql2 is the one for MySQL of MariaDB

production:
adapter: mysql2
@@ -201,23 +202,23 @@ admin_email : my.email@domain.com

You need to create a database and database-user to use with Tracks, in this guide the name of the database is tempe, we create a user daniel with a password DANIEL with all privileges to access the database

-

>mysql -u root -p

-

mysql> CREATE DATABASE tempe CHARACTER SET UTF8;

-

mysql> CREATE USER daniel@localhost IDENTIFIED WITH mysql_native_password BY 'DANIEL';

-

mysql> GRANT USAGE ON *.* TO daniel@localhost;

-

mysql> GRANT ALL PRIVILEGES ON tempe .* TO daniel@localhost;

-

mysql> GRANT GRANT OPTION ON tempe .* TO daniel@localhost; # Enables you to grant to or revoke from other users those privileges that you yourself possess.

-

mysql>quit;

+>mysql -u root -p
+mysql> CREATE DATABASE tempe CHARACTER SET UTF8;
+mysql> CREATE USER daniel@localhost IDENTIFIED WITH mysql_native_password BY 'DANIEL';
+mysql> GRANT USAGE ON *.* TO daniel@localhost;
+mysql> GRANT ALL PRIVILEGES ON tempe .* TO daniel@localhost;
+mysql> GRANT GRANT OPTION ON tempe .* TO daniel@localhost; # Enables you to grant to or revoke from other users those privileges that you yourself possess.
+mysql>quit;

Note: for the dump of the database you need to add the global PROCESS privilege to the user running the command

-

mysql>GRANT PROCESS ON *.* TO daniel@localhost;

+mysql>GRANT PROCESS ON *.* TO daniel@localhost;

you can use the following to verify that the database and the user were created

-

mysql> SHOW DATABASES;

-

mysql> SELECT User FROM mysql.user;

-

mysql> quit

+mysql> SHOW DATABASES;
+mysql> SELECT User FROM mysql.user;
+mysql> quit

if needed you can restart the MySQL service