`
茶是树叶
  • 浏览: 59486 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

mysql readme

阅读更多
2.4.10 Installing MySQL on Mac OS X
-----------------------------------

You can install MySQL on Mac OS X 10.3.x (`Panther') or newer 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 or 10.2.x) are *not* supported by this package.

The package is located inside a disk image (`.dmg') 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.

To obtain MySQL, see *Note getting-mysql::.

*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 `Go Back' button once to return
to the previous screen. Then click `Continue' 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
`/usr/local/mysql-VERSION' and also installs a symbolic link,
`/usr/local/mysql', that points to the new location. If a directory
named `/usr/local/mysql' exists, it is renamed to
`/usr/local/mysql.bak' first. Additionally, the installer creates the
grant tables in the `mysql' database by executing `mysql_install_db'.

The installation layout is similar to that of a `tar' file binary
distribution; all MySQL binaries are located in the directory
`/usr/local/mysql/bin'. The MySQL socket file is created as
`/tmp/mysql.sock' by default. See *Note installation-layouts::.

MySQL installation requires a Mac OS X user account named `mysql'. 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, a version of MySQL should already
be installed. The following table shows the versions of MySQL that ship
with Mac OS X Server versions.

*Mac OS X Server       *MySQL Version*
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 preinstalled 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.x 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. See *Note
mysql-upgrade::.

If you want MySQL to start automatically during system startup, you
also need to install the MySQL Startup Item. 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. 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 is installed into
`/Library/StartupItems/MySQLCOM'. (Before MySQL 4.1.2, the location was
`/Library/StartupItems/MySQL', but that collided with the MySQL Startup
Item installed by Mac OS X Server.) Startup Item installation adds a
variable `MYSQLCOM=-YES-' to the system configuration file
`/etc/hostconfig'. If you want to disable the automatic startup of
MySQL, simply change this variable to `MYSQLCOM=-NO-'.

On Mac OS X Server, the default MySQL installation bundled with the
operating system uses the variable `MYSQL' in the `/etc/hostconfig'
file. The Sun Microsystems, Inc. "Startup Item" installer disables
this variable by setting it to `MYSQL=-NO-'. This avoids boot time
conflicts with the `MYSQLCOM' variable used by the Sun Microsystems,
Inc. "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, use this command:

     shell> sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
     (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> cd /usr/local/mysql
     shell> sudo ./bin/mysqld_safe
     (ENTER YOUR PASSWORD, IF NECESSARY)
     (PRESS CONTROL-Z)
     shell> bg
     (PRESS CONTROL-D OR ENTER "EXIT" TO EXIT THE SHELL)

You should be able to connect to the MySQL server, for example, by
running `/usr/local/mysql/bin/mysql'.

*Note*: The accounts that are listed in the MySQL grant tables
initially have no passwords.  After starting the server, you should set
up passwords for them using the instructions in *Note
post-installation::.

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 `bash' is:

     alias mysql=/usr/local/mysql/bin/mysql
     alias mysqladmin=/usr/local/mysql/bin/mysqladmin

For `tcsh', use:

     alias mysql /usr/local/mysql/bin/mysql
     alias mysqladmin /usr/local/mysql/bin/mysqladmin

Even better, add `/usr/local/mysql/bin' to your `PATH' environment
variable. You can do this by modifying the appropriate startup file for
your shell. For more information, see *Note invoking-programs::.

If you are upgrading an existing installation, 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
`/Library/Receipts/mysql-VERSION.pkg'.

分享到:
评论

相关推荐

    MySQLReadme.txt

    介绍了MySQL 如何在linux上安装的步骤,内容较为详细不信你可以看看,里面提供了下载地址,只要按顺序执行就可!

    MySQL数据库遭到攻击篡改(使用备份和binlog进行数据恢复)

    MySQL数据库在面临攻击篡改的情况下,数据恢复是一个关键任务,主要依赖于备份和二进制日志(binlog)。本文将详细介绍如何利用这些工具来恢复受损数据。 首先,当数据库遭受攻击,例如文中提到的“文章内容字段遭到...

    mysql-5.1.47驱动包

    MySQL是世界上最受欢迎的开源数据库系统之一,而MySQL-5.1.47是该系统的一个特定...开发者应当充分利用它的特性,结合`mysql-connector-java-5.1.47.jar` 文件和`README.txt` 的指导,确保项目中的数据库操作顺利进行。

    mysql-connector-j-8.0.33.zip

    5. `README.mysql` 或类似文件:可能提供了针对MySQL服务器特定的使用指南和提示。 使用MySQL Connector/J进行开发时,你需要按照以下步骤操作: 1. **添加依赖**:将`mysql-connector-java-8.0.33.jar`文件添加到...

    mysql-8.0.31-winx64.zip

    2. **README**: README文件通常提供关于如何安装、配置和使用MySQL的基本指南。它可能包含系统需求、安装步骤、启动和停止服务器的方法以及常见问题解答等信息。 3. **include**: 这个目录包含MySQL服务器头文件,...

    MySQL8.0.19安装配置教程和安装包(Mac系统)

    (1)MySQL8.0.19 在 Mac 环境下的安装; (2)本资源包括安装配置教程和压缩安装包; (3)先运行 mysql-8.0.19-...(5)具体的安装教程,可以参考素材:MySQL for Mac ->安装教程 - Mac系统安装MySql -> README.md;

    MYSQL_UDF-5.0.rar_mysql udf_udf_udf mysql

    - `README`:介绍UDF的使用方法、注意事项和安装指南。 - `src`:存放C/C++源代码的文件夹。 - `include`:包含头文件,定义了MySQL API和UDF接口。 - `Makefile`:用于编译和链接动态链接库的脚本。 - `*.c` 和 `*....

    mysql2005中文版

    在提供的压缩文件中,“Readme-说明.htm”很可能是官方的安装指南或使用说明,包含关于安装、配置和使用MySQL 2005中文版的详细步骤和注意事项。另一个文件“mysql-5.6.10”可能是一个较新版本的MySQL安装包,虽然...

    mysql-connector-java-8.0.28.tar.gz

    3. `README`:可能包含安装指南、版本信息、已知问题等重要细节。 4. `changes.txt`:记录了该版本相对于前一版本的改动和改进。 在实际使用中,开发人员需要将`mysql-connector-java-8.0.28.jar`添加到Java项目的...

    db转mysql数据库转换

    "db转mysql数据库转换"这个主题涉及到将一个特定类型的DB数据库迁移到MySQL数据库的过程。这里,我们主要讨论如何使用提供的工具进行转换,以及转换过程中可能遇到的关键知识点。 首先,`db2mysql.exe`是一个可能的...

    mysqla安装包.zip

    MySQL是世界上最受欢迎的开源数据库系统之一,主要用于存储和管理数据。MySQLA可能指的是MySQL的一个特定版本或变体,但在这个场景下,我们...用户需遵循标准的安装流程,并参考Readme文档以确保正确安装和使用MySQL。

    mysql_delphi操作mysql例程_

    `readme.txt`和`license.txt`通常分别包含了使用说明和授权许可信息,确保你在使用这些示例代码和库文件时遵守了相应的条款。 综上所述,Delphi操作MySQL涉及的主要知识点包括:Delphi的数据库组件使用、MySQL的...

    mysql-connector-java-8.0.27.jar

    通常,官方发布的JAR文件会伴随README或CHANGES文件,以供开发者参考。 总之,`mysql-connector-java-8.0.27.jar`对于任何需要在Java应用中使用MySQL数据库的开发者来说,都是一个必不可少的组件,它简化了Java和...

    mysql5.6安装包

    MySQL 5.6是MySQL数据库管理系统的一个重要版本,它提供了许多增强的功能和性能优化,适合于各种规模的企业级应用。这个“mysql5.6安装包”包含了安装MySQL 5.6所需的所有文件,使得用户可以在自己的计算机上部署和...

    mysql5.7.28离线安装包

    MySQL 5.7.28 是一个非常重要的数据库管理系统版本,尤其对于那些需要高级功能和高性能的企业级应用来说。...在实际操作中,应仔细阅读`readme.txt`文件,并遵循最佳实践来管理和优化你的MySQL实例。

    mysql-proxy-0.8.5-windows-x86-32bit

    - `README`、`LICENSE` 等文档:包含使用说明和许可信息。 安装和使用 MySQL Proxy 需要注意以下几点: 1. **配置文件**:默认情况下,MySQL Proxy 使用 `proxy.conf` 文件进行配置,包括代理端口、后端服务器地址...

    DBEAVER的mysql5.7驱动.zip

    4. **readme.txt**:这个文件可能是提供关于驱动安装、配置或者使用注意事项的说明文档。通常,它会包含一些关键步骤、兼容性信息、问题解决方案等内容,用户应该仔细阅读以确保正确安装和使用驱动。 5. **...

    delphi mysql.dll 连接mysql数据库

    7. **readme.txt**:通常包含关于如何使用提供的示例和库的说明。 8. **license.txt**:MySQL的许可协议,规定了使用这些库和代码的条款和限制。 使用Delphi和MySQL.dll连接数据库的过程大致如下: 1. 加载mysql....

    mysql-for-visualstudio-1.2.5-noinstall.zip,mysql.data.dll下载

    - "README"文件提供了安装或使用软件的基本指南和注意事项。 - "Release Notes.txt"通常包含了版本发布的主要特性、改进和已知问题,是了解软件当前状态的重要参考。 - "Documentation"可能是一个目录,包含了插件的...

    MySQLAdministrator5.0汉化中文语言包

    关于如何安装和使用这个汉化包,可以从"readme.txt"文件中找到详细步骤。通常,这会涉及到将汉化文件复制到MySQL Administrator的相应目录,然后重启程序以应用新的语言设置。这个过程需要用户有一定的计算机操作...

Global site tag (gtag.js) - Google Analytics