Waow didn’t expect this already !
I’ll give this a shot both locally and on my dedicated box, I’ll do a clean install and will clone live sites to see how that goes...
Anyway : great !
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
-
MODX Staff
- 10,725 Posts
Ok, all you MAMP people. Please read the maroon letters on the first post in this thread before testing! You can verify in phpinfo; under the PDO extension, it lists the drivers enabled, and it appears MAMP only enables SQLite by default (brilliant for a package that is touting itself as MySQL oriented???)
Yeah well, personnally I was fooled by the assumption that the PDO mySQL driver was enabled by default with PHP 5.1+ configs, but it’s another reason never to indulge in assumptions !
Quote from: OpenGeek at Dec 21, 2006, 09:17 AMOk, all you MAMP people. Please read the maroon letters on the first post in this thread before testing! You can verify in phpinfo; under the PDO extension, it lists the drivers enabled, and it appears MAMP only enables SQLite by default (brilliant for a package that is touting itself as MySQL oriented???)
If you looked at my server it’s the same and the PHP doc says
"If you’re running a PHP 5.1 release, PDO and PDO_SQLITE is included in the distribution; it will be automatically enabled when you run configure." It’s not a choice, just default PHP config.
Edit : I found why MAMP is not loading the PDO MySQL driver while extension=php_pdo_mysql.so is not commented : it was missing
a crucial line
Even with the driver being loaded, I am still stuck with a non-working 0.9.7...
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
Did anyone else get this to work yet?
Susan, David, Mark... you guys are also using MAMP
Any luck?
damn, I either get the error posted earlier about the non object, or a blank page.
-sD-
-
☆ A M B ☆
- 24,524 Posts
I upgraded to the latest MAMP (1.4.1) and it’s working just fine.
yeah I have been using 1.4.1 for a few months now, but I finally got it working by shutting off php5 and running php4, which is not what I want to do. I want to take advantage of PHP5’s native PDO support. there are a few problems with MAMP as far as I can tell.
1) pdo_mysql.so is loaded by default, but only works with MySQL 3.x/4.x
2) MAMP ships with MySQL 5.x
3) there is a binary for supporting MySQL 5.x, but it is a windows only .dll
4) if pdo_mysql could work with MySQL 5.x (which it can’t) the pdo extensions in the default php.ini in the php5 folder are loaded after the mysql, pgsql, and sqlite extensions which means they are unusable. I sent an email to the MAMP folks letting them know about it, so hopefully it will be resolved in the next revision. Until then, I guess I will continue to test with php 4.4.4
-sD-
Dr. Scotty Delicious, Scientist.
-
☆ A M B ☆
- 24,524 Posts
That’s odd, I just did the upgrade this morning, and it’s definitely running php5, and it’s working just fine
Maybe there’s some bug fixes in the latest download? I downloaded it yesterday... I’m using the PPC version, although I don’t think that should make a difference.
Very interesting... this is different in the phpinfo dump
’--with-pdo-mysql=shared,/Applications/MAMP/Library’
’--with-pdo-pgsql=shared,/Applications/MAMP/Library/pg’
before, it was
--with-pdo-mysql=shared,/Applications/MAMP/bin/mysql4’
’--with-pdo-pgsql=shared,/Applications/MAMP/Library/pg’