Database Reference
In-Depth Information
11. Eventually we will be presented with a dialog box with an installation
complete message and a Finish button. If you got this far, congratulations!
MariaDB is now installed and running on your Windows-based computer.
Click on Finish to quit the installer.
To learn about installing MariaDB on Mac OS X or Linux, read on. Otherwise, feel
free to skip to the After the installation section at the end of this chapter.
Installing MariaDB on Mac OS X
One of the easiest ways to install MariaDB on Mac OS X is to use Homebrew , which
is an Open Source package manager for that platform. Before you can install it,
however, you need to prepare your system. The first thing you need to do is install
Xcode; Apple's integrated development environment. It's available for free in the
Mac App Store.
Once Xcode is installed you can install brew. Full instructions are available on
the Brew Project website at http://mxcl.github.io/homebrew/ but the basic
procedure is to open a terminal and run the following command:
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
This command downloads the installer and runs it. Once the initial installation is
completed, we run the following command to make sure everything is set up properly:
brew doctor
The output of the doctor command will tell us of any potential issues along with
suggestions for how to fix them. Once brew is working properly, you can install
MariaDB with the following commands:
brew update
brew install mariadb
Unlike on Linux and Windows, brew does not automatically set up or offer to set
up MariaDB to start automatically when your system boots or start MariaDB after
installation. To do so, we perform the following command:
ln -sfv /usr/local/opt/mariadb/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mariadb.plist
To stop MariaDB, we use the unload command as follows:
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mariadb.plist
 
Search WWH ::




Custom Search