Silgy

Install MySQL on AWS EC2

sudo yum install mysql-server

sudo yum install mysql-devel

sudo service mysqld start

sudo mysql_secure_installation

sudo vi /etc/my.cnf

Add anywhere below [mysqld] and above [mysqld_safe]:

wait_timeout=31536000   (to prevent disconnecting after inactivity)

max_allowed_packet=16M   (to allow bigger packets between app and server)

sudo service mysqld restart

<< Back to Cheat Sheets


Copyright © 2018–2020 Jurek Muszyński