![]() ![]() Typically this only happens if you're working with rather large databases, or if you're doing things like clearing all caches with a low max_allowed_packet size. MAMP installs a local server environment in a matter of seconds on your Mac OS. It shows some basic configuration tweaks to change the port from 8888 to the default of 80 so that you can just visit the localhost in the browser and get your Drupal installation to appear. Click on the PHP tab in the left column, then go to dropdown with 'Cache module to speed up execution'. By default, it's set to 'Standard' mode and hides many of these options. MAMP PRO DRUPAL CACHE HOW TOUncomment the innodb_buffer_pool_size variable if it's commented out. This video shows you how to download and do the initial setup of MAMP, which is Apache, MySQL and PHP for Macintosh. For anyone on MAMP Pro for OSX (Monterey), the PHP setting can be accessed through the 'View Mode' toggle (to 'Expert' mode). ![]() (In MAMP Pro, just go to File > Edit Templates > my.cnf, and search for those variables. Just bump those up to 256M or higher, and the errors above should go away. 1 Answer Sorted by: 1 A clean Drupal installation process includes creation of required tables (you provide the db username, password, host & db-name). What Pro Drupal Development is, and What it Is Not, 2008-Aug-21. ![]() I found that the easiest way to deal with them is by giving MySQL a nice buffer of memory via the max_allowed_packet and innodb_buffer_pool_size settings. ImageMagick, MacPorts and MAMP, 2008-Sep-03. I've noticed a few other developers are getting these errors too, and almost always on local environments as opposed to live servers. I've been getting errors like General error: Can't create/write to file, Error 2006: MySQL server has gone away, and other similar PDOExceptions and errors from time to time while developing on my Mac using MAMP Pro (this seems to happen more often with Drupal 7 sites than Drupal 6, for reasons I know not). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |