

When an error occurs while trying to establish a connection to the database with MAMP, it’s usually because the wp-config.php file has incorrect database credentials. Installing WordPress locally enables you to test the site during development.
#Mamp pro clear log files plus#
Its name is an acronym for what it includes – macOS, Apache, MySQL, and PHP to run WordPress – plus other optional tools.

#Mamp pro clear log files download#
MAMP is a free tool that you can download (a premium option is available) to run your website on your local computer instead of a web server. As such, communication between site files and the database is crucial.
#Mamp pro clear log files code#
WordPress stores website content in a database that the code on the page calls for when needed. WordPress is a robust Content Management System (CMS) that enables you to create dynamic web pages beyond just a static HTML site. Seguí a la segunda, pero en mi directorio Applications/MAMP/db/mysql/ no había ningún archivo llamado ib_logfileN sino una carpeta denominada mysql56 como indica ElCid en cuyo interior estaba el fichero ibdata1 de 79,7 MB que borré tras haber hecho copia de seguridad.What the MAMP “Error Establishing a Database Connection” Is Mysqli_real_connect(): (HY000/2002): No such file or directoryīuscando soluciones llegué a tu web 🙂 Probé tu solución primera sin éxito. #2002 – No such file or directory - El servidor no está respondiendo (o el zócalo local al servidor MySQL no está configurado correctamente). Cuando la volví a instalar observé que el archivo index.php del directorio htdocs indicaba su última línea ‘Something is wrong with your MAMP installation :-(‘ y al intentar conectar mediante phpMyAdmin con las bases de datos el navegador mostraba este mensaje: Para clonar una Moodle descargué Moodle4Mac-34.dmg que viene con la versión MAMP 4.1.1 pero como había cosas que no funcionaban tuve que quitarla. Hace tiempo estuve trabajando con una versión MAMP antigua, que desinstalé de mi MacOS. Muchas gracias, Juanfra Aldasoro y ElCid. Please back up these before you delete them 🙂

If you are having trouble fixing this issue with the instructions above, many readers are being able to solve this problem thanks to the amazing fix shared by one of the commenters, ElCid. You can also use Hyper, a terminal app built by the amazing team. You can check if there are any MySQL processes running the “top” command. You can find that app under Applications/Utilities. Note: Terminal is the terminal emulator included in Apple’s OS X operating system. Then you’ll be able to start again your servers by hitting “Start Servers” in the MAMP app.

Assuming that not many people hosts websites on OSX, you won’t have any collateral damage.Īll you need to do, is run a simple command on the terminal or hyper. Simply killing all MySQL processes and then starting the servers again. There’s an easy solution for this, a quick and tiny fix you can run as many times you need. Sometimes, it also happens when restarting your computer. I hate when I resume my computer after sleeping a few hours, and I get that annoying red light just beside “MySQL server” indicator. The only problem I often get with this platform, is that MySQL won’t start. That way I can work with loads of different projects in an organized manner. Personally, I love setting up and using virtual hosts & WordPress multisite. I like the fact that is the faster and easier way to setup a low-maintenance development environment for OSX. As many others WordPress developers out there, I use MAMP for local development.
