Creating New MariaDB Databases: Difference between revisions
Jump to navigation
Jump to search
(Created page with "[https://mariadb.com/kb/en/create-user/ Create a user]. <syntaxhighlight lang="mysql"> CREATE OR REPLACE USER 'user_name'@'host' IDENTIFIED BY 'password'; </syntaxhighlight> `Host` can be something like `'localhost'` or `'192.123.123.%'`. Put quotes around `user_name` and `host`, but not the @ symbol. Password is supplied as-is. Unencrypted and not passed through the `PASSWORD()` function.") Tag: wikieditor |
(No difference)
|
Revision as of 21:48, 4 March 2024
CREATE OR REPLACE USER 'user_name'@'host' IDENTIFIED BY 'password';
Host can be something like 'localhost' or '192.123.123.%'.
Put quotes around user_name and host, but not the @ symbol.
Password is supplied as-is. Unencrypted and not passed through the PASSWORD() function.