Help Center/
GaussDB/
M-Compatibility Developer Guide(Centralized)/
Application Development Guide/
Database Access Route
Updated on 2025-10-23 GMT+08:00
Database Access Route
For details about how to design databases and schemas, see the relevant content in "MySQL Compatibility Description > Overview of MySQL Compatibility > Overview of M-compatible Mode" in Compatibility Description.
- Create the database and user by referring to Creating an M-compatible Database and User.
- By default, schemas with the same name as omm_test and other default schemas are generated in the m_db database. These schemas are the workspace. You can use any of the following methods to access a data table:
- Specify a database and schema to use the table name for access.
- Specify a database and do not specify a schema. The system routes the request to the schema with the same name created by the connected user by default and uses schema.table to access the schema.
- Specify a database and do not specify a schema. SQL statements or functions are used to switch the schema and directly use the table name for access.
Parent topic: Application Development Guide
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot