Mac Yosemite update - MySQL doesn't automatically start

After updating Mac OSX to Yosemite you might have noticed MySQL doesn't automatically start again.
Here's how to fix it:

Create a file called com.mysql.mysql.plist in /Library/LaunchDaemons.
This file should contain the following data:

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">

After reating that file, open Terminal and submit the following commands:

sudo chown root /Library/LaunchDaemons/com.mysql.mysql.plist
sudo chgrp wheel /Library/LaunchDaemons/com.mysql.mysql.plist
sudo chmod 644 /Library/LaunchDaemons/com.mysql.mysql.plist

And last command:

sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysql.plist

Then restart computer and check if the MySql server is autostarted.