Rabadash8820 / AwsUtil

A set of scripts, templates, and schemas for general AWS cloud infrastructures.
Mozilla Public License 2.0
2 stars 0 forks source link

Use mysqld_safe to Start MySQL on the WordPress Server #43

Closed Rabadash8820 closed 7 years ago

Rabadash8820 commented 7 years ago

This article, which describes how to start the mysqld daemon, mentions another command called mysqld_safe. Apparently, this command is the recommended way to start mysqld on Linux instances pre-5.7. Since Amazon Linux only offers MySQL 5.6 out of the box (and adding the MySQL repo to upgrade doesn't seem necessary yet), we should be using this command.

Rabadash8820 commented 7 years ago

It looks like the mysqld service started by cfn-init is most likely /etc/init.d/mysqld. Reading this script's code, it looks like it already executes the mysqld_safe script (stored at /usr/libexec/mysql56/mysqld_safe). So I think we're good!

Cancelling this issue...