宝塔mysql data修改_宝塔一键修改mysql数据库存放路径,更改默认数据目录…
寶塔一鍵修改mysql數據庫存放路徑,更改默認數據目錄腳本!
該shell腳本僅限于寶塔bt.cn linux面板使用,希望對有需要的朋友有所幫助,如有問題請留言!
主要參數功能:
1.默認修改數據庫存放路徑sh mysql_Transfer.sh
2.還原數據庫原存放路徑sh mysql_Transfer.sh old
腳本相關提示英文翻譯:
抱歉,找不到/www/server/data目錄!
Sorry, I can’t find the /www/server/data directory!抱歉,找不到/www/server/mysql目錄!Sorry, I can’t find the /www/server/mysql directory!輸入新的數據庫路徑(例如:/home/mysql):
Enter a new database path (for example, /home/mysql):新的數據庫路徑不能為空!
New database path cannot be empty!數據庫目錄更改不成功!
Database directory changes not successful!數據庫目錄更改成功!
Database directory changed successfully!正在轉移mysql文件,可能需要一分鐘!
Moving the MySQL file, you may need a minute!正在轉移數據庫文件,可能需要一分鐘!
Transferring the database file, you may need a minute!新mysql安裝路徑:
Now MySQL installation path:恢復成功!
Recover successfully!恢復失敗!
Recovery failure!新數據庫文件路徑:New database file path:
===========================================================
下載鏈接:
wget?http://www.tieww.com/soft/mysql_Transfer.sh?&& sh mysql_Transfer.sh
僅限2.X面板使用
總結
以上是生活随笔為你收集整理的宝塔mysql data修改_宝塔一键修改mysql数据库存放路径,更改默认数据目录…的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Android fragmnet标签,在
- 下一篇: 云优后台提交显示parsererror_