{"id":15773983,"url":"https://github.com/jordanbrauer/deployer-mysql","last_synced_at":"2025-03-14T05:32:11.758Z","repository":{"id":57001401,"uuid":"107351955","full_name":"jordanbrauer/deployer-mysql","owner":"jordanbrauer","description":"An unofficial Deployer recipe containing a set of useful tasks for interacting with MySQL locally \u0026 remotely.","archived":false,"fork":false,"pushed_at":"2017-10-18T17:09:47.000Z","size":4,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-11T16:13:44.697Z","etag":null,"topics":["composer","deploy","deployer","deployer-recipes","deployment","mysql","php","recipes","task-runner"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jordanbrauer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-18T03:01:29.000Z","updated_at":"2024-05-22T11:11:22.000Z","dependencies_parsed_at":"2022-08-21T14:10:24.617Z","dependency_job_id":null,"html_url":"https://github.com/jordanbrauer/deployer-mysql","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordanbrauer%2Fdeployer-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordanbrauer%2Fdeployer-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordanbrauer%2Fdeployer-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordanbrauer%2Fdeployer-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jordanbrauer","download_url":"https://codeload.github.com/jordanbrauer/deployer-mysql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243532517,"owners_count":20306151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","deploy","deployer","deployer-recipes","deployment","mysql","php","recipes","task-runner"],"created_at":"2024-10-04T16:04:19.063Z","updated_at":"2025-03-14T05:32:11.441Z","avatar_url":"https://github.com/jordanbrauer.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deployer-mysql\n\nAn unofficial [Deployer](https://github.com/deployphp/deployer) recipe containing a set of useful tasks for interacting with MySQL locally \u0026amp; remotely.\n\n## Usage\n\n### Installation\n\nInstall via Composer as a dev' dependency to your project.\n\n```shell\n$ composer require --dev jordanbrauer/deployer-mysql\n```\n\n### Basic Setup\n\nAdd the following to your deployer config;\n\n```php\nrequire_once \"mysql.php\";\n\nset(\"mysql\", array(\n  \"host\" =\u003e \"localhost\",\n  \"port\" =\u003e 3306,\n  \"schema\" =\u003e \"your_database_name\",\n  \"username\" =\u003e \"root\",\n  \"password\" =\u003e \"root\",\n  \"dump_file\" =\u003e \"path/to/your/dump/file.sql\",\n));\n```\n\n### Additional Setup\n\nIf you want to add options (flags) to your `mysqldump` command task, you can do so by adding the \"`dump_options`\" key to the configuration array, like so;\n\n```php\nset(\"mysql\", array(\n  // ...\n  \"dump_options\" =\u003e array(\n    \"--skip-comments\",\n  ),\n));\n```\n\nEach option you want to add must be a new entry in the array.\n\n_**Note:** the_ `--skip-comments` _option is the only default option set. So, if you don't have any other options for your setup, you can omit this configuration key entirely._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordanbrauer%2Fdeployer-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjordanbrauer%2Fdeployer-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordanbrauer%2Fdeployer-mysql/lists"}