The variable inside while loop is not remembered. Mysql bash script auto_increment
问题 I've working on this script for quite some time. But I started to see some errors when I tried to add a variable ($EMAIL_MSG) to store some strings of text to later be emailed. It seems that the variable inside while loop is not remembered. (A variable modified inside a while loop is not remembered) Here is part of the script: #!/bin/bash # # This is bash script checks when auto_increment column is reaching its limit # To run Script $ ./auto_increment_check.sh [username] [password] MYSQL_USER