示例#1
0
        private void CopyDatabase(int sourceAppId, int targetAppId)
        {
            MySqlAccess sa = new MySqlAccess();
            string      adminConnectionString        = GetAdminConnectionString();
            MySqlConnectionStringBuilder connBuilder = new MySqlConnectionStringBuilder(adminConnectionString);
            string username = connBuilder.UserID;
            string password = connBuilder.Password;

            sa.CopyDatabase(adminConnectionString, GetDatabaseName(sourceAppId), username, password, GetDatabaseName(targetAppId));
        }