ghost CMS DigitalOcean Marketplace error

It was built using the image DigitalOcean of ghost CMS, but I found a problem that mysql does not run.

Please tell me how to solve it.

mysql error log append

2023-05-16T16:49:50.609454Z 0 [Warning] [MY-010091] [Server] Can't create test file /var/lib/mysql/mysqld_tmp_file_case_insensitive_test.lower-test
2023-05-16T16:49:50.610904Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.33-0ubuntu0.22.04.1) starting as process 13443
2023-05-16T16:49:50.622139Z 0 [Warning] [MY-010091] [Server] Can't create test file /var/lib/mysql/mysqld_tmp_file_case_insensitive_test.lower-test
2023-05-16T16:49:50.622149Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /var/lib/mysql/ is case insensitive
2023-05-16T16:49:50.623763Z 0 [Warning] [MY-010122] [Server] One can only use the --user switch if running as root
2023-05-16T16:49:50.631258Z 0 [ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: Permission denied
2023-05-16T16:49:50.631329Z 0 [ERROR] [MY-010119] [Server] Aborting
2023-05-16T16:49:50.635295Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.33-0ubuntu0.22.04.1)  (Ubuntu)

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Site Moderator
Site Moderator badge
May 17, 2023

Hey @noahray,

I’ve just created a Droplet from the Marketplace using the Ghost image. I was unable to experience the issues you are describing.

Anyway, the issue that you are experiencing should be resolved by giving permission to the /var/lib/mysql folder to the mysql user and group. Make sure that the MySQL server has read, write, and execute permissions on this directory. You can change the owner to the mysql user using the command chown -R mysql:mysql /var/lib/mysql.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel