Skip to content

Commit e63e61c

Browse files
committed
Merge branch 'master' of github.com:charlessoft/docker_script
2 parents faf51b7 + 8083503 commit e63e61c

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

wordpress/README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,22 @@
3939
4040
4141
## 迁移
42-
1. 修改host和端口
42+
1. 导出数据库
43+
```
44+
sh backup.sh
45+
```
46+
2. 打包wordpress.sh 脚本
47+
```
48+
tar zcvf wordpress_bak.tar.gz **/*
49+
```
50+
3. 导入数据库
51+
```
52+
sh import.sh xxx
53+
```
54+
4. 修改host和端口
4355
```
4456
update wp_options set option_value='http://101.133.129.216:8080' where option_name ='siteurl' or option_name='home'
4557
```
46-
2. 打包wordpress所有文件
58+
4. wordpress所有文件
59+
解压
60+

0 commit comments

Comments
 (0)