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代码