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.
-
Locate
install.phpin the ThinkSNS installation package:ThinkSNS_V4.1.170_Beta_Full\ThinkSNS_V4_Beta_Full\install\install.php -
Open the file and go to approximately line 542. The code to replace is highlighted in the screenshot below.

-
Replace the highlighted code with the following line:
mysql_select_db($db_config['db_name ']); Save the file and retry the ThinkSNS installation.
Applies to
ApsaraDB RDS for MySQL