I have a MySQL database in AWS (RDS), and I connect to it from command line via this command:
mysql -u _usernme_ -p_mypassword_ -h _aws_mysql_host_ _dbname_
It connects fine, problem is, if it remains idle for 1-2 minutes, the connection dies, subsequent commands just hang. I have to kill the process and start a new one.
What configuration changes do I need to do, and where, so that it stays alive forever, just like localhost, until I expressly terminate the connection?
