简体   繁体   中英

MySQL hands with `> after attempting to change user password

When using MySQL directly (DOS->MySQL) and changing the password for a user with the following...

SET PASSWORD FOR ‘annoyinghippie’@'localhost’ = PASSWORD(’1eetpa$$w0rd&’);

...MySQL "hangs" and only shows me...

 `> 

...doing anything results in the same line repeating. Doing a Ctrl+Break exits MySQL back in to DOS.

Is the syntax for the command wrong? I'm pasting this directly from my notes which I only have work code that has worked in the past. The username/password are obviously changed from real client information.

' is not a valid string delimiter. Use ' instead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM