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 可删除数据库

 

posted @   南桥一梦  阅读(676)  评论(0编辑  收藏  举报
编辑推荐:
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
阅读排行:
· 周边上新:园子的第一款马克杯温暖上架
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· DeepSeek如何颠覆传统软件测试?测试工程师会被淘汰吗?
· 使用C#创建一个MCP客户端
点击右上角即可分享
微信分享提示