{"id":17724685,"url":"https://github.com/igrmk/ubuntu-reinit-mysql","last_synced_at":"2025-04-01T16:30:39.864Z","repository":{"id":110678569,"uuid":"223258916","full_name":"igrmk/ubuntu-reinit-mysql","owner":"igrmk","description":"Script to reinit MySQL data directory in Ubuntu","archived":false,"fork":false,"pushed_at":"2020-10-26T18:12:16.000Z","size":5,"stargazers_count":20,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-03-05T06:34:30.276Z","etag":null,"topics":["mysql","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/igrmk.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-21T20:24:41.000Z","updated_at":"2023-01-12T10:41:57.000Z","dependencies_parsed_at":"2023-04-09T05:31:47.088Z","dependency_job_id":null,"html_url":"https://github.com/igrmk/ubuntu-reinit-mysql","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrmk%2Fubuntu-reinit-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrmk%2Fubuntu-reinit-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrmk%2Fubuntu-reinit-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrmk%2Fubuntu-reinit-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igrmk","download_url":"https://codeload.github.com/igrmk/ubuntu-reinit-mysql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246620224,"owners_count":20806722,"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":["mysql","ubuntu"],"created_at":"2024-10-25T15:48:31.935Z","updated_at":"2025-04-01T16:30:39.577Z","avatar_url":"https://github.com/igrmk.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"ubuntu-reinit-mysql\n===================\n\nWARNING! THIS SCRIPT WILL REMOVE ALL YOUR MYSQL DATA!\n\nIf you need to apply some settings like `lower_case_table_names` then you probably need to reinit your data directory.\nHowever it is not that easy in Ubuntu because post-installation script performs some additional steps.\nYou will lose them if you reinit data directory by yourself.\nThis script reinits data directory and performs same steps:\n\n* Creates a special maintenance user used by an OS on upgrading\n* Sets up UNIX socket authentication so that you can write `sudo mysql` and connect to database as root\n\nUsage\n-----\n\nJust download it and run with superuser privileges:\n\n    sudo ./ubuntu-reinit-mysql\n\nOrigin\n------\n\nYou may want to look at original post-installation script:\n\n    apt download mysql-server-8.0\n    dpkg-deb -R mysql-server-8.0*.deb .\n    vi DEBIAN/postinst\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figrmk%2Fubuntu-reinit-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figrmk%2Fubuntu-reinit-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figrmk%2Fubuntu-reinit-mysql/lists"}