MySQL setup not saved, in Linux installation of confluence

I started the linux installation , after mysql database is set up successfully, I am directed to a blank page, seems not successful. I have attached the screen as below, any thought?

Untitled11.pngIt seems that the database setup information(connection string, username, pass) are not saved into the confluence.cfg.xml successfully. as below:

 

confluence.cfg.xml.png

 

1 answer

0 votes

Hi Jilong,

When you tested the connection first, did it work properly?

I would recommend following the suggestion by Luiz on this similar question. Additionally, you can tail your Confluence Server logs to see what the problem might be, but it definitely seems that it's having an issue connecting to your MySQL server.

Regards,

Shannon

The MySQL server is available and I can ping it. I removed the log file: atlassian-confluence.log, and restarted the confluence service, and re-configure the database again, after connection string information is set and go to next step, it goes to the error page:

Untitled.png

 

Here are the log screens:

log1.pnglog2.png

Hi,

Can you check Nic's response on this answer and make sure you have the correct permissions for your database user?

Have a look at this as well: Database Setup for MySQL for the user requirements:

3. Create database and database user

Once you've installed and configured MySQL, create a database user and database for Confluence as follows:

  1. Run the 'mysql' command as a MySQL super user. The default user is 'root' with a blank password.
  2. Create an empty Confluence database schema (for example confluence):

    CREATE DATABASE <database-name> CHARACTER SET utf8 COLLATE utf8_bin;
  3. Create a Confluence database user (for example confluenceuser):

    GRANT ALL PRIVILEGES ON <database-name>.* TO '<confluenceuser>'@'localhost' IDENTIFIED BY '<password>';

    If Confluence is not running on the same server, replace localhost with the hostname or IP address of the Confluence server. 

Lastly, can you confirm your MySQL version?

Regards,

Shannon

Thanks a lot, @Shannon Spaniol. After I set up a DB user with complete permission, this issue has been fixed.

Glad to hear!

Take care and have a pleasant rest of your week.

Regards,

Shannon

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 9 hours ago in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

86 views 0 11
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you