承接 ilbronza/demodbreplicator 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ilbronza/demodbreplicator

Composer 安装命令:

composer require ilbronza/demodbreplicator

包简介

Replicate a db inside another

README 文档

README

this package is a simple database replicator for Laravel 5.5+ that allows you to replicate a database from a source to a destination. It is useful to replicate a production database to a development environment to have a real data set to work with.

Installation

run composer require ilbronza/demodbreplicator

publish the configuration file with php artisan vendor:publish --provider="IlBronza\DemoDBReplicator\DemoDBReplicatorServiceProvider"

Configuration

edit the config/demodbreplicator.php file with the source and destination database connections

create the .[whatever_you_used_in_config] file (or files if you want to split them) to store the database credentials for the two commands

to stick to base configuration you could create

.dbReplicatorConf ` [mysqldump] user = "root" password = ""

[mysql] user = "root" password = ""

`

Usage

run php artisan dbreplicator:replicate to replicate the source database to the destination database

or call your_website.something/dbreplicator/replicate-db with a superadmin role user

统计信息

  • 总下载量: 95
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-15