如何在Mac10.7.5上更改phpMyAdmin的密码?
我尝试过这样做:http://en.kioskea.net/faq/630-mysql-reset-the-root-password
但是我得到了这个错误:-bash: syntax error near unexpected token(`
有什么想法吗?

发布于 2013-05-07 06:28:21
这篇博文写道:
# mysql mysql -u root但是,#符号表示提示符。如果您将其添加到bash命令行前面,bash将把它后面的所有内容都视为注释,因此不会执行它。所以,就跑吧
mysql mysql -u rootmysql命令应该会启动。在我们的dbserver上,启动的mysql命令如下所示:
host:~ # mysql mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6171
Server version: 5.1.49-log SUSE MySQL RPM
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>一旦启动,它在你的机器上应该看起来非常相似,根据下面的信息,你应该以这种方式启动它,以选择正确的数据库:
/usr/local/mysql/bin/mysql mysql -u root诚然,它与命令行中所有这些'mysql‘都非常混乱:-)为了简化您的工作,您应该永久地将/usr/local/mysql/bin/添加到您的路径中,解释can be found here
发布于 2013-05-07 06:23:59
这应该会对您有所帮助:https://superuser.com/questions/123275/how-do-i-reset-my-root-password-on-mysql-on-a-mac
如果你还有什么问题,请告诉我。
https://stackoverflow.com/questions/16408209
复制相似问题