./tpcc.lua --mysql-host=0.0.0.0 --mysql-user=root --mysql-password=123456 --mysql-db=tpcc prepare 默认初始化多少张表
时间: 2024-01-26 08:03:39 浏览: 33
默认情况下,`./tpcc.lua --mysql-host=0.0.0.0 --mysql-user=root --mysql-password=123456 --mysql-db=tpcc prepare` 命令会初始化 9 张表,包括 warehouse, district, customer, history, orders, new_orders, order_line, item 和 stock。这是 TPC-C 基准测试中必须使用的标准表。
相关问题
./tpcc.lua --mysql-host=0.0.0.0 --mysql-user=root --mysql-password=123456 --mysql-db=tpcc prepare没初始化9张表就手动退出了该怎么办
如果你手动退出了 `./tpcc.lua --mysql-host=0.0.0.0 --mysql-user=root --mysql-password=123456 --mysql-db=tpcc prepare` 命令,导致没有初始化完 9 张表,可以尝试以下方法:
1. 确认你手动退出的原因,如果是因为程序出现了错误,可以查看程序的日志输出,根据错误信息尝试解决问题。
2. 如果手动退出是因为某些原因导致程序无法继续执行,可以尝试重新运行该命令,并使用 `--skip-warehouse` 参数跳过 warehouse 表的初始化,例如:
```
./tpcc.lua --mysql-host=0.0.0.0 --mysql-user=root --mysql-password=123456 --mysql-db=tpcc prepare --skip-warehouse
```
3. 如果你只需要初始化某些表,可以使用 `--tables` 参数指定需要初始化的表名,例如:
```
./tpcc.lua --mysql-host=0.0.0.0 --mysql-user=root --mysql-password=123456 --mysql-db=tpcc prepare --tables="district,customer,history"
```
4. 如果你已经手动创建了某些表,可以使用 `--use-existing-tables` 参数来告诉程序使用已经存在的表,例如:
```
./tpcc.lua --mysql-host=0.0.0.0 --mysql-user=root --mysql-password=123456 --mysql-db=tpcc prepare --use-existing-tables
```
无论哪种方法,都需要根据实际情况进行调整和尝试,以解决初始化表的问题。
./tpcc.lua --mysql-host=0.0.0.0 --mysql-user=root --mysql-password=123456 --mysql-db=tpcc prepare初始化6张表就自己手动退出了之后该怎么办
如果在执行 `./tpcc.lua --mysql-host=0.0.0.0 --mysql-user=root --mysql-password=123456 --mysql-db=tpcc prepare` 命令时,你手动退出了程序,导致只初始化了 6 张表,可以尝试以下方法:
1. 确认你手动退出的原因,如果是因为程序出现了错误,可以查看程序的日志输出,根据错误信息尝试解决问题。
2. 如果手动退出是因为某些原因导致程序无法继续执行,可以尝试重新运行该命令,并使用 `--skip-warehouse` 参数跳过 warehouse 表的初始化,例如:
```
./tpcc.lua --mysql-host=0.0.0.0 --mysql-user=root --mysql-password=123456 --mysql-db=tpcc prepare --skip-warehouse
```
3. 如果你只需要初始化某些表,可以使用 `--tables` 参数指定需要初始化的表名,例如:
```
./tpcc.lua --mysql-host=0.0.0.0 --mysql-user=root --mysql-password=123456 --mysql-db=tpcc prepare --tables="district,customer,history,orders,new_orders,order_line"
```
4. 如果你已经手动创建了某些表,可以使用 `--use-existing-tables` 参数来告诉程序使用已经存在的表,例如:
```
./tpcc.lua --mysql-host=0.0.0.0 --mysql-user=root --mysql-password=123456 --mysql-db=tpcc prepare --use-existing-tables
```
无论哪种方法,都需要根据实际情况进行调整和尝试。同时,建议在执行该命令时,不要手动退出程序,等待程序正常完成初始化。
相关推荐
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)