*: add traditional Chinese translation (#10835)

This commit is contained in:
Tylerastro
2023-10-05 00:21:37 +08:00
committed by GitHub
parent 6a50a531da
commit fb5a970497
15 changed files with 392 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
# mysql
> MySQL 命令列工具。
> 更多資訊:<https://www.mysql.com/>.
- 與資料庫連線:
`mysql {{資料庫名稱}}}`
- 與資料庫連線,系統將提示使用者輸入密碼:
`mysql -u {{使用者名稱}} --password {{資料庫名稱}}}`
- 連線到另一台主機上的資料庫:
`mysql -h {{資料庫主機}} {{資料庫名稱}}}`
- 透過 Unix 通訊端連接到資料庫:
`mysql --socket {{sock 檔路徑}}`
- 執行腳本檔案(批次檔)中的 `SQL` 語句:
`mysql -e "source {{sql 檔案}}" {{資料庫名稱}}}`
-`mysqldump` 建立的備份還原資料庫(系統將提示使用者輸入密碼):
`mysql --user {{使用者名稱}} --password {{資料庫名稱}} < {{sql 備份檔路徑}}`
- 從備份中恢復所有資料庫(系統將提示使用者輸入密碼):
`mysql --user {{使用者名稱}} --password < {{sql 備份檔路徑}}`