It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

MariaDB setup for Confluence "Access denied for user"

Hi, I have a problem. I try configure Confluence, but I don't know what do in step "Configure Database". I use Instruction and

Description of installation:

-CentOS Linux release 7.0.1406

-confluence 5.9.8

-Server version: 5.5.47-MariaDB MariaDB Server


1 way:

 ---Datasource setup steps and error:

1. Select "MySQL External Database"

2. Select "Connect via a Datasource"

3. Enter datasource name (java:comp/env/jdbc/confluence or jdbc/confluence) and click "Next"

4. Receive the following error: "Could not lookup datasource successfully: com.atlassian.config.bootstrap.BootstrapException: Could not locate datasource: jdbc/confluence"


2 way:

 1. Select "MySQL External Database"

2. Select "Direct JDBC Connection"

3. Enter

Driver Class Name = com.mysql.jdbc.Driver Database URL = jdbc:mysql://localhost:3306/confluence?useUnicode=true&characterEncoding=utf8 User Name = confluence

and click "Next"

4. Receive the following error:

"The following error(s) occurred:  •configuring.db.failed •java.sql.SQLException: Access denied for user 'confluence'@'localhost' (using password: NO)"



MariaDB [(none)]> show grants for 'confluence'@'localhost'; +-----------------------------------------------------------------------------------------------------------------------+ | Grants for confluence@localhost                                                                                  | +-----------------------------------------------------------------------------------------------------------------------+ | GRANT USAGE ON *.* TO 'confluence'@'localhost' IDENTIFIED BY PASSWORD '*6498EC8B7A8C0138E99B1203CED08CF40ACF04B0' | | GRANT ALL PRIVILEGES ON `confluence`.* TO 'confluence'@'localhost'                                                | +-----------------------------------------------------------------------------------------------------------------------+ 2 rows in set (0.04 sec)


Help please!

1 answer

1 accepted

2 votes
Answer accepted
Steven Behnke Community Leader Apr 19, 2016

I use PostgreSQL datasource connection for Confluence. Problem solved.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Introducing Confluence Cloud and Jira Software Cloud Premium

Wherever you are in your team’s journey , our goal is to support your big ambitions. We’re a cloud-first company with the mission of unleashing the potential of every team, and to address the range ...

618 views 4 17
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you