Data Admin Service
Data Admin Service
- What's New
- Function Overview
- Service Overview
- Getting Started
-
User Guide
- Overview
- Permissions Management
- Logging In to the DAS Console
- Adding Login Information
- Logging In to a Database
- Modifying Login Information
- Deleting Login Information
- Logging In to Databases Shared by Others
- MySQL DB Instance Management (Development Tool)
- RDS for PostgreSQL Instance Management (Development Tool)
- DDS DB Instance Management (Development Tool)
- Distributed DDM DB Instance Management (Development Tool)
- Intelligent O&M
- Audit
- Change History
- Best Practices
-
FAQs
- Product Consulting
-
Connection Management (Development Tool)
- What Should I Do If I Can't Connect to My DB Instance Due to Insufficient Permissions?
- What Should I Do If I Can't Connect to My RDS for MySQL Instance?
- What Should I Do If I Can't Connect to My ECS (MySQL) Instance?
- What Should I Do If I Can't Connect to My RDS for PostgreSQL Instance?
- What Should I Do If I Can't Connect to My ECS (PostgreSQL) Instance?
- What Should I Do If I Can't Connect to My DDS Instance?
- What Should I Do If I Can't Connect to My DDM Instance?
- How Do I View and Modify ECS Security Group Rules?
- How Do I View and Modify Firewall Rules?
- Usage
- Service Support
- Change History
- Videos
On this page
Show all
Help Center/
Data Admin Service/
User Guide/
Intelligent O&M/
MySQL DB Instances/
SQL/
SQL Diagnosis
SQL Diagnosis
Updated on 2023-03-07 GMT+08:00
Procedure
- Log in to the DAS console.
- On the Overview page, click Go to Intelligent O&M.
- Select the target instance and click Details.
- Choose SQL > SQL Diagnosis. On the displayed page, select your desired database, enter the SQL statements to be diagnosed, and click Diagnose. The diagnosis result page is displayed.
- On the SQL Diagnosis page, enter SQL statements and click Execute. The system automatically executes the statements and displays a result set.
- On the SQL Diagnosis page, enter multiple SQL statements and click Format. The system automatically formats all SQL statements.
- On the SQL Diagnosis page, enter multiple SQL statements and click View Execution Plan. The system automatically executes all SQL statements in sequence.
NOTE:
- Only MySQL InnoDB is supported.
- Only the diagnosis of the SELECT, INSERT, UPDATE, and DELETE statements is supported. An INSERT statement must contain a SELECT clause.
- SQL statements for querying system databases like information_schema, test, and mysql are not supported.
- View statements are not supported.
- The SQL tuning function obtains the table structure and data distribution information (non-original). The obtained data is only for logic diagnosis, but not stored on the DAS server.
- Obtaining table structure and data distribution information may add additional loads to the DB instance, but has little impact on its performance.
- Only the SQL diagnosis history is stored on the DAS server. You can delete it from the server permanently.
- Format SQL: improves the readability of SQL statements. Formatting SQL statements enables statements to be displayed in line break mode, but does not change their logic and semantics.
The formatting takes effect for all the SQL statements in the SQL window. You cannot format only the selected statements.
Parent topic: SQL
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.