Updated Install Tracks on Ubuntu 20.10 (markdown)

ghost-from-the-past 2021-04-14 15:32:55 +02:00
parent a6c235a092
commit c582b03922

@ -135,7 +135,8 @@
>nano database.yml
</blockquote>
<p>Normally you edit only the "production" section</p>
<p>the words in <b>bold</b> 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.</p>
<p>the words in <b>bold</b> 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.</p>
<p>The adapter <strong>mysql2</strong> is the one for MySQL of MariaDB</p>
<blockquote>
production:<br/>
adapter: mysql2<br/>
@ -201,23 +202,23 @@ admin_email : <b>my.email@domain.com</b><br/>
<p>You need to create a database and database-user to use with Tracks, in this guide the name of the database is <strong>tempe</strong>, we create a user <strong>daniel</strong> with a password <strong>DANIEL</strong> with all privileges to access the database<em> </em>
</p>
<blockquote>
<p>&gt;mysql -u root -p</p>
<p>mysql&gt; CREATE DATABASE <em> <strong>tempe</strong> </em> CHARACTER SET UTF8;</p>
<p>mysql&gt; CREATE USER <strong>daniel</strong>@localhost IDENTIFIED WITH mysql_native_password BY '<strong>DANIEL</strong>';</p>
<p>mysql&gt; GRANT USAGE ON *.* TO daniel@localhost;</p>
<p>mysql&gt; GRANT ALL PRIVILEGES ON <em> <strong>tempe</strong> </em>.* TO daniel@localhost;</p>
<p>mysql&gt; GRANT GRANT OPTION ON <em> <strong>tempe</strong> </em>.* TO daniel@localhost; # Enables you to grant to or revoke from other users those privileges that you yourself possess.</p>
<p>mysql&gt;quit;</p>
&gt;mysql -u root -p<br/>
mysql&gt; CREATE DATABASE <em> <strong>tempe</strong> </em> CHARACTER SET UTF8;<br/>
mysql&gt; CREATE USER <strong>daniel</strong>@localhost IDENTIFIED WITH mysql_native_password BY '<strong>DANIEL</strong>';<br/>
mysql&gt; GRANT USAGE ON *.* TO daniel@localhost;<br/>
mysql&gt; GRANT ALL PRIVILEGES ON <em> <strong>tempe</strong> </em>.* TO daniel@localhost;<br/>
mysql&gt; GRANT GRANT OPTION ON <em> <strong>tempe</strong> </em>.* TO daniel@localhost; # Enables you to grant to or revoke from other users those privileges that you yourself possess.<br/>
mysql&gt;quit;
</blockquote>
<p>Note: for the dump of the database you need to add the <strong>global</strong> PROCESS privilege to the user running the command</p>
<blockquote>
<p>mysql&gt;GRANT PROCESS ON *.* TO daniel@localhost;</p>
mysql&gt;GRANT PROCESS ON *.* TO daniel@localhost;
</blockquote>
<p>you can use the following to verify that the database and the user were created</p>
<blockquote>
<p>mysql&gt; SHOW DATABASES;</p>
<p>mysql&gt; SELECT User FROM mysql.user;</p>
<p>mysql&gt; quit</p>
mysql&gt; SHOW DATABASES;<br/>
mysql&gt; SELECT User FROM mysql.user;<br/>
mysql&gt; quit
</blockquote>
<p>if needed you can restart the MySQL service</p>
<blockquote>