O'Reilly logo

GitLab Repository Management by Jonathan M. Hethey

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Databases

You need multiple database systems to run GitLab, which may sound unusual, but they are very different databases.

MySQL is used for long-term storage of data, where Redis is responsible for queueing up the jobs, distributing them over several processes, and to ensure fast response time.

We will go through the following steps to install MySQL for GitLab:

  1. Install the MySQL client and server.
  2. Create the GitLab database user.
  3. Generate a secure password.
  4. Create the GitLab database.
  5. Grant permissions to the GitLab database user.
  6. Test the connection.

MySQL

Installing the MySQL server is easy and is followed by creating a dedicated user for GitLab.

Do not just use a common user or even root to do this, it's a potential security vulnerability.

sudo apt-get ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required