Skip to content

Instantly share code, notes, and snippets.

@jaimeivan
Last active April 3, 2020 02:35
Show Gist options
  • Save jaimeivan/5342984 to your computer and use it in GitHub Desktop.
Save jaimeivan/5342984 to your computer and use it in GitHub Desktop.

Cuando no jala MySQL en el MAMP

$ killall -9 mysqld

Marca el siguiente error

Warning: PDO::__construct(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) 

Se resuelve:

sudo mkdir /var/mysql
sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /var/mysql/mysql.sock

No inicia porque encontró unos errores en las tablas de tipo InnoDB

https://stackoverflow.com/questions/39900272/mysql-5-6-not-starting-migrate-mamp-2-to-mamp-4

  1. Verify that MySQL is not running (via MAMP GUI and either Activity Monitor or Terminal process list)
  2. Navigate to /Applications/MAMP/db/mysql56
  3. Remove these three files: ib_logfile0, ib_logfile1, and ibdata1
  4. Restart MySQL Server in MAMP

En algunas ocasiones al intentar abrir las tablas marca que nos las encuentra, se soluciona regresando los archivos b_logfile0, ib_logfile1, y ibdata1 una vez que ya arrancó MySQL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment