English 中文(简体)
Zend Framework: Authentication, MySQL在从Qalite转变时的错误
原标题:Zend Framework: Authentication, MySQL errors when switching from SQLite

我把我的用心从使用QQL转向MySQL。 它与凯科特合作,现在不工作,因为我已经改变,使用MySQL。 这里的错误信息是:

Message: SQLSTATE[HY000] [2000] mysqlnd cannot connect to MySQL 4.1+ using old authentication

这意味着什么?

<>说明: I m管理这个当地运行的Snow Leopard,试图进入一个遥远的数据库。

它还在请求参数中将我的用户名和密码放在简单文本中的屏幕上,而这种参数几乎没有解决。

问题回答

http://de3.php.net/manual/en/book.mysqlnd.php“rel=“nofollow noreferer”>mysqlnd 是PHP的新本地人ext/mysql,tnofollow noretingnet>>t/ext/mysqli/code><>/index.php。 因此,这并不是一个新版本,而是另一个新方式,即三个不同的预报系统如何与MySQL服务器通信——

现在的问题是,你的MySQL服务器使用的是rel=“nofollow noretinger”>oldcreditation mechanism,mysqlnd不能遵守。 需要与MySQL 4.1一起提出的41个新tes密码(因此无法与MySQL服务器连接;4.1)。 更新用户表,以使用新的密码办法,您必须使用http://dev.mysql.com/doc/refman/5.0/en/set-password.html> rel=“nofollow noreferer”>。 指挥MySQL服务器,例如:

SET PASSWORD FOR  root @ localhost  = PASSWORD( mypassword );

修改了密码办法,并将允许你与<条码>mysqlnd连接http://rabaix.net/en/articles/2009/09/21/php5-3-and-mysqlnd-authentication-issue” rel=“nofollow noreferer”>Here。 Thomas Rabaix描述了完全相同的问题,仅供参考。

安德鲁,我认为,你对我的SQL客户使用旧认证存在问题。

你们应当确保贵族发展署利用最后的我的图书馆。

您不妨测试一个PDO样本,首先确保一切都得到罚款,然后与ZF游戏。

 $db = new PDO("mysql:host=$host;dbname=$database", 
            $username, $password);

关于用户名称/密码,Zend Framework文件指出,开发商不通过确定生产和开发的不同配置向用户显示这些错误。 rel=“nofollow noreferer”>>,加上

利用这一手段解决你的问题:

SET SESSION old_passwords = 0;
SELECT @@global.old_passwords, @@session.old_passwords, Length(PASSWORD( abc ));
SET PASSWORD = PASSWORD( abc )

Good Luck





相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

php return a specific row from query

Is it possible in php to return a specific row of data from a mysql query? None of the fetch statements that I ve found return a 2 dimensional array to access specific rows. I want to be able to ...

Character Encodings in PHP and MySQL

Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I ...

Pagination Strategies for Complex (slow) Datasets

What are some of the strategies being used for pagination of data sets that involve complex queries? count(*) takes ~1.5 sec so we don t want to hit the DB for every page view. Currently there are ~...

Averaging a total in mySQL

My table looks like person_id | car_id | miles ------------------------------ 1 | 1 | 100 1 | 2 | 200 2 | 3 | 1000 2 | 4 | 500 I need to ...

热门标签