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.mysql

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).sql

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.shell

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> "

你也可使用一些圖形化的數據庫管理工具來鏈接。ui

使用 MemSQL 跟使用 MySQL 沒有區別:)spa

 

刪除:.net

memsql-ops memsql-delete 可刪除數據庫命令行

相關文章
相關標籤/搜索