MySQL configuration to conf file

Move mysql configuration to conf file.