INSTALL MYSQL IN MAC

安装好MYSQL后,在System References中找到MYSQL,启动它。

启动之后在终端中输入添加MySQL路径的命令,把MYSQL路径添加到PATH中:

PATH="$PATH":/usr/local/mysql/bin

在终端登录到MySQL的命令如下:mysql -u root -p

当你执行任何语句的时候如show databases是会出现类似以下的错误,请用SET PASSWORD修改密码。

ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

mysql> SET PASSWORD = PASSWORD(‘123456);

时间: 2024-10-12 13:01:33

INSTALL MYSQL IN MAC的相关文章

Install MySQL on Mac by Homebrew

1.  安装mysql brew update brew install mysql 2. 启动mysql mysql.server start 3. 登录mysql mysql -uroot -p 密码为空,直接回车,即进入mysql 4. 退出mysql Control+Z

mysql在mac上的编译和调试

今天正式开始漫漫长路,打算这几年用业余时间刷刷mysql5.5源代码,由于手边的书籍基本都是基于mysql5.5的,所以就不用5.7版本的代码了,更何况我更关注基本内核.因此,没有特殊指明,那么,一般都指mysql5.5版本.工作原因没有深入去了解mysql,既然想玩技术,工作上的技术挑战没有研究mysql内核这么直接,因此,决定用业余时间搞搞些技术活,一方面可以让自己的技术深入储备,另一方面也让自己在工作之余从技术中获得点点成就感. 选择mac平台因为简单,windows平台我也编译成功了,但

How to Install MySQL on CentOS 7

How to Install MySQL on CentOS 7 Updated Thursday, August 27th, 2015 by Linode Use promo code DOCS10 for $10 credit on a new account. Try this Guide Contribute on GitHub View Project | View File | Edit File MySQL is a popular database management syst

Install MySQL 5.7 on Fedora 25/24, CentOS/RHEL 7.3/6.8/5.11

1. Change root user Bash su - ## OR ## sudo -i 2. Install MySQL YUM repository Fedora Bash ## Fedora 25 ## dnf install https://dev.mysql.com/get/mysql57-community-release-fc25-9.noarch.rpm ## Fedora 24 ## dnf install https://dev.mysql.com/get/mysql57

mysql for mac安装

1. 执行: $ brew install mysql 2. 在 /usr/local/etc/ 下创建或修改 mysql.conf,示例: [client] port = 3306 socket = /tmp/mysql.sock default-character-set = utf8 [mysqld] collation-server = utf8_unicode_ci character-set-server = utf8 init-connect ='SET NAMES utf8' m

install Django in mac

install Eclipse & Python(pydev) in mac install django in mac $ curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.10.1.tar.gz $ cd virtualenv-1.10.1/ $ sudo python setup.py install $ virtualenv python2-workspace $ cd python2-wo

Install Docker on Mac OS X(转)

Install Docker on Mac OS X You can install Docker using Boot2Docker to run docker commands at your command-line. Choose this installation if you are familiar with the command-line or plan to contribute to the Docker project on GitHub. Alternatively,

ubuntu install mysql server method

     recently try to install mysql in my computer so that  I can practise some sql statement on sever.But there are some problem while install mysql package in my ubuntu system.I hava tried lots of ways to move on. at last.I find there is a best way

Create a database in mysql for mac

Before reading the blog, make sure you have succcessfully installed mysql for mac. Create a database: login create a database create tables $ mysql -u root -p $ Enter password: *** Welcome... Type 'help;' or '\h' for help. Type '\c' to clear the curr