MySQL安装error
来源:互联网 发布:$.post json 编辑:程序博客网 时间:2024/05/21 22:22
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO)
如果出现这样的出错信息,出错信息如下:Warning: mysql_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:/Flash/myphp/conn.php on line 2
说明是数据库版本的问题,只有mysql4.1或者更高的版本才有这样的错误,4.1或者更高版本与以前老版本用户认证方式不一样(大概是这个意思),解决方案:
mysql>use mysql;
mysql>update mysql.user set password=old_password('你的密码') where host='localhost' and user='你的mysql用户名';
mysql> flush privileges;
重新载入权限后就OK了。
事实上那就是你原来的帐号不对,这样做其实你直接在mysql表(存储的是mysql中的用户及权限信息)中修改了一下密码,flush privileges;的作用是从用户表中重载一次(否则还是旧的)
- MySQL安装error
- MYSQL安装ERROR 0
- mysql安装出现error 1045
- MySQL安装出现error Nr.1045
- mysql的安装异常ERROR Nr.1045
- mysql安装出现error Nr.1045
- mysql安装出现error Nr.1045
- MySQL startservice 安装 error nr.1045
- 安装mysql时的error 0错误
- 安装Mysql ---apply security setting error
- CentOS7 安装MySQL :ERROR 2002 (HY000)***
- mysql安装出现error Nr.1045
- mysql安装出现error Nr.1045
- mysql安装出现error Nr.1045
- mysql安装出现error Nr.1045
- mysql安装出现error Nr.1045
- mysql安装出现error Nr.1045----转
- mysql安装出现error Nr.1045
- 我的程序员人生
- 《COM技术内幕》
- what is web 2.0
- 熱心網友10/7
- shell集锦
- MySQL安装error
- 锦瑟(李商隐.唐)
- 谈谈副作用的语句
- Collection -> 由IComparer派生的自定义比较器
- 生成n位不同的验证码
- jsp smartupload教程
- 用 winmm 播放音乐
- 不期而遇
- 梦的开始?梦的幻灭? 开篇寄语