栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

20220531-在新mac上安装OpenJDK+Mysql及设置密码+Sequel Pro总结回顾

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

20220531-在新mac上安装OpenJDK+Mysql及设置密码+Sequel Pro总结回顾

Backgroud

I am helping my colleague to install JRE ,mysql and Sequel Pro(rather than Navicat) on her laptop and it’s a review to look back what I learned last month.

Install MySQL
https://downloads.mysql.com/archives/community/

choose a suitable version for your laptop.

Another way to install Mysql:
  • Officials url on https://brew.sh/
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • 5 mirror sources in China mainland:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
After finished installation,we may to reset the password and username.
  • enter into mysql/bin/
cd /usr/local/mysql/bin/
  • Skip grant tables
# 顾名思义,就是在启动mysql时不启动grant-tables,授权表
sudo ./mysqld_safe --skip-grant-tables
  • Open a new window of terminal
#enter into mysql/bin/
cd /usr/local/mysql/bin/


./mysql

#mysql> SQL SYNTAX~~~ it's a mush to flush privileges.
FLUSH PRIVILEGES;

#mysql> SQL SYNTAX~~~ set password as 123456 ,you can directly replace it
SET PASSWORD FOR 'root'@'localhost' = PASSWORd('123456');

#finally restart mysql service
sudo /usr/local/mysql/support-files/mysql.server restart

#stop mysql service(optional)
sudo /usr/local/mysql/support-files/mysql.server stop

#start mysql service(optional)
sudo /usr/local/MySQL/support-files/mysql.server start
Install Zulu JDK
https://www.azul.com/downloads/

I am lazy to download JDK from oracle as you need to login every time when you want to download.——That’s why I choose Zulu JDK. Choose a suitable version for your laptop.It’s easy to install as long as you follow the guide.

Install Sequel Pro
#97c1b85783 
https://sequelpro.com/test-builds
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/939249.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号