首页 > 其他分享 >如何安装 StoneDB 2.0 企业版? | StoneDB 使用教程 #2

如何安装 StoneDB 2.0 企业版? | StoneDB 使用教程 #2

时间:2023-11-09 13:55:52浏览次数:27  
标签:opt 教程 StoneDB install v2 stonedb mysql 2.0 log




图片通过二进制TAR包安装(CentOS 7.X)


下载安装包

stonedb-ee-8.0-v2.1.0.el7.x86_64.tar.gz
下载地址:https://www.stoneatom.com/download

解压安装包

点击查看代码
tar -zxvf stonedb-ee-8.0-v2.1.0.el7.x86_64.tar.gz -C /opt

依赖检查

点击查看代码
ldd -r /opt/stonedb_v2/install/bin/mysqld
ldd -r /opt/stonedb_v2/install/bin/mysql
注:若检查返回有关键字"not found",说明缺少依赖文件,可以从安装目录 /opt/stonedb_v2/install/lib64 下找到对应的依赖文件,然后拷贝到本地目录 /lib64。

编辑参数文件

点击查看代码
[client]
port = 3306
socket          = /opt/stonedb_v2/install/tmp/mysql.sock

[mysqld]
port                = 3306
basedir             = /opt/stonedb_v2/install/
tmpdir              = /opt/stonedb_v2/install/tmp/
socket              = /opt/stonedb_v2/install/tmp/mysql.sock
datadir             = /opt/stonedb_v2/install/data/
pid-file            = /opt/stonedb_v2/install/mysqld.pid
log-error           = /opt/stonedb_v2/install/log/mysqld.log
slow_query_log_file = /opt/stonedb_v2/install/log/slow.log
log-bin             = /opt/stonedb_v2/install/binlog/mysql-bin.log

max_connections = 1000
max_binlog_size = 512M
sync_binlog = 1
binlog_format = row
open_files_limit = 65535
server_id = 1

innodb_buffer_pool_size = 512M
innodb_data_file_path = ibdata1:1G:autoextend
innodb_log_buffer_size = 32M
innodb_log_file_size = 512M
innodb_log_files_in_group = 2

创建组、用户、目录

点击查看代码
groupadd mysql
useradd -g mysql mysql -s /usr/bin/nologin

mkdir -p /opt/stonedb_v2/install/tmp
mkdir -p /opt/stonedb_v2/install/data
mkdir -p /opt/stonedb_v2/install/log
mkdir -p /opt/stonedb_v2/install/binlog

chown -R mysql:mysql /opt/stonedb_v2

初始化实例

点击查看代码
/opt/stonedb_v2/install/bin/mysqld --defaults-file=/opt/stonedb_v2/install/my.cnf --initialize --user=mysql

启动实例

点击查看代码

/opt/stonedb_v2/install/bin/mysqld_safe --defaults-file=/opt/stonedb_v2/install/my.cnf --user=mysql &

登录数据库

点击查看代码
cat /opt/stonedb_v2/install/log/mysqld.log |grep password

/opt/stonedb_v2/install/bin/mysql -uroot -p -S /opt/stonedb_v2/install/tmp/mysql.sock

图片通过RPM包安装(CentOS 7.X)

下载安装包

stonedb-ee-8.0-v2.1.0.el7.x86_64.rpm

下载地址:https://www.stoneatom.com/download

解压安装包

点击查看代码
rpm -ivh stonedb-ee-8.0-v2.1.0.el7.x86_64.rpm
注:解压后,默认路径为 /opt/stonedb_v2/install。

检查依赖

点击查看代码
ldd -r /opt/stonedb_v2/install/bin/mysqld
ldd -r /opt/stonedb_v2/install/bin/mysql
注:若检查返回有关键字"not found",说明缺少依赖文件,可以从安装目录 /opt/stonedb_v2/install/lib64 下找到对应的依赖文件,然后拷贝到本地目录 /lib64。

编辑参数文件

点击查看代码
[client]
port = 3306
socket          = /opt/stonedb_v2/install/tmp/mysql.sock

[mysqld]
port                = 3306
basedir             = /opt/stonedb_v2/install/
tmpdir              = /opt/stonedb_v2/install/tmp/
socket              = /opt/stonedb_v2/install/tmp/mysql.sock
datadir             = /opt/stonedb_v2/install/data/
pid-file            = /opt/stonedb_v2/install/mysqld.pid
log-error           = /opt/stonedb_v2/install/log/mysqld.log
slow_query_log_file = /opt/stonedb_v2/install/log/slow.log
log-bin             = /opt/stonedb_v2/install/binlog/mysql-bin.log

max_connections = 1000
max_binlog_size = 512M
sync_binlog = 1
binlog_format = row
open_files_limit = 65535
server_id = 1

