---
# System prepended metadata

title: 跟小九說

---

# 跟小九說

v20240202 [#d069上架堆疊](http://192.168.10.18:8888/doku.php?id=dba:開發機v80:d069上架堆疊:start)


## mysql5743升版流程 

* 資料來源：[mysql5743升版#升版流程](http://host.com:6875/books/mysql5743/page/c4ca4)


###  mysql5743提問1



確認後開啟maintein (維護有資料的表即可)
```sql
UPDATE `slot-game`.host_game SET maintain = 1;
UPDATE `slot-game`.host_card_game SET maintain = 1;
UPDATE `slot-game`.host_89_game SET maintain = 1;
UPDATE `slot-game`.host_arcade_game SET maintain = 1;
UPDATE `slot-game`.host_fish_game SET maintain = 1;
```
* 以上更新壓值SQL用意是?

###  mysql5743提問2

16. 恢復game表 (恢復有maintain的表)，去後台試玩
```sql
USE `slot-game`;
DROP TABLE `host_game`;
DROP TABLE `host_89_game`;
DROP TABLE `host_arcade_game`;
DROP TABLE `host_card_game`;
DROP TABLE `host_fish_game`;
RENAME TABLE `host_game_copy` TO `host_game`;
RENAME TABLE `host_89_game_copy` TO `host_89_game`;
RENAME TABLE `host_arcade_game_copy` TO `host_arcade_game`;
RENAME TABLE `host_card_game_copy` TO `host_card_game`;
RENAME TABLE `host_fish_game_copy` TO `host_fish_game`;
```
以上更新最後的壓值SQL用意是?


###  mysql5743其實是1

10. cmd進入mysql修改資料表(這個步驟表很大會有點久，超過1G一個一個做)
公網文件檔放了帳號/密碼。

<!--/*  mysql -u就是 -p你了  */ -->


###  mysql5743其實是2
1-1.調整表的檢查，將結果丟到 BU00&維運群

查詢的SQL
其實是要用command(不用工具下報),在結果以"\G" 不以表格顯示的標題方式。



## 其他說明


* [hackmd.io](https://hackmd.io/?nav=overview) 線上服務站



## 分析資料


### slowQuery採樣


* HOST： db-64 / db-67 / db-68
* FilePath：

```bash
## 例如hostname:"PS-SERVICE"
 C:\_StoreData\data5743\PS-SERVICE-slow.log
```

* 參考機器狀況：


|Host | 維護時間 | 版本 | Bin週次 | HD單週 | Size1 | Size2 | account|
|--- | --- | --- | --- | --- | --- | --- | ---|
|sname | Upgrade | Version | P3(7天) | P3(BG) | jackDB | slotDB | mid|
|db-64 | 2023/12/12(二) | v5743/Win. | 12/12-12/21 | 33.0 | 58.9 | 214.1 | 1584|
|db-67 | 2024/01/05(五) | v5743/Win. | 1/5-1/12 | 24.7 | 0.1 | 54.4 | 49|
|db-68 | 2024/01/09(二) | v5743/Win. | 1/9-1/16 | 147.0 | 0.0 | 636.1 | 6667|
