楠哥爱node

楠哥爱node

mysql登陆类似错误:ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password no)

情景:总是出现类似的错误

C:\Program Files\MySQL\MySQL Server 5.0\bin>mysql

ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: N
O)

解决方案:

1.没有忘记mysql登陆密码的话

(本人主机上密码暂时是我名字拼音)

mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.7.20 MySQL Community Server (GPL)

Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

2.如果忘记mysql登陆密码了

则重新安装mysql dmg安装包,则会重新分配一个密码

3.导入数据库

mysql> source /Users/jianan/Documents/StudyMaster/bycw_nodejs_game/bycw_server/sql/bycw_game_node.sql


阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/themagickeyjianan/article/details/17140949
上一篇Spring文件配置模板
下一篇CString、char*、char[]、string、char之间的相互转换
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