Mac--管理mysql、redis服务的常用命令
##启动MySQL服务 sudo /usr/local/MySQL/support-files/mysql.server start ##停止MySQL服务 sudo /usr/local/mysql/support-files/mysql.server stop ##重启MySQL服务 sudo /usr/local/mysql/support-files/mysql.server restart
修改mysql root账户密码:默认为空
https://www.cnblogs.com/xingxiangyi/p/9334694.html
https://www.cnblogs.com/nyfz/p/8514131.html
# 安装redis brew install redis # 启动服务端 redis-server # commond+n 另外开启一个cmd redis-cli # 此时提示6379端口,说明连接成功 # 检测服务是否启动,执行命令 ping # 得到结果pong说明成功
docker exec -it redis redis-cli
# 进入redis容器
python 中文名:蟒蛇,设计者:Guido van Rossum