MatrixOne從入門到實戰04——MatrixOne的連接和建表

MatrixOne從入門到實戰——MatrixOne的連接和建表前景回顧前幾篇文章 , 為大家介紹了MatrixOne這個產品,以及編譯、部署MatrixOne的服務 。
直通車:
MatrixOne從入門到實踐——初識MatrixOne
MatrixOne從入門到實踐——源碼編譯
MatrixOne從入門到實踐——部署MatrixOne
本章主要講述如何使用不同方式連接MatrixOne以及進行表的創建 。
連接MatrixOne使用MySQL Client連接使用MySQL Client連接mo服務時,我們需要在能夠和MO服務通信的機器上準備一個mysql client 。
安裝MySQL Client

  • 卸載mariadb
    # 查詢有無相關依賴rpm -qa |grep mariadb# 卸載相關依賴rpm -e xxx
  • 安裝mysql-client
    # 下載以下rpm包https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-community-common-5.7.35-1.el7.x86_64.rpmhttps://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-community-libs-5.7.35-1.el7.x86_64.rpmhttps://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-community-client-5.7.35-1.el7.x86_64.rpm# 安裝rpmrpm -ivh mysql-community-common-5.7.35-1.el7.x86_64.rpmrpm -ivh mysql-community-libs-5.7.35-1.el7.x86_64.rpmrpm -ivh mysql-community-client-5.7.35-1.el7.x86_64.rpm
使用mysql-client mysql -h 192.168.110.170 -P6001 -uroot -p
  • 連接成功后
    Welcome to the MySQL monitor.Commands end with ; or \g.Your MySQL connection id is 1001Server version: 0.5.0 MatrixOneCopyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>
使用JDBC驅動Java代碼