How to Install MySQL 5.7 on RHEL/CentOS 7

Basic Server Setup

 

 

 

Setup MySQL 5.7

 

 

Setup Firewall (Optional)

 

Reboot after Setup

 

Optional Settings for MySQL 5.7

Disable MySQL Strict Mode

Reference: https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html

 

Fix MySQL Password Expired

To establish a global policy such that passwords never expire.

Update /etc/my.cnf

Reference: https://dev.mysql.com/doc/refman/5.7/en/password-expiration-policy.html

 

Convert .cer to .crt certificates for Apache/mod_ssl using OpenSSL

Assume you have a CER is an DER encoded X.509 certificate in binary form, and you want to have a PEM-encoded X.509 Certificate file for Apache.

The following command may help:

 

Apache/mod_ssl request PEM-encoded X.509 Certificate file

Reference: http://www.modssl.org/docs/2.8/ssl_reference.html#ToC10