Configuring terminal to work with MAMP mysql on Leopard

/ Published in: MySQL
Save to your folder(s)

Copy this code and paste it in your HTML
  1. sudo mkdir /var/mysql
  2. sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /var/mysql/mysql.sock
  3. sudo chown _mysql /var/mysql/mysql.sock
  4. sudo chmod 777 /var/mysql/mysql.sock
  6. echo 'export PATH=/Applications/MAMP/Library/bin:$PATH' >> ~/.bash_profile


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.