如何在MAMP中更改mySQL root密码
我一段时间安装了mySQL,但现在安装了MAMP,其中还包括mySQL.我想在这个新的mySQL实例中更改root用户密码,但我无法使其工作:
mysqladmin -u root -p --port=8889 --protocol=TCP password myNewPassword
(我必须使用端口#和TCP协议,否则它只是尝试连接到我的旧mySQL实例)
我得到的错误是:
mysqladmin: [Warning] Using a password on the command line interface can be insecure.
Warning: Since password will be sent to server in plain text, use ssl connection to ensure password safety.
mysqladmin: unable to change password; error: ‘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 ‘() IDENTIFIED BY ‘myNewPassword” at line 1’
我究竟做错了什么?