I am using mamp on Snowleopard without problems -Yrjö-
Gianluca Sartori <g.sart...@gmail.com> kirjoitti 3.1.2010 kello 19.53: > SOLVED. I'm using UNIX Socks now (I'm on Mac, using MAMP, looks like > there's no fast way to configure mysql to serve localhost via TCP > from MAMP interface. > > G > > Gianluca Sartori > > Project Manager - Consulting Academy ELIS > Via Sandro Sandri, 45 - 00159 Rome, Italy > > (web) http://consulting-academy.elis.org > (tel) +39 06 4356 0424 > (cel) +39 346 2373 445 > > > > On Sun, Jan 3, 2010 at 6:41 PM, Gianluca Sartori > <g.sart...@gmail.com> wrote: > I changed nothing but now it's showing the error. It's the db > connection not working. That's strange, it works from the commend > line. I created the tables with "doctrine:insert-sql". > > 500 | Internal Server Error | Doctrine_Connection_Exception > PDO Connection Error: SQLSTATE[HY000] [2003] Can't connect to MySQL > server on 'localhost:3306' (4) > > stack trace > at () > in SF_ROOT_DIR/lib/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/ > doctrine/Doctrine/Connection.php line 474 ... > > > > $this->dbh->setAttribute(PDO::ATTR_ERRMODE, > PDO::ERRMODE_EXCEPTION); > > > > } catch (PDOException $e) { > > > > throw new Doctrine_Connection_Exception('PDO > Connection Error: ' . $e->getMessage()); > > > > } > > $found = true; > > > > } > > > On Sun, Jan 3, 2010 at 6:13 PM, Gianluca Sartori > <g.sart...@gmail.com> wrote: > Hi all, I'm stuck with an error. > I'm following instructions on "practical symfony", day 3. After > having generated all with no error messages, I try to see the site > in the browser. Pointing to the application root (in my case > http://localhost:8888/CW/registry/frontend_dev.php > ) it works as expected. > > When I specify a module (in my case "person") it takes some time, > than it shows me the code of the class Doctrine_Query_Abstract (it's > not a plain text, it's the coloured syntax made with html) and at > the end of the page i get this error: > > Fatal error: Allowed memory size of 8388608 bytes exhausted (tried > to allocate 335628 bytes) in /Users/giangio/Sites/CW/cgi-bin/ > registry/lib/symfony/lib/exception/sfException.class.php on line 348 > > Do someone of you guys know what's happening? > Many thanks, > G > > > Gianluca Sartori > > Project Manager - Consulting Academy ELIS > Via Sandro Sandri, 45 - 00159 Rome, Italy > > (web) http://consulting-academy.elis.org > (tel) +39 06 4356 0424 > (cel) +39 346 2373 445 > > > > -- > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > . -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.