Connection Method | Description |
Connecting to a cluster via DMC is easy. DMC provides database management services that integrate database/table-level operations, real-time monitoring, instance session management, SQL window, and data management. Note: Only the new version of DMC supports accessing read-only analysis engines. For the login address of the new version of DMC, go to the login page. | |
Developers using Linux CVM instances can use this connection method. | |
Developers using Windows CVM instances can use this connection method. |
/* to server instance ID */ syntax in Hint Syntax Usage./*to ap*/ Hint syntax. If there are multiple read-only analysis engine instances, load balancing will be performed for SQL statements according to the weight of read-only analysis engines./*to server instance ID*/ syntax and the /*to ap*/ syntax does not exist, SQL statements will be forwarded to an existing read-only instance or the read-write instance in the database proxy by default for execution.# mysql -h172.16.0.12 -P3306 -utest -p -c -Amysql> /* to server libradb-ins-hw0af2zi */ show databases;+---------------------+| Database |+---------------------+| INFORMATION_SCHEMA || Test1 || Test2 || __cdb_recycle_bin__ || haha || libra_system || test |+---------------------+7 rows in set (0.01 sec)
mysql> select /* to ap */ * from haha.t;+----+------+| id | haha |+----+------+| 1 | 1 || 2 | 2 |+----+------+2 rows in set (0.01 sec)
mysql> select /* to server libradb-ins-hw0af2zi */ * from haha.t;+----+------+| id | haha |+----+------+| 1 | 1 || 2 | 2 |+----+------+2 rows in set (0.01 sec)
mysql> select /* to server libradb-ins-hw0af2zi */ /*+ set_var(libra_enable_late_materialization=1) */ * from haha.t;+----+------+| id | haha |+----+------+| 1 | 1 || 2 | 2 |+----+------+2 rows in set (0.01 sec)
Feedback