mamp

setup PostgreSQL with Laravel in MAMP

不问归期 提交于 2020-01-01 00:48:20
问题 I am using MAMP on my MAC. As it comes with MySQL by default. But now I need to use PostgreSQL in one of my project. How can I setup postgreSQL in MAMP for Laravel project? 回答1: Ok if you are set on using postgreSQL over mySQL that comes with MAMP you have to manually install postgreSQL on you location machine the OSX packages can be found here, If you don't want to do a full install i recommend this Postgres App just download an extract to your applications folder then when you launch it the

Reset MySQL root password to “default” - MAMP

隐身守侯 提交于 2019-12-31 23:37:34
问题 I changed my root level password on phpMyAdmin. I was unsure where to enter the password itself, as it did not give me the option (login form). I wondered if it was the php.ini file but users with read privileges could read it if I placed the password in there. Now, the mysql doesn't run as I tried various online resources to fix the problem. If needs be I would delete mamp and re-install but I do not want to lose my database files. Ideally I would revert the password to default, which I

HTML5 Video not looping

落花浮王杯 提交于 2019-12-31 16:52:51
问题 I'm having a weird problem. My two versions of chrome(regular & canary) refuse to loop the video i'm showing. Or well, sometimes they loop it twice and stops after that. Weirdly enough, it works in safari, so i know It's not some webkit shizzle going down. <video autoplay="autoplay" data-type="bg" id="video" loop="loop"> <source src="/assets/video/_L88P.mp4" content-type="video/mp4"> </video> My setup is a mac with mountain lion and mamp on it, the chrome versions are the latest(canary: 26.0

Database connection “Mysql” is missing and mysql.sock is missing

核能气质少年 提交于 2019-12-30 08:43:08
问题 I was trying to generate model code from cake command line tool. But got this issue. Warning Error: PDO::__construct(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) in [/Users/test/Google_WWW/project_name/lib/Cake/Model/Datasource/Database/Mysql.php, line 177] Error: Database connection "Mysql" is missing, or could not be created. (although it's showing that mysql database is connected at localhost in cakephp directory) I'm using MAMP. I searched a lot

Database connection “Mysql” is missing and mysql.sock is missing

天涯浪子 提交于 2019-12-30 08:41:31
问题 I was trying to generate model code from cake command line tool. But got this issue. Warning Error: PDO::__construct(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) in [/Users/test/Google_WWW/project_name/lib/Cake/Model/Datasource/Database/Mysql.php, line 177] Error: Database connection "Mysql" is missing, or could not be created. (although it's showing that mysql database is connected at localhost in cakephp directory) I'm using MAMP. I searched a lot

Installing Phing & PHPUnit on MAMP

回眸只為那壹抹淺笑 提交于 2019-12-30 05:35:10
问题 I'm having problems running phpunit under MAMP on OS X 10.6. I've installed phpunit via PEAR and it is exists in the MAMP directory but when I run phpunit in terminal nothing happens. I'm guessing that this is a path problem but as a os x newbie, I don't know how to fix it. This is what happens when I try to run it from /Applications/MAMP/bin/php5.3/bin $ phpunit -bash: /usr/bin/phpunit: No such file or directory $ ./phpunit $ The problem looks very similar to this How to Install phpunit 3.5

MAMP: How to upgrade PEAR

浪尽此生 提交于 2019-12-29 18:39:07
问题 When trying to upgrade MAMP pear the following error is raised: Notice: unserialize(): Error at offset 276 of 1133 bytes in Config.php on line 1050 ERROR: The default config file is not a valid config file or is corrupted. Some suggestions how to fix this? Steps to reproduce: Installed MAMP (version 2.0.5) cd /Applications/MAMP/bin/php/php5.3.6/bin sudo ./pear upgrade pear above mentioned error is thrown Update (1): Based on answer 8375349/420953 I tried 2 possibilities to fix this A: delete

Codeigniter seems to break $_POST of '£' character (Pound)

让人想犯罪 __ 提交于 2019-12-28 18:14:25
问题 When I echo $_POST of the '£' character without CI in a simple Form, the result is as expected, a '£'. When I try the same using the CI framework using the Input class as well as the native $_POST var, echo is a blank. I've checked to make sure everything is utf-8 in the config but nothing? Any tips? UPDATE: This appears to only affect users using the latest version of MAMP and when using PHP 5.3.5. The current workaround is to go to the MAMP control panel and use the earlier version of PHP 5

MAMP : dyld: Symbol not found: __cg_jpeg_resync_to_restart Referenced from: /System/Library

陌路散爱 提交于 2019-12-28 17:24:26
问题 I'm trying to run cacti on my Mac running OS X 10.9.3. I'm using MAMP 3.0.5. In the cacti control panel, I've got the following error message : dyld: Symbol not found: __cg_jpeg_resync_to_restart Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO Expected in: /Applications/MAMP/Library/lib/libJPEG.dylib in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO. 回答1: You need to go on /Applications/MAMP/Library/bin and rename envvars to _envvars and

Stop caching for PHP 5.5.3 in MAMP

吃可爱长大的小学妹 提交于 2019-12-27 12:37:44
问题 Installed MAMP on a new Macbook with PHP 5.5.3. Reload and refresh do nothing. Still nothing. Google around for a few minutes trying to find out what is wrong, come back and refresh. It works. What the heck? I went into php.ini and disabled all the new OPcache and set the default cache time to 0. Added headers to the document to force no caching. Still same problem. What the heck is going on here? The network tab is showing a HTTP 200 request, so any new HTML in the index.php file renders