MySQL Forums
Forum List  »  Newbie

Changing MySQL password for phpMyAdmin
Posted by: Macamba .
Date: April 03, 2017 05:18AM

Today I tried to login into my phpMyAdmin. I got the message that my password was wrong. I entered the database using the dos console, and logged in with:
mysql -u root -p myDatabase
Enter password: *********

Next I entered a new password:
mysql> set password for 'root'@'localhost' = PASSWORD('my!newpass;');

That resulted in:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '');

Now I am wondering:
Is the semicolon a difficult character for MySQL, should I escape it, and if so, how?

Options: ReplyQuote


Subject
Written By
Posted
Changing MySQL password for phpMyAdmin
April 03, 2017 05:18AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.