424 |
fi |
fi |
425 |
/usr/bin/mysql <<EOF |
/usr/bin/mysql <<EOF |
426 |
- CREATE DATABASE $db DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; |
- CREATE DATABASE $db DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; |
427 |
+ CREATE DATABASE $db DEFAULT CHARACTER SET utf8mb4 COLLATE utf8_unicode_ci; |
+ CREATE DATABASE $db DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; |
428 |
use $db; |
use $db; |
429 |
use mysql; |
use mysql; |
430 |
GRANT ALL PRIVILEGES ON $db.* TO $user\@localhost |
GRANT ALL PRIVILEGES ON $db.* TO $user\@localhost |