Setting up the MySQL database

JIRA needs to store its data in a database. For this, we will set up a MySQL database. JIRA 7 requires MySQL 5.1 up until 5.6 to run smoothly. You should refer to the preferred MySQL server configurations as described on the following page: https://confluence.atlassian.com/jira/connecting-jira-to-mysql-185729489.html.

It's also possible to use PostgreSQL, Oracle, or Microsoft SQL Server with JIRA, but here we will discuss how to set up the MySQL database:

  1. Log in to your MySQL Server with the following command:
    mysql -u root -p
    
  2. Enter the password.
  3. Create a new database to be used by JIRA using the following command:
    Create database jiradb character set utf8 COLLATE utf8_bin;
    
  4. Create a new user and give it permissions on ...

Get Mastering JIRA 7 - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.