Next, edit the MariaDB default configuration file and tweak some settings: nano /etc/mysql//50-server.cnfĪdd the following lines inside section: innodb_file_format = Barracuda Next, flush the privileges an exit from the MariaDB with the following command: MariaDB >FLUSH PRIVILEGES MariaDB >ALTER DATABASE gitea CHARACTER SET = utf8mb4 COLLATE utf8mb4_unicode_ci Next, grant all the privileges to gitea database and set character set to utf8mb4: MariaDB >GRANT ALL ON gitea.* TO IDENTIFIED BY 'securepassword' WITH GRANT OPTION MariaDB >CREATE USER IDENTIFIED BY 'securepassword' Next, create a database and use for Gitea with the following command: MariaDB >CREATE DATABASE gitea Once connected, enable the Innodb table using the following command: MariaDB >SET GLOBAL innodb_file_per_table = ON Once MariaDB is installed, connect to the MariaDB shell with the following command: mysql You can install it with the following command: apt-get install mariadb-server -y Gitea uses MariaDB as a database backend so MariaDB must be installed on your server. You can install all of them with the following command: apt-get install git unzip gnupg2 -yĪfter installing these packages, you can proceed and install the MariaDB server package. You can do this by running the following commands: apt-get update -yĪpt-get upgrade -y Step 2: Install Required Dependenciesīefore going further, you will need to install some necessary packages on your server. Additionally, replace ‘root’ with the username of the admin account if necessary.īefore starting, you have to make sure that all Ubuntu OS packages installed on the server are up to date. You will need to replace ‘IP_Address’ and ‘Port_number’ with your server’s respective IP address and SSH port number. Step 1: Log in to the Server & Update the Server OS Packagesįirst, log in to your Ubuntu 20.04 server via SSH as the root user: ssh -p Port_number
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |