![]() |
MySQL: Need To Escape "!" In MySQL Prompt
Let's say that you're in a MySQL prompt and you are trying to create a user and grant a single database access to the user.
Example: Code:
CREATE USER `ecommerce` IDENTIFIED BY `tH!s!SmYP@s$w0rDd0N0tUs3!T';Code:
mysql> CREATE USER `ecommerce` IDENTIFIED BY `tH!s!SmYP@s$w0rDd0N0tUs3!T';"\!" wouldn't work because I'll get: Code:
Unknown command '\!'.PS: If only I can create tags for exclamation mark and exclamation point. For someone searching in the Internet with the same problem that I have can find my thread a lot quickier with the two tags that I couldn't create. |
Quote:
Code:
CREATE USER ecommerce IDENTIFIED BY 'tH!s!SmYP@s$w0rDd0N0tUs3!T'; |
Thanks for your help. My SQL knowledge is getting a little bit rusty. :)
I saw from the web page in step 3: Code:
CREATE USER ‘aspnet’ IDENTIFIED by ‘aspnetpassword’; |
| All times are GMT -5. The time now is 06:51 AM. |