Skip to content

Instantly share code, notes, and snippets.

@shellkore
Created January 24, 2020 12:49
Show Gist options
  • Save shellkore/e034a3c5b3f964c53d3b83ff3f7f46da to your computer and use it in GitHub Desktop.
Save shellkore/e034a3c5b3f964c53d3b83ff3f7f46da to your computer and use it in GitHub Desktop.

mysql> USE mysql;

mysql> CREATE USER 'YOUR_SYSTEM_USER'@'localhost' IDENTIFIED BY '';

mysql> GRANT ALL PRIVILEGES ON . TO 'YOUR_SYSTEM_USER'@'localhost';

mysql> UPDATE user SET plugin='unix_socket' WHERE User='YOUR_SYSTEM_USER';

mysql> FLUSH PRIVILEGES;

mysql> exit;

unix_socket or auth_socket depending on your root privileges

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment