All Products
Search
Document Center

ApsaraDB RDS:Resolve "OPERATION need to be executed set by ADMIN" error for ThinkSNS on ApsaraDB RDS

Last Updated:Jun 08, 2026
This article contains information about third-party products. Such information is for reference only. Alibaba Cloud makes no guarantee, express or implied, regarding the performance and reliability of third-party products, or the impact of operations on those products.

Problem description

After you create a database and authorize an account to install ThinkSNS, the following error appears when connecting to the ApsaraDB RDS database:

OPERATION need to be executed set by ADMIN

Solution

ApsaraDB RDS restricts ADMIN-level privileges. To resolve this error, replace the affected function call in the ThinkSNS installation file with the standard database selection method.

Important

Back up install.php before making any changes.

  1. Locate install.php in the ThinkSNS installation package:

    ThinkSNS_V4.1.170_Beta_Full\ThinkSNS_V4_Beta_Full\install\install.php
  2. Open the file and go to approximately line 542. The code to replace is highlighted in the screenshot below.

  3. Replace the highlighted code with the following line:

    mysql_select_db($db_config['db_name ']);
  4. Save the file and retry the ThinkSNS installation.

Applies to

  • ApsaraDB RDS for MySQL