Skip to content

Instantly share code, notes, and snippets.

View gokure's full-sized avatar

Gang Wu gokure

View GitHub Profile
@gokure
gokure / mysql-convert-charset.sh
Last active September 1, 2017 09:41 — forked from samuelpismel/mysql-convert-charset.sh
Shell script to change and convert mysql databases charset and collate.
#!/bin/bash
username='username'
password='password'
database='database'
charset='utf8mb4'
collate='utf8mb4_unicode_ci'
backup=1