Learn to install MySQL on Mac OS X Server

Source: Internet
Author: User
Tags install mac os x

You can use the PKG format of the binary installation package to install MySQL in Mac OS X 10.2.x ("Jaguar") and later versions instead of the binary distribution version. Note that this software package does not support earlier versions of Mac OS X (for example, 10.1.x ).

The installation package is located in the hard disk image (. dmg) file. You must double-click the icon in the search box to install the package. Images should be installed and displayed.

Note: Before continuing the installation, you must use the MySQL Manager application (on the Mac OS X Server) or use the mysqladmin shutdown command line to close all MySQL Server instances.

To install the MySQL PKG file, double-click the package icon. The installation package installer for Mac OS X will be started and you will be guided to complete MySQL installation.

Mac OS X installation package installer has a defect. You will find this error message in the target disk selection dialog box:

You cannot install this software on this disk. (null)

If this error occurs, you only need to click Go Back to return to the previous window. Then click "Continue" to select the target disk again. You should be able to select the target disk correctly. We have reported this defect to Apple and it is investigating this issue.

Install Mac OS X PKG of MySQL to/usr/local/mysql-VERSION, and install a symbolic connection,/usr/local/mysql, pointing to a new location. If the/usr/local/mysql directory exists, first change it to/usr/local/mysql. bak. After installation, the installer runs mysql_install_db to create an authorization table in the MySQL database.

The installation layout is similar to that of the tar binary distribution. All MySQL binary codes are in the/usr/local/mysql/bin directory. By default, the MySQL socket file is created as/tmp/mysql. sock.

MySQL installation requires the mysql user account of Mac OS X. In Mac OS X 10.2 and later versions, the mysql user account should exist by default.

If you are running the Mac OS X Server, install MySQL. The following table lists the MySQL versions installed with Mac OS X Server versions:

MySQL version of Mac OS X Server
10.2-10.2.2 3.23.51
10.2.3-10.2.6 3.23.53
10.3 4.0.14
10.3.2 4.0.16
10.4.0 4.1.10a

This section only covers the official MySQL Mac OS X PKG version. Be sure to read Apple's help information on MySQL installation: run the "Help View" application, select "Mac OS X Server" help, and search for "MySQL ", read the content titled "Install MySQL.

For MySQL versions installed on Mac OS X servers, if the version is earlier than 4.0, note that mysqld_safe should be used instead of safe_mysqld to start mysqld.

If you have installed the MySQL package for Marc Liyanage downloaded from the http://www.entropy.ch on Mac OS X, you can just use the binary installation layout shown on this page to install according to the update instructions.

  • 1
  • 2
  • Next Page
[Content navigation]
Page 7: Learn to install MySQL on Mac OS X Server Page 7: Learn to install MySQL on Mac OS X Server

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.