innodb_buffer_pool_size = 512M
innodb_data_file_path = ibdata1:1G:autoextend
innodb_log_buffer_size = 32M
innodb_log_file_size = 512M
innodb_log_files_in_group = 2

创建组、用户、目录

点击查看代码
groupadd mysql
useradd -g mysql mysql -s /usr/bin/nologin

mkdir -p /opt/stonedb_v2/install/tmp
mkdir -p /opt/stonedb_v2/install/data
mkdir -p /opt/stonedb_v2/install/log
mkdir -p /opt/stonedb_v2/install/binlog

chown -R mysql:mysql /opt/stonedb_v2

初始化实例

点击查看代码
/opt/stonedb_v2/install/bin/mysqld --defaults-file=/opt/stonedb_v2/install/my.cnf --initialize --user=mysql

启动实例

点击查看代码
/opt/stonedb_v2/install/bin/mysqld_safe --defaults-file=/opt/stonedb_v2/install/my.cnf --user=mysql &

登录数据库

点击查看代码
cat /opt/stonedb_v2/install/log/mysqld.log |grep password

/opt/stonedb_v2/install/bin/mysql -uroot -p -S /opt/stonedb_v2/install/tmp/mysql.sock

图片通过DEB包安装(Ubuntu 20.04)

下载安装包

stonedb-ee-8.0-v2.1.0.ubuntu.amd64.deb
下载地址:https://www.stoneatom.com/download

解压安装包

点击查看代码
dpkg -x stonedb-ee-8.0-v2.1.0.ubuntu.amd64.deb /opt
注:解压后,默认路径为 /opt/stonedb_v2/install。

检查依赖

点击查看代码
ldd -r /opt/stonedb_v2/install/bin/mysqld
ldd -r /opt/stonedb_v2/install/bin/mysql
注:若检查返回有关键字"not found",说明缺少依赖文件,可以从安装目录 /opt/stonedb_v2/install/lib64 下找到对应的依赖文件,然后拷贝到本地目录 /lib64。

编辑参数文件

点击查看代码
[client]
port = 3306
socket          = /opt/stonedb_v2/install/tmp/mysql.sock

[mysqld]
port                = 3306
basedir             = /opt/stonedb_v2/install/
tmpdir              = /opt/stonedb_v2/install/tmp/
socket              = /opt/stonedb_v2/install/tmp/mysql.sock
datadir             = /opt/stonedb_v2/install/data/
pid-file            = /opt/stonedb_v2/install/mysqld.pid
log-error           = /opt/stonedb_v2/install/log/mysqld.log
slow_query_log_file = /opt/stonedb_v2/install/log/slow.log
log-bin             = /opt/stonedb_v2/install/binlog/mysql-bin.log

max_connections = 1000
max_binlog_size = 512M
sync_binlog = 1
binlog_format = row
open_files_limit = 65535
server_id = 1

innodb_buffer_pool_size = 512M
innodb_data_file_path = ibdata1:1G:autoextend
innodb_log_buffer_size = 32M
innodb_log_file_size = 512M
innodb_log_files_in_group = 2

创建组、用户、目录

点击查看代码
groupadd mysql
useradd -g mysql mysql -s /usr/bin/nologin

mkdir -p /opt/stonedb_v2/install/tmp
mkdir -p /opt/stonedb_v2/install/data
mkdir -p /opt/stonedb_v2/install/log
mkdir -p /opt/stonedb_v2/install/binlog

chown -R mysql:mysql /opt/stonedb_v2

初始化实例

点击查看代码
/opt/stonedb_v2/install/bin/mysqld --defaults-file=/opt/stonedb_v2/install/my.cnf --initialize --user=mysql

启动实例

点击查看代码
/opt/stonedb_v2/install/bin/mysqld_safe --defaults-file=/opt/stonedb_v2/install/my.cnf --user=mysql &

登录数据库

点击查看代码
cat /opt/stonedb_v2/install/log/mysqld.log |grep password

/opt/stonedb_v2/install/bin/mysql -uroot -p -S /opt/stonedb_v2/install/tmp/mysql.sock

以上是StoneDB-8.0-V2.0企业公测版系列的安装说明,需要指出的是,在本文中我们只是以V2.1.0版本为例,本编译安装教程具有通用性,版本号读者可以自行更新为最新版本。

StoneDB 产品介绍

StoneDB 是石原子科技自主设计研发的国内首款完全兼容于 MySQL 生态的开源一体化实时 HTAP 数据库产品,具备行列混存、智能索引等核心特性,为 MySQL 数据库提供在线数据实时就近分析服务,能够高效解决 MySQL 数据库在分析型应用场景中面临的能力问题。同时,StoneDB 使用多存储引擎架构的设计,事务引擎具有数据强一致特性,具备完整的事务并发处理能力,使得 StoneDB 可以替代 MySQL 数据库满足在线事务处理场景的需求,使用 MySQL 的用户,通过 StoneDB 可以实现 TP+AP 混合负载,分析性能提升 10 倍以上,不需要进行数据迁移,也无需与其他 AP 集成,弥补 MySQL 分析领域的空白。

