<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_mysql_cfg():
 """ Get the appropriate MySQL configuration """

    environment = get_project_configuration()['environment']
    cfg = get_database_configuration()
    if environment == 'production':
        mysql = cfg['mysql_online']
    else:
        mysql = cfg['mysql_dev']
    return mysql