mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-15 16:56:32 +01:00
Updated Install Tracks on Ubuntu 20.10 (markdown)
parent
a6c235a092
commit
c582b03922
1 changed files with 13 additions and 12 deletions
|
|
@ -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>>mysql -u root -p</p>
|
||||
<p>mysql> CREATE DATABASE <em> <strong>tempe</strong> </em> CHARACTER SET UTF8;</p>
|
||||
<p>mysql> CREATE USER <strong>daniel</strong>@localhost IDENTIFIED WITH mysql_native_password BY '<strong>DANIEL</strong>';</p>
|
||||
<p>mysql> GRANT USAGE ON *.* TO daniel@localhost;</p>
|
||||
<p>mysql> GRANT ALL PRIVILEGES ON <em> <strong>tempe</strong> </em>.* TO daniel@localhost;</p>
|
||||
<p>mysql> 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>quit;</p>
|
||||
>mysql -u root -p<br/>
|
||||
mysql> CREATE DATABASE <em> <strong>tempe</strong> </em> CHARACTER SET UTF8;<br/>
|
||||
mysql> CREATE USER <strong>daniel</strong>@localhost IDENTIFIED WITH mysql_native_password BY '<strong>DANIEL</strong>';<br/>
|
||||
mysql> GRANT USAGE ON *.* TO daniel@localhost;<br/>
|
||||
mysql> GRANT ALL PRIVILEGES ON <em> <strong>tempe</strong> </em>.* TO daniel@localhost;<br/>
|
||||
mysql> 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>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>GRANT PROCESS ON *.* TO daniel@localhost;</p>
|
||||
mysql>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> SHOW DATABASES;</p>
|
||||
<p>mysql> SELECT User FROM mysql.user;</p>
|
||||
<p>mysql> quit</p>
|
||||
mysql> SHOW DATABASES;<br/>
|
||||
mysql> SELECT User FROM mysql.user;<br/>
|
||||
mysql> quit
|
||||
</blockquote>
|
||||
<p>if needed you can restart the MySQL service</p>
|
||||
<blockquote>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue