Mac下mysql服务器安装

Mac下mysql服务器安装 

下载mysql

进入http://dev.mysql.com/downloads/mysql/

下载Mac OS X 10.9 (x86, 64-bit), Compressed TAR Archive

安装

tar -zxvf mysql-5.6.25-osx10.9-x86_64.tar.gz
mv mysql-5.6.25-osx10.9-x86_64 mysql
cd mysql
sudo scripts/mysql_install_db --user=mysql

启动mysql

sudo /usr/local/mysql/support-files/mysql.server start

修改密码

sudo ./mysql_secure_installation

登陆

mysql -u root -p

你可能感兴趣的:(mysql)