memsql 落地mysql_How to Install MemSQL

MemSQL runs natively on 64-bit Linux operating systems. Your system hardware must have at least 4 CPU cores and 8 GB of RAM, and you must using a supported distribution of Linux. For more information, see our System Requirements.

1

Download the MemSQL tar file

Open the Terminal App on your computer and execute theses commands. They download the MemSQL tar file to the /tmp directory (or a path of your own choosing).

cd /tmp

wget http://download.memsql.com/memsql-ops-6.0.10/memsql-ops-6.0.10.tar.gz

2

Extract the contents of the tar file

This command extracts the MemSQL executable from the tar file to a folder with the same name.

tar zxvf memsql-ops-6.0.10.tar.gz

3

Run the installer script and deploy a simple cluster

These commands navigate to the extracted folder and then run an installer script that installs MemSQL as a simple cluster with one master aggregator and one leaf.

cd memsql-ops-6.0.10

sudo ./install.sh --simple-cluster

4

Connect to the MemSQL client

memsql

然后你可以使用 mysql 的命令行或者是 mysql 的客户端工具连接到 MemSQL,跟连接到 MySQL 的方法一样,例如:

$ mysql -u root -h 127.0.0.1 -P 3307 --prompt="memsql> "

你也可以使用一些图形化的数据库管理工具来连接。

使用 MemSQL 跟使用 MySQL 没有区别:)

删除:

memsql-ops memsql-delete 可删除数据库

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值