Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering JIRA 7

You're reading from   Mastering JIRA 7 Become an expert at using JIRA 7 through this one-stop guide!

Arrow left icon
Product type Paperback
Published in Oct 2016
Publisher Packt
ISBN-13 9781786466860
Length 450 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Ravi Sagar Ravi Sagar
Author Profile Icon Ravi Sagar
Ravi Sagar
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Preface 1. Planning Your JIRA Installation 2. Searching in JIRA FREE CHAPTER 3. Reporting – Using Charts to Visualize the Data 4. Customizing JIRA for Test Management 5. Understanding Zephyr and its Features 6. Sample Implementation of Use Cases 7. User Management, Groups, and Project Roles 8. Configuring JIRA User Directories to Connect with LDAP, Crowd, and JIRA User Server 9. JIRA Add-On Development and Leveraging the REST API 10. Importing and Exporting Data in JIRA and Migrating Configuration 11. Working with Agile Boards in JIRA Software 12. JIRA Administration with ScriptRunner and the CLI Add-on 13. Database Access 14. Customizing Look, Feel, and Behavior 15. Implementing JIRA Service Desk 16. Integrating JIRA with Common Atlassian Applications and Other Tools 17. JIRA Best Practices 18. Troubleshooting JIRA

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 the database:
    GRANT SELECT,INSERT, UPDATE,DELETE,DROP,CREATE,ALTER,
            INDEX on jiradb.* TO 
            'jirauser'@'localhost' IDENTIFIED BY 'password';
    
  5. Flush the privileges using the following command:
    flush privileges;
    

We have created a MySQL database name as jiradb, a database username as jirauser, and a database password as password. Keep this information on hand because we will need it when we set up JIRA.

Tip

To use MySQL with JIRA, you need to download a mysql-connector-java-5.1.32-bin.jar database driver and copy it to the lib folder under JIRA's installation directory. The driver can be downloaded from http://dev.mysql.com/downloads/connector/j.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image