Hacker News new | ask | show | jobs
by ars 5984 days ago
Just run:

ALTER DATABASE database_name DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;

And you don't have to worry about it for any new tables. (If you have existing ones, you'll have to change the table default, and possibly the column too.)