-
Open the Terminal
-
Use
mysqldump
to backup your databases -
Check for MySQL processes with:
ps -ax | grep mysql
-
Stop and kill any MySQL processes
-
Analyze MySQL on HomeBrew:
brew remove mysql
@IBAction func getPressed(_ sender: Any) { | |
// GET REQUEST | |
// guard checks if the data from the url exists, i.e early return | |
guard let url = URL(string: "https://jsonplaceholder.typicode.com/users") else { | |
return | |
} | |
let session = URLSession.shared | |
// completion handler | |
session.dataTask(with: url) { (data, response, error) in |
Normally the installation of MySQL can be achieved with a single command, which executes a script provided by MacMiniVault :
bash <(curl -Ls http://git.io/eUx7rg)
However, at the time of writing the script is not compatible with OS X El Capitan (10.11)
An alternative to the aforementioned installation script is installing MySQL using Homebrew. This gist assumes you already have Homebrew installed, if not first read the article "Homebrew and El Capitan"
Make sure Homebrew has the latest formulae, so run brew update
first
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |