<?php
$con = mysql_connect("123.23.23.22","peter","abc123");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}// some codemysql_close($con);
?>
为什么我在本地上运行会报下面错误 版本不统一?? 而传到空间上却不报错。。能正常连接 是什么原因
Warning: mysql_connect(): 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 C:\wamp\www\wangzhan\cece.php on line 2
$con = mysql_connect("123.23.23.22","peter","abc123");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}// some codemysql_close($con);
?>
为什么我在本地上运行会报下面错误 版本不统一?? 而传到空间上却不报错。。能正常连接 是什么原因
Warning: mysql_connect(): 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 C:\wamp\www\wangzhan\cece.php on line 2
解决方案 »
- 请教下各位:MySql递归的问题
- 请教count复合查询
- com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException
- 触发器可以实现禁止用户删除某个表数据?
- 求救!phpmyadmin 一个表导入另一个表的条件是什么?
- 问一个关于mysql的问题:mysql_query 与 mysql_real_query的区别? 也就是什么时候用第一个,什么时候用第二个?
- 我的mysql数据库有一个字段类型datetime, 我想数据库的自然顺序就是datetime的倒序排列,这样在查询时就不要排序了, 请问mysql怎样实现呢
- 求教,建立多个mysql连接时出错!mysql_real_connect错误!
- 表设计题
- mysql用a表数据更新b表
- asp.net程序读MYSQL乱码报错
- 遇到一个难题求助!
select version();应该是版本不一致。 把本机的换成与空间上的一样即可。
版本不同?怎么连接MYSQL的?
这个 我装的是wampserver
统一版本就可以了。