备注:使用docker 进行安装
1. 基本准备
a. 环境检查(必须,不然会有服务启动异常的问题)
docker run --rm memsql/quickstart check-system
b. 启动
docker run -d -p 3306:3306 -p 9000:9000 --name memsqlcontainer memsql/quickstart
启动的时候也可以使用数据卷
docker create --name memsqldata memsql/quickstart /bin/true
docker run -d -p 3306:3306 -p 9000:9000 --name memsqlcontainer --volumes-from memsqldata memsql/quickstart
2. 基本使用
浏览器打开 http://127.0.0.1:9000
参考界面


3. 基本使用
a. 链接创建数据库
docker exec -it memsqlcontainer memsql // 或者直接链接 3306 端口 root 用户 无密码
create database test;
use test;
CREATE TABLE test_table (id BIGINT PRIMARY KEY AUTO_INCREMENT, c INT);
INSERT INTO test_table (c) VALUES (1);
INSERT INTO test_table (c) SELECT c*2 FROM test_table;
INSERT INTO test_table (c) SELECT c*2 FROM test_table;
INSERT INTO test_table (c) SELECT c*2 FROM test_table;
INSERT INTO test_table (c) SELECT c*2 FROM test_table;
INSERT INTO test_table (c) SELECT c*2 FROM test_table;
SELECT SUM(c) FROM test_table;
+--------+
| SUM(c) |
+--------+
| 243 |
+--------+
1 row in set (0.00 sec)
4. 多线程查询测试
docker exec -it memsqlcontainer simple-benchmark
界面可以看到查询


5. 参考资料
https://docs.memsql.com/