加入StoneDB社区

Github:https://github.com/stoneatom/stonedb

Gitee:https://gitee.com/StoneDB/stonedb

社区官网:https://stonedb.io/

哔哩哔哩:https://space.bilibili.com/1154290084

Twitter:https://twitter.com/StoneDataBase

Linkedin:https://www.linkedin.com/in/stonedb/

加入微信群:添加社区助理-小石侠;加入钉钉群:扫描下方钉钉群二维码。

image

标签:opt,教程,StoneDB,install,v2,stonedb,mysql,2.0,log
From: https://www.cnblogs.com/stonedb/p/17819556.html

相关文章

  • 无涯教程-批处理 - For 语句 - List Implementations函数
    "for"构造为批处理文件提供循环功能,以下是用于处理值列表的"for"语句的常见结构。FOR%%variableINlistDOdo_something经典的"for"语句由以下部分组成-variable变量    -对于整个循环,此步骤仅执行一次,并用于声明将在循环中使用的任何变量,在批处理脚本中变量声......
  • 无涯教程-批处理 - While 语句 Implementation函数
    批处理脚本中没有直接的while语句,但是无涯教程可以使用if语句和标签很容易地实现此循环。下图显示了此循环的图解说明。while实现的第一部分是设置计数器,这些计数器将用于控制对"if"条件的判断,然后,无涯教程定义标签,该标签将用于体现while循环实现的整个代码,"if"条件将计算表......
  • ubuntu22.04挂载windows的smb3文件共享
    现在windows一般使用smb3.0版本 可以看到,支持smb3直接编辑/etc/fstab 如果目标目录有空格,可以用\040进行转义,通常的转义在这儿不管用。/etc/cirfs-credentials用于配置用户名密码  手动挂载可以使用sudomount.smb3//192.168.31.20/samba /mnt/samba-ousername......
  • 无涯教程-批处理 - Nested If 语句函数
    有时,要求彼此之间嵌入多个"if"语句。以下是此声明的一般形式。if(condition1)if(condition2)do_something因此,仅当满足condition1和condition2时,才会执行do_something块中的代码。以下是如何使用嵌套if语句的示例。@echooffSET/Aa=5SET/Ab=10if%a%==5if%b......
  • Python 数据库应用教程:安装 MySQL 及使用 MySQL Connector
    Python可以用于数据库应用程序。其中最流行的数据库之一是MySQL。MySQL数据库为了能够在本教程中尝试代码示例,您应该在计算机上安装MySQL。您可以在MySQL官方网站下载MySQL数据库。安装MySQL驱动程序Python需要一个MySQL驱动程序来访问MySQL数据库。在本教程中,我们将使用"......
  • Python 数据库应用教程:安装 MySQL 及使用 MySQL Connector
    Python可以用于数据库应用程序。其中最流行的数据库之一是MySQL。MySQL数据库为了能够在本教程中尝试代码示例,您应该在计算机上安装MySQL。您可以在MySQL官方网站下载MySQL数据库。安装MySQL驱动程序Python需要一个MySQL驱动程序来访问MySQL数据库。在本教程中,我们将使用......
  • openEuler22.03操作系统 Linux内核Kernel 5.10 应该选择哪个版本的mysql安装包下载?
    对于openEuler22.03操作系统和Linux内核Kernel5.10,你应该选择与该操作系统和内核版本兼容的MySQL安装包进行安装。在确定适合的MySQL版本时,你可以考虑以下几点:MySQL官方支持:查看MySQL官方网站中的文档或支持页面,确认其是否支持openEuler22.03操作系统和Kernel5.......
  • 无涯教程-批处理 - Right String函数
    这用于从字符串末尾提取字符。RightString-示例@echooffsetstr=Thismessageneedschanged.echo%str%setstr=%str:~-8%echo%str%关于上述程序,需要注意的关键是,使用〜-"要提取的字符数"运算符来提取字符串的右边。上面的命令产生以下输出。Thismessagene......
  • 无涯教程-批处理 - Replace a String函数
    要将子字符串替换为另一个字符串,请使用字符串替换功能。ReplaceaString-示例@echooffsetstr=Thismessageneedschanged.echo%str%setstr=%str:needs=has%echo%str%关于上述程序,需要注意的关键是,该示例通过语句%str:needs=has%用字符串"has"替换了"needs"......
  • 无涯教程-批处理 - Remove All Spaces函数
    这用于通过替换删除字符串中的所有空格。RemoveAllSpaces-示例@echooffsetstr=Thisstringhasalotofspacesecho%str%setstr=%str:=%echo%str%关于上述程序,需要注意的关键是::=运算符用于删除字符串中的所有空格。上面的命令产生以下输出。Th......