Well, once thing, you can ignore all of the session errors, so that
narrows it down to the two mysql errors you have.

What is your db config?

is your mysql server hosted locally?

Are you using pconnect or connect? (and have you tested the one that
you arent using). pconnect usually doesnt do any good for localhost
connections so I've heard.

Should be something fairly straightforward though

Best regards

Mike

On Oct 4, 12:23 am, Dani <[EMAIL PROTECTED]> wrote:
> Hi everybody.
> I'm continually getting the following messages randomly:
>
> Warning (2): mysql_connect() [function.mysql-connect]: Lost connection
> to MySQL server at 'reading authorization packet', system error: 0
> [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 100]
> Warning (2): mysql_select_db(): supplied argument is not a valid MySQL-
> Link resource [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php,
> line 105]
>
> Warning (2): mysql_query(): supplied argument is not a valid MySQL-
> Link resource [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php,
> line 133]
>
> Warning (2): session_start() [function.session-start]: Cannot send
> session cookie - headers already sent by (output started at /home/
> daniel/public_html/needish/cake/basics.php:747) [CORE/cake/libs/
> session.php, line 154]
>
> Warning (2): session_start() [function.session-start]: Cannot send
> session cache limiter - headers already sent (output started at /home/
> daniel/public_html/needish/cake/basics.php:747) [CORE/cake/libs/
> session.php, line 154]
>
> Warning (2): Cannot modify header information - headers already sent
> by (output started at /home/daniel/public_html/needish/cake/basics.php:
> 747) [CORE/cake/libs/session.php, line 155]
>
> If I reload the page, everything works as it should, but messages
> continue to appear randomly once in a while. For some reason my app is
> loosing its connection to the database and I don't know whether it is
> a MySQL driver problem, a Cake problem or my app problem...
> Does anyone know if there's any way of fixing this issue?
> Thanks!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to