Browse Source

start DB installation

pull/1/head
Craig Stewart 3 years ago
parent
commit
ecbb504a7c
  1. 5
      guides/building-a-git-repo/installdb.html

5
guides/building-a-git-repo/installdb.html

@ -43,7 +43,10 @@ My Blog
</p>
</div>
<div id="content">
<p>Now we have a webserver for allowing incoming connections, and a mail server for sending out emails, we need a database for gitea to store information.</p>
<p>Now we have a webserver for allowing incoming connections, and a mail server for sending out emails, we need a database for gitea to store information. For this we will use <a href="https://mariadb.org/" title="MariaDB">MariaDB</a>.</p>
<pre>sudo apt-get install mariadb-client mariadb-server
sudo mysql_secure_installation</pre>
<p>This will install MariaDB, and then run a script to make the database more secure. Initially the root password is blank, so simply press enter when asked, you will then be asked if you want to set a root password, which you do. You should then set a secure password (I still recomend using a password manager to generate and store secure passwords for you) for the root user. Once you have set, and confirmed the new root password you should select yes for all the remaining options. We will now need to create a database and user for git.</p>
<p style="text-align:center;"><a href="/guides/building-a-git-repo/installmail.html" title="Installing a Mail Server">Installing a Mail Server</a>|<a href="/guides/building-a-git-repo/" title="Building A git Repository Server">Main Page</a>|<a href="/guides/building-a-git-repo/installgitea.html" title="Installing Gitea">Installing Gitea</a></p>
</div>
</div>

Loading…
Cancel
Save