Difference between revisions of "MariaDB/SQL/CREATE"
Jump to navigation
Jump to search
| Line 3: | Line 3: | ||
==Example== | ==Example== | ||
* <syntaxhighlight inline lang=SQL>CREATE USER 'roundcube'@localhost IDENTIFIED BY 'yourPasswordHere!';</syntaxhighlight> | * <syntaxhighlight inline lang=SQL>CREATE USER 'roundcube'@localhost IDENTIFIED BY 'yourPasswordHere!';</syntaxhighlight> | ||
| − | ** '''Note''': | + | ** '''Note''': <code>'roundcube@localhost'</code> is not the same user as <code>'roundcube'@localhost</code>. The latter creates user 'roundcube' with '@localhost' stored in another field, from what I can tell. |
| + | ** '''Note''': 'password' and "password" are not necessarily identical. At least once, I got an error with 'password' but "password" was fine. The password in question ended with a '^' character, so maybe that was escaping the end-quote-mark or something? | ||
Revision as of 19:11, 16 February 2025
Related
DROPdeletes existing users
Example
CREATE USER 'roundcube'@localhost IDENTIFIED BY 'yourPasswordHere!';- Note:
'roundcube@localhost'is not the same user as'roundcube'@localhost. The latter creates user 'roundcube' with '@localhost' stored in another field, from what I can tell. - Note: 'password' and "password" are not necessarily identical. At least once, I got an error with 'password' but "password" was fine. The password in question ended with a '^' character, so maybe that was escaping the end-quote-mark or something?
- Note: