引用
Set up databases to run AS YOUR USER ACCOUNT with:
unset TMPDIR
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
To set up base tables in another folder, or use a differnet user to run
mysqld, view the help for mysqld_install_db:
mysql_install_db --help
and view the MySQL documentation:
* http://dev.mysql.com/doc/refman/5.5/en/mysql-install-db.html
* http://dev.mysql.com/doc/refman/5.5/en/default-privileges.html
To run as, for instance, user "mysql", you may need to `sudo`:
sudo mysql_install_db ...options...
To run as, for instance, user "mysql", you may need to `sudo`:
sudo mysql_install_db ...options...
Start mysqld manually with:
mysql.server start
A "/etc/my.cnf" from another install may interfere with a Homebrew-built
server starting up correctly.
To connect:
mysql -uroot
To launch on startup:
* if this is your first install:
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/mysql/5.5.10/com.mysql.mysqld.plist
~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
* if this is an upgrade and you already have the com.mysql.mysqld.plist loaded:
launchctl unload -w
~/Library/LaunchAgents/com.mysql.mysqld.plist
cp /usr/local/Cellar/mysql/5.5.10/com.mysql.mysqld.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/local/Cellar/mysql/5.5.10/bin/mysqladmin -u root password 'new-password'
/usr/local/Cellar/mysql/5.5.10/bin/mysqladmin -u root -h racematoMacBook-Pro.local password 'new-password'
Alternatively you can run:
/usr/local/Cellar/mysql/5.5.10/bin/mysql_secure_installation
- 大小: 55.1 KB
- 大小: 53.4 KB
- 大小: 181.8 KB
分享到:
相关推荐
macOS下mysql5.7安装包
MacOS mysql-5.7.16下载
MacOS安装MySql8.0.19及安装报错解决方案.docx
mysql下载版本mysql-8.0.25-macos11-x86_64.dmg, 下载地址 https://dev.mysql.com/downloads/mysql/ 您要觉得下载速度慢可以下载这个。
mac os下的mysql管理工具,方便在mac os环境下进行数据库管理
mysql-5.6.38-macos10.12-x86_64.tar.gz 【MySQL5.6,苹果MacOS 10.12,64位压缩包】,解压即可使用。 安装版下载地址: http://download.csdn.net/download/chenchunlin526/10132966
mysql8.0.16 macOS最新版 web项目jar包 下载下来解压,即可得到jar
mysql-8.0.16-macos10.14-x86_64 64位mac可以直接安装的最新mysql软件
Mac版本的MySQL安装包,这个是免费的社区版本,但是比较实用,初学者可以使用这个为自己的Mac添加一个数据库软件,安装只需要进行下一步
mysql-8.0.21-macos10.15-x86_64.dmg.zip mysql-8.0.21-macos10.15-x86_64.dmg.zip mysql-8.0.21-macos10.15-x86_64.dmg.zip
mysql-5.7.20-macos10.12-x86_64.dmg【mysql5.7,苹果macos,64位版】.
MySQL Router 8.0.27(mysql-router-8.0.27-macos11-arm64.dmg),适用于macOS 11 (ARM, 64-bit), DMG Archive
mysql-8.0.29-macos12-x86_64.dmg 安装包和教程
MySQL数据库Mac版本:mysql-8.0.26-macos11-x86_64.dmg 适用于:macOS 11 (x86, 64-bit), DMG Archive
mac版本,mysql-8.0.20-macos10.15-x86_64.dmg,mysql,2020最新版的,有需要的拿走,不谢
mysql-5.7.28-macos10.14-x86_64.dmg 下载完成后,双击打开一路确定,但是当弹出一个MYSQL Installer提示框的时候一定打开备忘录复制粘贴记下弹出框的密码 给mysql加环境变量 进入/usr/local/mysql/bin,查看mysql...
MySQL Workbench Community 8.0.36 for macOS (ARM64) 资源介绍 1. 产品概述 MySQL Workbench Community 8.0.36 是MySQL官方提供的一款免费、跨平台的数据库设计和管理的图形化工具。它允许用户以直观的方式与...
Mac 数据库安装文件 mysql-8.0.12-macos10.13-x86_64.dmg
mysql Mac 版本安装包;原地址位于:https://dev.mysql.com/downloads/mysql/ ;
MySQL Community Server 8.0.28(mysql-8.0.28-macos11-x86_64.dmg) 适用于:macOS 11 (x86, 64-bit), DMG Archive