Back up MySQL in ZenTao

原创
2019-01-12 10:22:28
John
1127

This instruction applies to server change from Windows to Linux.


Download a one-click installation package for Linux, and unzip it to /opt.

cd /opt wget http: //dl.cnezsoft.com/zentao/8.2.1/ZenTaoPMS.8.2.1.zip

tar zxvf ./ ZenTaoPMS . 8.2 . 1 . zip


Visit the directory and start ZenTao.

cd ./zbox ./zbox start


But! You will find nothing in the database. Don't panic. According to the official manual, you can back up your ZenTao MySQL and restore it in your new database.


Run the script to back up.

I :\ xampp \ zentao \ bin > i :\ xampp \ php \ php .exe I :\ xampp \ zentao \ bin \ php \ backup .php


You will get two .zip file. One is for MySQL, the other is all the files uploaded. Store the two files in /opt/zbox/app/zentao/www/data/upload/1 and keep the original directory.


Pass MySQL script to the root directory of Linux and run the command below.

/opt/zbox/run/mysql/mysql


Import .sql file in MySQL command line.

use zentao ;

source db .20160529 .sql ;


Done! Now you can visit ZenTao using the IP address you used before.


发表评论
评论通过审核后显示。