美国服务器mysql登录时出现了错误:ERROR 1045: Access denied for user,是什么原因呢?
在Windows系统中,mysql登录的时候出现了这样的错误:ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES) 找了一些办法,终于得到了解决,现在记录一下具体的解决方法:
c:>sc stop mysql c:>mysqld --defaults-file="C:MySQLMySQLServer6.0my.ini" --console --skip-grant-tables
重新开一个cmd
c:>mysql -uroot -p enter password: update user SET Password=PASSWord('newpassword') where USER='root'; mysql>FLUSH PRIVILEGES; mysql>quit
购买使用一诺网络美国服务器,可以极大降低初创企业、中小企业以及个人开发者等用户群体的整体IT使用成本,无需亲自搭建基础设施、简化了运维和管理的日常工作量,使用户能够更专注于自身的业务发展和创新。美国服务器低至49元/月,购买链接:https://www.enuoidc.com/vpszq.html?typeid=3