https://github.com/alfiosalanitri/change-database-tables-collate
Bash script to change charset and collate to specific database tables parsed from a txt file
https://github.com/alfiosalanitri/change-database-tables-collate
bash mysql
Last synced: about 2 months ago
JSON representation
Bash script to change charset and collate to specific database tables parsed from a txt file
- Host: GitHub
- URL: https://github.com/alfiosalanitri/change-database-tables-collate
- Owner: alfiosalanitri
- License: mit
- Created: 2022-11-25T15:44:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-15T11:30:25.000Z (over 3 years ago)
- Last Synced: 2025-06-27T22:44:34.571Z (about 1 year ago)
- Topics: bash, mysql
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: change-database-tables-collate
- License: LICENSE
Awesome Lists containing this project
README
# NAME
change-database-tables-collate - Bash script to change charset and collate to database specific tables parsed from txt file
# DESCRIPTION
This script create a backup and convert the collate and charset to all tables parsed from tables.txt file
# INSTALLATION
- `sudo chmod +x /path/to/change-database-tables-collate/change-database-tables-collate`
- `sudo ln -s /path/to/change-database-tables-collate/change-database-tables-collate /usr/local/bin/change-database-tables-collate` (optional)
- `cp tables.txt.example tables.txt`
- set all tables (each for line) into tables.txt
# USAGE
`change-database-tables-collate /path/to/tables.txt database utf8mb4 utf8mb4_unicode_520_ci`
# AUTHOR:
change-database-tables-collate is written by Alfio Salanitri and are licensed under the MIT License.