mamp

Correct Syntax for CSV import to SQL MAMP Powered Database

主宰稳场 提交于 2020-01-06 08:28:13
问题 I am running MAMP on my local machine, and using this command for an import works successfully but it is throwing an error on my syntax. /applications/MAMP/library/bin/mysql -u testtest -p test < /Users/myName/info.csv I have been importing/exporting a lot of CSV's into different databases and have noticed that the syntax is slightly different for different DBs, and giving errors sometimes with or without quotes etc. I'm wondering if someone could explain this to me, and what may be the

Correct Syntax for CSV import to SQL MAMP Powered Database

允我心安 提交于 2020-01-06 08:28:06
问题 I am running MAMP on my local machine, and using this command for an import works successfully but it is throwing an error on my syntax. /applications/MAMP/library/bin/mysql -u testtest -p test < /Users/myName/info.csv I have been importing/exporting a lot of CSV's into different databases and have noticed that the syntax is slightly different for different DBs, and giving errors sometimes with or without quotes etc. I'm wondering if someone could explain this to me, and what may be the

Xdebug bad Zend API Version Number

旧街凉风 提交于 2020-01-04 12:48:06
问题 I am having trouble upgrading xdebug for MAMP. I was running version 2.2.0 and there was a known issue that I ran into: PhpStorm and Xdebug not breaking in Symfony2 Controller I tried to upgrade to version 2.2.3 by following the instructions from http://xdebug.org/wizard.php After downloading and extracting the xdebug tar I ran /Applications/MAMP/bin/php/php5.4.4/bin/phpize Here is the output: Configuring for: PHP Api Version: 20100412 Zend Module Api No: 20100525 Zend Extension Api No:

Error Installing Laravel: Mcrypt PHP extension required

这一生的挚爱 提交于 2020-01-04 04:00:19
问题 I know there are a lot of questions about this on SO but none of them address my problem. I've checked everything they mention everything seems to indicate mcrypt is ok except when installing Laravel. Clearly I'm missing something. When installing Laravel as directed ( composer create-project laravel/laravel myproj --prefer-dist ) I get the error "Mcrypt PHP extension required" at what seems to be near the end of installation. As far as I can tell mcrypt is installed and enabled. Composer

/etc/hosts file permission Mamp Pro

∥☆過路亽.° 提交于 2020-01-03 18:35:29
问题 I'm running MAMP and it's telling me that it can't write to the /etc/hosts file. I'm guessing it's a permission issue but not totally sure. This is the error: The file /etc/hosts couldn't be written Any thoughts? 回答1: You might want to read this: http://www.justincarmony.com/blog/2011/07/27/mac-os-x-lion-etc-hosts-bugs-and-dns-resolution/ 回答2: Go to your hosts file ( /etc/hosts ) and delete this line 127.0.0.1 (null) 回答3: On you mac, via the go to folder command (or cmd-shift-g) go to /etc

Removing index.php on MAMP

天涯浪子 提交于 2020-01-03 05:05:29
问题 this questions was asked before and has had many responses. The problem is nothing i tried worked. Background: i use MAMP and all of my web project are located under WebProjects which I relocated out of its standard location within the MAMP folder in Applications. so my structure is something like this: Documents/WebProjects/GreatSite/Application/... What happened so far: my understanding is that removing index.php can be done either through httpd.conf or .htaccess. anytime i touched httpd

Autoload configuration doesn't load MongoDB classes

帅比萌擦擦* 提交于 2020-01-02 06:10:41
问题 I have MAMP 1.9 on MAC OSX 10.8.2 using PHP 5.3 I installed MongoDB and the PHP extension mongo.so and added it to my php.ini. I can run the MongoDB on the console and my phpinfo says MongoDB support is enabled but I cannot run the following PHP script. <?php $connection = new MongoClient(); ?> PHP comes up with a fatal error: Class 'MongoClient' not found Something seems to be wrong with the autoload configuration of my MAMP (or the extension installation). 回答1: As Sammaye mentioned in the

Doctrine 2 command line tool; MAMP and mysql.sock

送分小仙女□ 提交于 2020-01-01 07:21:34
问题 I grabbed the CI2/Doctrine2 from Wildly Inaccurate. I'm trying to start using it, but before I'm actually getting to work with it, I wanted to make sure everything works. However, when I try the command line tool, I run into the following error: $ ./doctrine orm:schema-tool:create ATTENTION: This operation should not be executed in a production environment. Creating database schema... Warning: PDO::__construct(): [2002] Socket operation on non-socket (trying to connect via unix:///var/mysql

PDO connection error when using symfony and MAMP

白昼怎懂夜的黑 提交于 2020-01-01 04:29:12
问题 Getting an PDO error when trying to do php symfony doctrine:insert-sql The error I get: Warning: PDO::__construct(): [2002] Connection refused (trying to connect via tcp://127.0.0.1:3306) in /Users/johannes/Programmering/PHP/htdocs/symfony/sfprojects/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php on line 470 databases.yml all: doctrine: class: sfDoctrineDatabase param: dsn: mysql:host=127.0.0.1;dbname=jobeet; username: root password: root Doing a

Mcrypt PHP extension required on Mac OS X

半世苍凉 提交于 2020-01-01 04:05:22
问题 I keep getting this error Mcrypt PHP extension required at the bottom after I run a composer update : Since I am using Mac, I have tried running : brew search mcrypt brew install php56-mcrypt I still get the same error message. 回答1: Steps I solved this by running the following commands brew update brew upgrade brew tap homebrew/dupes brew tap josegonzalez/homebrew-php brew install php54-mcrypt php --version // To Test your php sudo composer update Result No more Mcrypt warning !! Loading