brew install [email protected]
brew services start [email protected]
brew services stop [email protected]
Verify MySQL v5.7 is running and accessible:
mysql -h 127.0.0.1 -P 3306 -u root
Within mysql
shell, create user and password:
ALTER USER 'root'@'localhost' IDENTIFIED BY 'root';
CREATE USER 'temporal'@'localhost' IDENTIFIED BY 'temporal';
GRANT ALL PRIVILEGES ON *.* TO 'temporal'@'localhost';
Verify password:
mysql -h 127.0.0.1 -P 3306 -u root -p
mysql -h 127.0.0.1 -P 3306 -u temporal -p
emacs /usr/local/etc/my.cnf
setting the variables below to
require_secure_transport=ON
ssl-ca=<path to the server-cert.pem>
ssl-cert=<path to the server-cert.pem>
ssl-key=<path to the server-key.pem>
ALTER USER 'root'@'localhost' IDENTIFIED BY 'root' REQUIRE X509;
ALTER USER 'temporal'@'localhost' IDENTIFIED BY 'temporal' REQUIRE X509;
then restart MySQL:
brew services restart [email protected]
Verify TLS & password:
mysql -u root -p \
--ssl-cert=<path to the client-cert.pem> \
--ssl-key=<path to the client-key.pem> \
--ssl-ca=<path to the ca.pem>