勇敢的小白鼠 发表于 2016-10-8 21:17:56

刚装得MySQL,用百度经验不行,苹果系统终端界面求老司机

Last login: Sat Oct8 21:04:32 on ttys000
192:~ liaodong$ PATH="$PATH":/usr/local/mysql/bin
192:~ liaodong$ mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
192:~ liaodong$ ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
-bash: syntax error near unexpected token `('
192:~ liaodong$ mysql>set PASSWORD =PASSWORD('123456');
-bash: syntax error near unexpected token `('
192:~ liaodong$

勇敢的小白鼠 发表于 2016-10-8 21:59:42

终端启动Mysql
叫我输入密码,但是我没设置过密码直接回车
然后告诉我访问被拒绝,密码不正确
这种情况我已经请教过别人说是我的server端安装过
现在要怎么办,虽然别人和我说去网上找找遗忘密码的办法,一找全是windows的,没有MAC版的解决办法
页: [1]
查看完整版本: 刚装得MySQL,用百度经验不行,苹果系统终端界面求老司机