Skip to content

Instantly share code, notes, and snippets.

@geo-stanciu
Created October 12, 2018 18:09
Show Gist options
  • Select an option

  • Save geo-stanciu/19f4fafb3bb11839648d1303870d3883 to your computer and use it in GitHub Desktop.

Select an option

Save geo-stanciu/19f4fafb3bb11839648d1303870d3883 to your computer and use it in GitHub Desktop.
mysql - set database utf8
ALTER DATABASE dbname CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
GRANT ALL PRIVILEGES ON dbname to 'geo'@'%';
GRANT ALL PRIVILEGES ON dbname.* to 'geo'@'%';
FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment