데이터 베이스 MySQL 튜토리얼 在MacOS下的安装MySQL5.0.15

在MacOS下的安装MySQL5.0.15

Jun 07, 2016 pm 04:04 PM
can i macos 설치하다

You can install MySQL on Mac OS X 10.2.x (“ Jaguar ”) and up using a Mac OS X binary package in PKG format instead of the binary tarball distribution. Please note that older versions of Mac OS X (for example, 10.1.x) are not supported by

You can install MySQL on Mac OS X 10.2.x (“Jaguar”) and up using a Mac OS X binary package in PKG format instead of the binary tarball distribution. Please note that older versions of Mac OS X (for example, 10.1.x) are not supported by this package.

The package is located inside a disk image (<font face="新宋体">.dmg</font>) file that you first need to mount by double-clicking its icon in the Finder. It should then mount the image and display its contents.

Note: Before proceeding with the installation, be sure to shut down all running MySQL server instances by either using the MySQL Manager Application (on Mac OS X Server) or via mysqladmin shutdown on the command line.

To actually install the MySQL PKG file, double-click on the package icon. This launches the Mac OS X Package Installer, which guides you through the installation of MySQL.

Due to a bug in the Mac OS X package installer, you may see this error message in the destination disk selection dialog:

You cannot install this software on this disk. (null)
로그인 후 복사

If this error occurs, simply click the <FONT face=新宋体>Go Back</FONT> button once to return to the previous screen. Then click <FONT face=新宋体>Continue</FONT> to advance to the destination disk selection again, and you should be able to choose the destination disk correctly. We have reported this bug to Apple and it is investigating this problem.

The Mac OS X PKG of MySQL installs itself into <FONT face=新宋体>/usr/local/mysql-<EM class=replaceable><CODE>VERSION and also installs a symbolic link, <FONT face=新宋体>/usr/local/mysql</FONT>, pointing to the new location. If a directory named <FONT face=新宋体>/usr/local/mysql</FONT> exists, it is renamed to <FONT face=新宋体>/usr/local/mysql.bak</FONT> first. Additionally, the installer creates the grant tables in the <FONT face=新宋体>mysql</FONT> database by executing mysql_install_db after the installation.

The installation layout is similar to that of a tar file binary distribution; all MySQL binaries are located in the directory <FONT face=新宋体>/usr/local/mysql/bin</FONT>. The MySQL socket file is created as <FONT face=新宋体>/tmp/mysql.sock</FONT> by default.

MySQL installation requires a Mac OS X user account named <FONT face=新宋体>mysql</FONT>. A user account with this name should exist by default on Mac OS X 10.2 and up.

If you are running Mac OS X Server, you have a version of MySQL installed. The versions of MySQL that ship with Mac OS X Server versions are shown in the following table:

Mac OS X Server Version MySQL Version
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 manual section covers the installation of the official MySQL Mac OS X PKG only. Make sure to read Apple's help information about installing MySQL: Run the “Help View” application, select “Mac OS X Server” help, do a search for “MySQL,” and read the item entitled “Installing MySQL.

For pre-installed versions of MySQL on Mac OS X Server, note especially that you should start mysqld with safe_mysqld instead of mysqld_safe if MySQL is older than version 4.0.

If you previously used Marc Liyanage's MySQL packages for Mac OS X from http://www.entropy.ch, you can simply follow the update instructions for packages using the binary installation layout as given on his pages.

If you are upgrading from Marc's 3.23.xx versions or from the Mac OS X Server version of MySQL to the official MySQL PKG, you also need to convert the existing MySQL privilege tables to the current format, because some new security privileges have been added.

If you would like to automatically start up MySQL during system startup, you also need to install the MySQL Startup Item. For MySQL 5.0, it is part of the Mac OS X installation disk images as a separate installation package. Simply double-click the MySQLStartupItem.pkg icon and follow the instructions to install it.

Note that the Startup Item need be installed only once! There is no need to install it each time you upgrade the MySQL package later.

The Startup Item for MySQL 5.0 is installed into <FONT face=新宋体>/Library/StartupItems/MySQLCOM</FONT>. (Before MySQL 4.1.2, the location was <FONT face=新宋体>/Library/StartupItems/MySQL</FONT>, but that collided with the MySQL Startup Item installed by Mac OS X Server.) Startup Item installation adds a variable <FONT face=新宋体>MYSQLCOM=-YES-</FONT> to the system configuration file <FONT face=新宋体>/etc/hostconfig</FONT>. If you would like to disable the automatic startup of MySQL, simply change this variable to <FONT face=新宋体>MYSQLCOM=-NO-</FONT>.

On Mac OS X Server, the default MySQL installation uses the variable <FONT face=新宋体>MYSQL</FONT> in the <FONT face=新宋体>/etc/hostconfig</FONT> file. The MySQL AB Startup Item installer disables this variable by setting it to <FONT face=新宋体>MYSQL=-NO-</FONT>. This avoids boot time conflicts with the <FONT face=新宋体>MYSQLCOM</FONT> variable used by the MySQL AB Startup Item. However, it does not shut down a running MySQL server. You should do that yourself.

After the installation, you can start up MySQL by running the following commands in a terminal window. You must have administrator privileges to perform this task.

If you have installed the Startup Item:

shell> <STRONG class=userinput><CODE>sudo /Library/StartupItems/MySQLCOM/MySQLCOM start</CODE></STRONG>
(Enter your password, if necessary)
(Press Control-D or enter "exit" to exit the shell)
로그인 후 복사

If you don't use the Startup Item, enter the following command sequence:

shell> <STRONG class=userinput><CODE>cd /usr/local/mysql</CODE></STRONG>
shell> <STRONG class=userinput><CODE>sudo ./bin/mysqld_safe</CODE></STRONG>
(Enter your password, if necessary)
(Press Control-Z)
shell> <STRONG class=userinput><CODE>bg</CODE></STRONG>
(Press Control-D or enter "exit" to exit the shell)
로그인 후 복사

You should be able to connect to the MySQL server, for example, by running <FONT face=新宋体>/usr/local/mysql/bin/mysql</FONT>.

Note: The accounts that are listed in the MySQL grant tables initially have no passwords.

You might want to add aliases to your shell's resource file to make it easier to access commonly used programs such as mysql and mysqladmin from the command line. The syntax for tcsh is:

alias mysql /usr/local/mysql/bin/mysql
alias mysqladmin /usr/local/mysql/bin/mysqladmin
로그인 후 복사

For bash, use:

alias mysql=/usr/local/mysql/bin/mysql
alias mysqladmin=/usr/local/mysql/bin/mysqladmin
로그인 후 복사

Even better, add <FONT face=新宋体>/usr/local/mysql/bin</FONT> to your <FONT face=新宋体>PATH</FONT> environment variable. For example, add the following line to your <FONT face=新宋体>$HOME/.tcshrc</FONT> file if your shell is tcsh:

setenv PATH ${PATH}:/usr/local/mysql/bin
로그인 후 복사

If no <font face="新宋体">.tcshrc</font> file exists in your home directory, create it with a text editor.

If you are upgrading an existing installation, please note that installing a new MySQL PKG does not remove the directory of an older installation. Unfortunately, the Mac OS X Installer does not yet offer the functionality required to properly upgrade previously installed packages.

To use your existing databases with the new installation, you'll need to copy the contents of the old data directory to the new data directory. Make sure that neither the old server nor the new one is running when you do this. After you have copied over the MySQL database files from the previous installation and have successfully started the new server, you should consider removing the old installation files to save disk space. Additionally, you should also remove older versions of the Package Receipt directories located in <font face="新宋体">/Library/Receipts/mysql-<em class="replaceable"><code>VERSION.pkg.


본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.

핫 AI 도구

Undresser.AI Undress

Undresser.AI Undress

사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover

AI Clothes Remover

사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool

Undress AI Tool

무료로 이미지를 벗다

Clothoff.io

Clothoff.io

AI 옷 제거제

AI Hentai Generator

AI Hentai Generator

AI Hentai를 무료로 생성하십시오.

인기 기사

R.E.P.O. 에너지 결정과 그들이하는 일 (노란색 크리스탈)
3 몇 주 전 By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. 최고의 그래픽 설정
3 몇 주 전 By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. 아무도들을 수없는 경우 오디오를 수정하는 방법
3 몇 주 전 By 尊渡假赌尊渡假赌尊渡假赌

뜨거운 도구

메모장++7.3.1

메모장++7.3.1

사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전

SublimeText3 중국어 버전

중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기

스튜디오 13.0.1 보내기

강력한 PHP 통합 개발 환경

드림위버 CS6

드림위버 CS6

시각적 웹 개발 도구

SublimeText3 Mac 버전

SublimeText3 Mac 버전

신 수준의 코드 편집 소프트웨어(SublimeText3)

Bybit Exchange의 최신 버전을 업데이트하는 방법은 무엇입니까? 업데이트되지 않으면 영향이 있습니까? Bybit Exchange의 최신 버전을 업데이트하는 방법은 무엇입니까? 업데이트되지 않으면 영향이 있습니까? Feb 21, 2025 pm 10:54 PM

Bybit Exchange를 업데이트하는 방법은 플랫폼 및 장치에 따라 다릅니다. 모바일 : App Store에 업데이트를 확인하고 설치하십시오. 데스크탑 클라이언트 : 도움말 메뉴에서 업데이트를 확인하고 자동으로 설치하십시오. 웹 페이지 : 업데이트를 위해 공식 웹 사이트에 수동으로 액세스해야합니다. 교환을 업데이트하지 않으면 보안 취약성, 기능 제한, 호환성 문제 및 거래 실행 효율이 줄어 듭니다.

업비트 거래소 앱을 다운로드할 수 있는 플랫폼은 무엇인가요? 업비트 거래소 앱을 다운로드할 수 있는 플랫폼은 무엇인가요? Sep 09, 2024 pm 07:20 PM

업비트 거래소 앱은 iOS, Android, Windows 플랫폼에서 다운로드 가능합니다. 참고: 멀웨어를 방지하려면 항상 공식 소스에서 다운로드하세요.

Coinsuper Exchange 소프트웨어 채널 공식 웹 사이트 입구 Coinsuper Exchange 소프트웨어 채널 공식 웹 사이트 입구 Feb 21, 2025 pm 10:39 PM

Coinsuper Exchange의 공식 웹 사이트 입구 : https://www.coinsuper.com. 클라이언트 다운로드 채널은 Windows Client, MacOS Client 및 Mobile (iOS/Android)입니다. 등록에는 이메일, 휴대폰 번호 및 비밀번호가 필요하며 거래를하기 전에 실제 인증을 완료해야합니다. 이 플랫폼은 비트 코인, 이더 리움 등을 포함한 다양한 디지털 자산 거래를 제공하며 주문 및 수락자 모두에 대해 거래 수수료 비율이 0.1%입니다. 보안 보호 장치에는 콜드 지갑 저장, 듀얼 요인 검증, 자금 세탁 방지 및 테러 방지 금융 조치 및 보안 공개가 포함됩니다.

Bitget 공식 웹 사이트 설치 (2025 초보자 안내서) Bitget 공식 웹 사이트 설치 (2025 초보자 안내서) Feb 21, 2025 pm 08:42 PM

Bitget은 스팟 거래, 계약 거래 및 파생 상품을 포함한 다양한 거래 서비스를 제공하는 Cryptocurrency 교환입니다. 2018 년에 설립 된이 교환은 싱가포르에 본사를두고 있으며 사용자에게 안전하고 안정적인 거래 플랫폼을 제공하기 위해 노력하고 있습니다. Bitget은 BTC/USDT, ETH/USDT 및 XRP/USDT를 포함한 다양한 거래 쌍을 제공합니다. 또한 Exchange는 보안 및 유동성으로 유명하며 프리미엄 주문 유형, 레버리지 거래 및 24/7 고객 지원과 같은 다양한 기능을 제공합니다.

Ouyi OKX 설치 패키지가 직접 포함되어 있습니다 Ouyi OKX 설치 패키지가 직접 포함되어 있습니다 Feb 21, 2025 pm 08:00 PM

세계 최고의 디지털 자산 거래소 인 Ouyi Okx는 이제 안전하고 편리한 거래 경험을 제공하기 위해 공식 설치 패키지를 시작했습니다. OUYI의 OKX 설치 패키지는 브라우저를 통해 액세스 할 필요가 없습니다. 설치 프로세스는 간단하고 이해하기 쉽습니다. 사용자는 최신 버전의 설치 패키지를 다운로드하고 설치를 단계별로 완료하면됩니다.

Ouyi Exchange 다운로드 공식 포털 Ouyi Exchange 다운로드 공식 포털 Feb 21, 2025 pm 07:51 PM

OKX라고도하는 Ouyi는 세계 최고의 암호 화폐 거래 플랫폼입니다. 이 기사는 OUYI의 공식 설치 패키지 용 다운로드 포털을 제공하여 사용자가 다른 장치에 OUYI 클라이언트를 설치할 수 있도록합니다. 이 설치 패키지는 Windows, Mac, Android 및 iOS 시스템을 지원합니다. 설치가 완료되면 사용자는 OUYI 계정에 등록하거나 로그인하고 암호 화폐 거래를 시작하며 플랫폼에서 제공하는 기타 서비스를 즐길 수 있습니다.

OKX 거래 플랫폼을 다운로드하는 방법 OKX 거래 플랫폼을 다운로드하는 방법 Mar 26, 2025 pm 05:18 PM

OKX 트레이딩 플랫폼은 모바일 장치 (Android 및 iOS) 및 컴퓨터 (Windows 및 MacOS)를 통해 다운로드 할 수 있습니다. 1. Android 사용자는 공식 웹 사이트 또는 Google Play에서 다운로드 할 수 있으며 보안 설정에주의를 기울여야합니다. 2. iOS 사용자는 앱 스토어를 통해 다운로드하거나 공식 발표를 따라 다른 방법을 얻을 수 있습니다. 3. 컴퓨터 사용자는 공식 웹 사이트에서 해당 시스템의 클라이언트를 다운로드 할 수 있습니다. 설치 후 다운로드 할 때 항상 공식 채널을 사용하고 등록, 로그인 및 보안 설정을 사용해야합니다.

Gate.io 공식 웹 사이트 등록 설치 패키지 링크 Gate.io 공식 웹 사이트 등록 설치 패키지 링크 Feb 21, 2025 pm 08:15 PM

Gate.io는 광범위한 토큰 선택, 낮은 거래 수수료 및 사용자 친화적 인 인터페이스로 유명한 호평을받는 암호 화폐 거래 플랫폼입니다. Gate.io는 고급 보안 기능과 우수한 고객 서비스를 통해 트레이더에게 신뢰할 수 있고 편리한 암호 화폐 거래 환경을 제공합니다. Gate.io에 가입하려면 제공된 링크를 클릭하여 공식 등록 설치 패키지를 다운로드하여 Cryptocurrency 거래 여정을 시작하십시오.

See all articles