Mysql常见报错处理
来源:互联网 发布:mysql登录后修改密码 编辑:程序博客网 时间:2024/06/09 15:37
1.报错信息
Fatal error: Uncaught exception ‘PDOException’ with message ‘SQLSTATE[HY000] [2000] mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD(‘your_existing_password’). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file’ in /home/hailong.xhl/test.php:8
解决:修改密码为41位的,参考链接:http://www.111cn.net/database/mysql/70488.htm
2.php提示Expected mysqli, got string
解决:参数顺序错误
3.MySQL语句对大小不敏感
4.mysql显示中文乱码
本地数据和远程数据库的my.ini文件中改为default-character-set=gbk
Fatal error: Uncaught exception ‘PDOException’ with message ‘SQLSTATE[HY000] [2000] mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD(‘your_existing_password’). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file’ in /home/hailong.xhl/test.php:8
解决:修改密码为41位的,参考链接:http://www.111cn.net/database/mysql/70488.htm
2.php提示Expected mysqli, got string
解决:参数顺序错误
3.MySQL语句对大小不敏感
4.mysql显示中文乱码
本地数据和远程数据库的my.ini文件中改为default-character-set=gbk
阅读全文
0 0
- Mysql常见报错处理
- 常见报错处理
- MySQL报错处理
- mysql报错处理
- MySql 报错处理
- navicat 常见报错处理
- mysql异常报错处理
- LNMP下常见报错处理
- Mysql插入数据报错处理
- mysql存emoji表情报错处理
- mysql存emoji表情报错处理
- python mysql简单操作,报错处理
- Oracle笔记——常见报错处理方法
- ASPxGridView报错处理
- mencoder 报错处理
- tomcat报错处理
- Unity 报错处理
- @override 报错处理
- KNN算法-小明逆袭的故事(1)
- java仿QQ截图带窗体检测
- 深入浅出JMS(四)--Spring和ActiveMQ整合的完整实例
- leetcode No204. Count Primes
- iOS 服务器文件有修改才进行下载
- Mysql常见报错处理
- SQL精妙语句
- java2017面试题新手看绝佳!!
- 范数与距离的关系以及在机器学习中的应用
- 配置spring所需要的jar包
- DVRRDK之MCFW下syslink操作
- spring相关注解
- 分节后,word总页数不为节的总页数
- Solr学习笔记