bugzilla 安装与备份

本文主要讲bugzilla的备份,安装过程详见下面的参考网站,非常详细,英文也很好懂,不懂的地方可以留言,一起探讨。
参考网站:
https://www.howtoforge.com/tutorial/install-bugzilla-50-on-centos-7/#configure-apache-to-host-our-bugzilla-installation

注意:官网提供的yum源会慢一些,建议配置公司自己的源。

安装过程主要完全按照步骤来即可。不再赘述。


主要讲一下如何备份:

导出:首先去需要备份的机器上导出数据库(我安装时数据库的名称为bugs):

mysqldump -uroot -p 数据库名称 >导出数据库存放的位置/导出后你给这个数据库命名.sql

例如:mysqldump -uroot -p bugs >/root/2016bugs.sql
输入密码

即可。

到你输入的导出位置即可看到你导出的文件:2016bugs.sql

导入:将其拷贝到你需要导入的机器的某一个位置,例如/root下

输入:mysql -uroot -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 7
Server version: 5.5.44-MariaDB MariaDB Server

Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> use bugs
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
MariaDB [bugs]> source /root/2016bugs.sql

截取部分输出:
Query OK, 0 rows affected (0.00 sec)

Query OK, 0 rows affected (0.00 sec)

Query OK, 0 rows affected (0.00 sec)

Query OK, 0 rows affected (0.00 sec)

Query OK, 0 rows affected (0.00 sec)

Query OK, 26 rows affected (0.00 sec)
Records: 26  Duplicates: 0  Warnings: 0
Query OK, 0 rows affected (0.00 sec)

Query OK, 0 rows affected (0.00 sec)

Query OK, 0 rows affected (0.00 sec)

Query OK, 0 rows affected (0.00 sec)

Query OK, 0 rows affected (0.00 sec)

MariaDB [bugs]> \q
Bye
重启服务:
sudo systemctl restart httpd.service   
sudo systemctl restart mariadb.service
再次打开导入机器的bugzilla,即可看到导入的全部内容。


  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值