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

cmd

mysql -h localhost -u root -p

r然后报错

ERROR 1045 (28000): Access denied for user ‘ODBC‘@‘localhost‘ (using password: NO)

解决办法:修改密码

参考:

https://blog.csdn.net/weixin_44537194/article/details/88261364

打开services

(cmd services.msc)

修改mysql的密码

然后注意重启服务(关闭,开启)

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

原文地址:https://www.cnblogs.com/lqerio/p/12179832.html

时间: 2024-07-30 23:02:31

ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO)的相关文章

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

ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO) ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: YES) windows下,以上两个错误的解决方法 工具/原料 windows 8 MySql 方法/步骤 找到配置文件my.ini  ,然后将其打开,可以选择用记事本打开 打

登录mysql数据库出现 : ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO) ER或者忘记密码

1.     在安装mysql的文件目录中找到配置文件my.ini  ,然后右击用记事本打开 2.     打开后,搜索mysqld关键字 找到后,在mysqld下面添加skip-grant-tables,保存退出. PS:若提示不让保存时,可以将该文件剪切到桌面,更改保存后再复制到mySQL目录下 3.    保存后重启mySQL, 先要检查mysql服务有没有启动. 启动mysql服务, (1) à右击  à  我的电脑  à管理 启动. (2) 当用运行win +R   cmd 输入 ne

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

工具:python3.6+mysql8.0+pymysql 注意:python2.7以后的版本不再支持 MySQLdb这个模块.需要用pymysql,在命令行下安装的方法 输入pip install pymysql. import pymysql conn = pymysql.Connect( host='127.0.0.1', port=3306, user='root', passwd='root', db='imooc', charset='utf8') cursor = conn.cur

ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost'的解决方法

[mysql]ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost'的解决方法 在安装完MySQL并添加环境变量之后 由于在MySQL安装过程中设置了密码,导致直接在cmd中登陆出现了上面问题, 解决方式: 正确的cmd登陆命令应该如下所示(红字部分):之后会提示输入密码 即可进入MySQL C:\users\Laoyu_>mysql -u root -p Enter password: ******(输入你的密码) (图见附件

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

在安装好的MySQL服务器上,配置了环境变量之后,发现用mysql无法登录,报如题的错误,实在没有办法,决定用安全模式对root用户修改密码: 首先在一个ssh窗口运行命令:mysqld_safe --user=mysql --skip-grant-tables --skip-networking& [[email protected] ~]# mysqld_safe --user=mysql --skip-grant-tables --skip-networking& 运行之后新打开一个

Mac下解决mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Maybe updating the package the updater overwrote the root password. To restore it: Stop mysqld deamons. $ sudo service mysqld stop Go to mysql/bin directory $ cd /usr/bin Start a mysql deamon with this option: $ sudo mysqld_safe --skip-grant-tables O

ERROR 1045 (28000): Access denied for user 'hive'@'localhost' (using password: YES)

[[email protected] native]# mysql -uhive -pEnter password: ERROR 1045 (28000): Access denied for user 'hive'@'localhost' (using password: YES)[[email protected] native]# mysql -uroot -pEnter password: Welcome to the MySQL monitor.  Commands end with

升级到macOS 10.12 mysqlb报错ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

系统升级到macOS 10.12后启动mysql后,在终端输入mysql 报错ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES/NO) 解决办法1 在系统偏好设置里关闭mySQL2 $ cd /usr/bin3 $ sudo mysqld_safe --skip-grant-tables4 再打开一个终端$ mysqlmysql> use mysql;mysql> UPDATE

MySQL使用错误解决:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

解决方法: ⑴打开mysql中的my.ini(如果没有就将my-default.ini复制一份,并修改为my.ini): ⑵在[mysqld]下面空白行直接添加skip-grant-tables: ⑶重启mysql,在cmd页面输入mysql,按回车键即可. 注:这会使你的mysql无法设置密码,但对个人使用而言这岂不是更省了一步! MySQL使用错误解决:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using p