在mysql启动时
$ mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
在mysql已经关闭时返回错误代码
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
网上很多教程都是
# /etc/init.d/mysql stop
# mysqld_safe --user=mysql --skip-grant-tables -- skip-networking &
# mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root';
mysql> FLUSH PRIVILEGES;
mysql> quit但是mac根本没有/etc/init.d目录,求解
繁花不似锦
守着星空守着你
随时随地看视频慕课网APP
相关分类