Hi Carsten,

I am using 1.0.8pre. I was not aware of a newer version. It looks like
version 1.0.9 is not done yet? I did some playing around with the
database.yml file like you suggested, and commenting out the port &
encoding lines fixed the problem. I don't need to mess with these, but
I am curious as to why they broke the connection? Here is the
working .yml info. If I uncomment either port or encoding, it breaks.

    # standard stuff
      phptype:  mysql
      hostspec: localhost
      #port:      80
      #encoding:  utf-8
      persistent: true

Thank you very much for your help. I am finally up and running again.
Scott

On Oct 26, 2:34 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi Scott,
>
> first of all, which symfony version and which propel version are you
> using? It seems you are not using the most recent symfony version
> because in 1.0.8 there is a comment in Propel.php:499. First you
> should update your symfony.
>
> The exception could come from an problem/issue with the loopback
> adapter. If you are using 127.0.0.1 in your configuration files for
> the database, try using localhost insted. In many cases it seems to
> solve the problem.
>
> http://forums.mysql.com/read.php?52,151255,151255
>
> Carsten
>
> On 26 Okt., 05:45, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I am working on my first symfony project, and I cannot connect to
> > mysql. Furthermore, I cannot debug this error (for some reason my
> > breakpoints do not work), nor can I track down why it is failing. Here
> > is the exception thrown:
>
> > [PropelException]
> >  [wrapped: connect failed [Native Error: Lost connection to MySQL
> > server at 'reading initial communication packet', system error: 0]
> > [User Info: Array]]
> > stack trace
> > at ()
> > in SF_SYMFONY_LIB_DIR\vendor\propel\Propel.php line 499 ...
>
> > My parameters appear correct, and I have tried connecting via this
> > statement with the same parameters without problem:
>
> > $db = @ new mysqli($host, $user, $pass, $db);
>
> > Can any provide further information on how to debug this problem?
>
> > Thank you,
> > Scott


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to