2000字范文,分享全网优秀范文,学习好帮手!
2000字范文 > 宝塔mysql data修改_宝塔一键修改mysql数据库存放路径 更改默认数据目录…

宝塔mysql data修改_宝塔一键修改mysql数据库存放路径 更改默认数据目录…

时间:2021-12-24 18:33:30

相关推荐

宝塔mysql data修改_宝塔一键修改mysql数据库存放路径 更改默认数据目录…

宝塔一键修改mysql数据库存放路径,更改默认数据目录脚本!

该shell脚本仅限于宝塔 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/soft/mysql_Transfer.sh&& sh mysql_Transfer.sh

仅限2.X面板使用

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。