|
Hi everyone, i have a question about the error message:*
* *SQLSTATE[HY000] [2013] Lost connection to MySQL server during query* The code i'm using does work on my local apache server, but as soon as i upload it to the webspace i get this error message all the time. maybe the webspace has no mysql_pdo support ? or what modules do i need to use Zend_Db ? Are there other error sources that can make this happen ? I hope someone can give me a more clearer view on the thing. best regards, Steven Truppe |
|
I forgot to paste to full exception:
Error Message: *SQLSTATE[HY000] [2013] Lost connection to MySQL server during query* Filename: */home/.sites/12/site172/web/apps/library/ZendFramework-1.0.1/library/Zend/Db/Adapter/Pdo/Abstract.php* Line: *131* Code: *0 * trace: 0 ../library/ZendFramework-1.0.1/library/Zend/Db/Adapter/Abstract.php(238): Zend_Db_Adapter_Pdo_Abstract->_connect() 1 ../library/Byteshelter/Application.php(508): Zend_Db_Adapter_Abstract->getConnection() Truppe Steven wrote: > Hi everyone, i have a question about the error message:* > * > > *SQLSTATE[HY000] [2013] Lost connection to MySQL server during query* > > The code i'm using does work on my local apache server, but as soon as i > upload it to the webspace i get this error message all the time. maybe > the webspace has no mysql_pdo support ? or what modules do i need to use > Zend_Db ? Are there other error sources that can make this happen ? > > I hope someone can give me a more clearer view on the thing. > > > best regards, > Steven Truppe > > > |
|
Hi there,
I've seen this error many a times on my shared hosting account. The server is just unable to respond properly. Too busy, down, whatever. I think you'll be seeing it with all scripts, not just ZF. Best regards, Eric ----- Original Message ----- From: "Truppe Steven" <[hidden email]> To: <[hidden email]> Sent: Thursday, October 25, 2007 2:28 PM Subject: Re: [fw-general] SQLSTATE[HY000] [2013] Lost connection to MySQL server during query >I forgot to paste to full exception: > > Error Message: *SQLSTATE[HY000] [2013] Lost connection to MySQL > server during query* > Filename: > > */home/.sites/12/site172/web/apps/library/ZendFramework-1.0.1/library/Zend/Db/Adapter/Pdo/Abstract.php* > Line: *131* > Code: *0 > * > > trace: > 0 > > ../library/ZendFramework-1.0.1/library/Zend/Db/Adapter/Abstract.php(238): > Zend_Db_Adapter_Pdo_Abstract->_connect() > > 1 ../library/Byteshelter/Application.php(508): > Zend_Db_Adapter_Abstract->getConnection() > > > > Truppe Steven wrote: >> Hi everyone, i have a question about the error message:* >> * >> >> *SQLSTATE[HY000] [2013] Lost connection to MySQL server during query* >> >> The code i'm using does work on my local apache server, but as soon as i >> upload it to the webspace i get this error message all the time. maybe >> the webspace has no mysql_pdo support ? or what modules do i need to use >> Zend_Db ? Are there other error sources that can make this happen ? >> >> I hope someone can give me a more clearer view on the thing. >> >> >> best regards, >> Steven Truppe >> >> >> > |
|
Administrator
|
In reply to this post by Truppe Steven
-- Truppe Steven <[hidden email]> wrote
(on Thursday, 25 October 2007, 02:20 PM +0200): > Hi everyone, i have a question about the error message:* > * > > *SQLSTATE[HY000] [2013] Lost connection to MySQL server during query* > > The code i'm using does work on my local apache server, but as soon as i > upload it to the webspace i get this error message all the time. maybe > the webspace has no mysql_pdo support ? or what modules do i need to use > Zend_Db ? Are there other error sources that can make this happen ? > > I hope someone can give me a more clearer view on the thing. The fact that you got that message indicates that the db adapter *does* exist on that server. You should look at the following documentation on the MySQL site: http://dev.mysql.com/doc/refman/5.0/en/gone-away.html My guess is that you need to check your mysql user privileges on the host. -- Matthew Weier O'Phinney PHP Developer | [hidden email] Zend - The PHP Company | http://www.zend.com/ |
|
In reply to this post by Eric Alvares
My fault, but ty for the reply
Eric Alvares wrote: > Hi there, > > I've seen this error many a times on my shared hosting account. The > server is just unable to respond properly. Too busy, down, whatever. > I think you'll be seeing it with all scripts, not just ZF. > > Best regards, > Eric > ----- Original Message ----- From: "Truppe Steven" > <[hidden email]> > To: <[hidden email]> > Sent: Thursday, October 25, 2007 2:28 PM > Subject: Re: [fw-general] SQLSTATE[HY000] [2013] Lost connection to > MySQL server during query > > >> I forgot to paste to full exception: >> >> Error Message: *SQLSTATE[HY000] [2013] Lost connection to MySQL >> server during query* >> Filename: >> >> */home/.sites/12/site172/web/apps/library/ZendFramework-1.0.1/library/Zend/Db/Adapter/Pdo/Abstract.php* >> >> Line: *131* >> Code: *0 >> * >> >> trace: >> 0 >> >> ../library/ZendFramework-1.0.1/library/Zend/Db/Adapter/Abstract.php(238): >> >> Zend_Db_Adapter_Pdo_Abstract->_connect() >> >> 1 ../library/Byteshelter/Application.php(508): >> Zend_Db_Adapter_Abstract->getConnection() >> >> >> >> Truppe Steven wrote: >>> Hi everyone, i have a question about the error message:* >>> * >>> >>> *SQLSTATE[HY000] [2013] Lost connection to MySQL server during >>> query* >>> >>> The code i'm using does work on my local apache server, but as soon >>> as i >>> upload it to the webspace i get this error message all the time. maybe >>> the webspace has no mysql_pdo support ? or what modules do i need to >>> use >>> Zend_Db ? Are there other error sources that can make this happen ? >>> >>> I hope someone can give me a more clearer view on the thing. >>> >>> >>> best regards, >>> Steven Truppe >>> >>> >>> >> > > |
| Powered by Nabble | Edit this page |
