1/13/2024 0 Comments Mac mamp mysqldump3,389 3 3 gold badges 30 30 silver badges 42 42 bronze badges. Now we’re talking! The entire web application runs on my localhost and it’s time to start developing.I'd still be curious to hear from anyone at Craft as to what could be missing in that first method they've laid out. Restarting Apache gives us the following: Vi /Applications/MAMP/conf/php5/php.ini : Let’s make our life a bit easier and move the stem library there while enabling it for our application:Ĭp /Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/stem.so /Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20050922/ The stem.so library was built in the extension directory ‘no-debug-non-zts-20060613’ whereas MAMP looks by default into the directory ‘no-debug-non-zts-20050922’. Here’s where another wrench got thrown into the picture though. You should add "extension=stem.so" to php.ini Install ok: channel:///stem-1.5.0Ĭonfiguration option "php_ini" is not set to php.ini location Installing '/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/stem.so' Applications/MAMP/bin/php5/bin/pecl install stem Note: you’ll need to install Xcode tools before getting a hold of these header files.Ĭp -Rf /Developer/SDKs/MacOSX10.5.sdk/usr/include/php /Application/MAMP/bin/php5/include/ I had to manually copy the PHP library headers from Mac OS X codebase in order to get the PECL build working for stem. Wow, I’ve already saved more than half a day in about half-an-hour! Setting up stem support however … ouch. PDO MySQL support came right out of the box, along with GD2 and mbstring. Just go straight for the mysqldump -uwork -p workdb > scp test:~/workdatabase.sql /Applications/MAMP/Library/bin/mysql -uwork-p workdb < workdatabase.sql I wasted time trying to bump up the various upload parameters in php.ini to no avail. If your database is bigger than 10MB don’t bother trying to import it with phpMyAdmin. I found the simplest way to get the basic controls is to connect via Socket (aka file): Since you won’t be using a “standard” MySQL database (living in /etc/mysql) some common GUI tools like Administrator and Query Browser won’t work completely out of the box. It has an active and thriving community forum where a lot of the answers to questions you don’t even have yet can be found.ĭealing with a non-standard MySQL install Voila! Full PDO, GD2 and mbstring support. MAMP, on the other hand, is literally drag-and-drop. I wasted almost a day of my life in the process. But what defeated me in the end was trying to configure such oddball php plugins like pdo_mysql, GD2 and mbstring. I installed MySQL after perusing the “incredibly helpful and updated” Apple documentation on the subject (circa 2005 where they even spend a paragraph discussing MySQL drawbacks). It’s made to run out of the box and it certainly lived up to its promise.Īnd, yes, before you ask – I really tried to go the purist route. Living-e bundles Apache, MySQL and PHP stack for the Mac called MAMP. But I did have some trouble getting things running smoothly on my Mac and I’d like to share my experiences with you, the gentle reader. With all the LAMP stacks in the world, its hard to imagine we need yet another howto blog post.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |