MySQL setup not saved, in Linux installation of confluence
Asked by jilong sun:

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.png](/t5/image/serverpage/image-id/12963iD9AF747BDD631CAE/image-size/large?v=v2&px=999 "Untitled11.png")It 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](/t5/image/serverpage/image-id/12964iE5B9328C75F21501/image-size/large?v=v2&px=999 "confluence.cfg.xml.png")


Answers:
author: Shannon S
body: Hi Jilong,

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

I would recommend following the suggestion by Luiz on [this similar question](https://community.atlassian.com/t5/Confluence-questions/Re-blank-page-in-confluence-after-mysql-database-configuration/qaq-p/243900/comment-id/41262#M41262). 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

comments: author: jilong sun
body: 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](https://community.atlassian.com/t5/image/serverpage/image-id/13015i9932174293BFA7DF/image-size/large?v=v2&px=999 "Untitled.png")

Here are the log screens:

![log1.png](https://community.atlassian.com/t5/image/serverpage/image-id/13019iAB7113BB117E005D/image-size/large?v=v2&px=999 "log1.png")![log2.png](https://community.atlassian.com/t5/image/serverpage/image-id/13020iBD31780AE8117113/image-size/large?v=v2&px=999 "log2.png")


author: Shannon S
body: Hi,

Can you check Nic's [response on this answer](https://community.atlassian.com/t5/Confluence-discussions/Confluence-Initial-setup-Error/td-p/671592) and make sure you have the correct permissions for your database user?

Have a look at this as well: [Database Setup for MySQL](https://confluence.atlassian.com/doc/database-setup-for-mysql-128747.html) for the user requirements:
>
> 3. Create database and database user {#toc-hId-1787997140}
> ----------------------------------------------------------
>
> 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


author: jilong sun
body: Thanks a lot, [@Shannon S](/t5/user/viewprofilepage/user-id/510046). After I set up a DB user with complete permission, this issue has been fixed.


author: Shannon S
body: Glad to hear!

Take care and have a pleasant rest of your week.

Regards,

Shannon