dyvef.blogg.se

Mac mamp mysqldump
Mac mamp mysqldump




mac mamp mysqldump
  1. #Mac mamp mysqldump mac os x#
  2. #Mac mamp mysqldump install#
  3. #Mac mamp mysqldump full#

You should add "extension=stem.so" to php.ini

#Mac mamp mysqldump install#

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/

#Mac mamp mysqldump mac os x#

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

mac mamp mysqldump

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

#Mac mamp mysqldump full#

Voila! Full PDO, GD2 and mbstring support.

mac mamp mysqldump

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. Any help would be appreciated.With all the LAMP stacks in the world, its hard to imagine we need yet another howto blog post. My guess is maybe some sort of permissions issue but I haven't been able to work it out.

mac mamp mysqldump

I can see the process: - 0 extrapolation_db_backup Launchctl load ~/Library/LaunchAgents/extrapolation_db_ist` Which I've saved in /Users//Library/LaunchAgents Users//Sites/extrapolationlaunch/dbase_backup.sh Applications/MAMP/Library/bin/mysqldump -opt -u root -proot -host=localhost extrapolation > /Users//Desktop/db/extrapolation_$DT.sql Here is the bash script for the mysqldump: DT=`date +%m_%d_%Y_%H_%M_%S` I can successfully run the bash script manually to backup the db in terminal, but if I try to use launchd, nothing seems to happen. I'm trying to create a mysqldump of a database via bash script, and automate the process by using Mac's launchd / launchctl process.






Mac mamp mysqldump