There is no value set for the below while running locally. Thanks for all the help
os.getenv('MYSQL_PORT')