美文网首页
2024-09-05 Mac 启动Apache 和Mysql的设

2024-09-05 Mac 启动Apache 和Mysql的设

作者: Bruin_熊先森 | 来源:发表于2024-09-04 18:54 被阅读0次

1、启动Apache服务

sudo apachectl start

2、关闭Apache服务

sudo apachectl stop

3、部署项目的路径

/Library/WebServer/Documents/

4、进入Mysql官网(https://www.mysql.com/downloads/)-Downloads - Mysql community(GPL)Downloads - Mysql community Server - 选择适合当前系统的安装包【选择8.0.23版本,最新版本版本会有密码类型的权限问题导致Navicat不能登录】

5、配置Mysql数据库-打开终端-输入命令创建文件:vim ~/.bash_profile  ---输入路径:export PATH=$PATH:/usr/local/mysql/bin --:wq保存退出-- 输入命令:source ~/.bash_profile  

6、启动数据库--输入命令:mysql -u root -p  -- 输入密码---即可启动成功

7、选择数据库管理工具【MySQL Workbench:https://www.mysql.com/products/workbench/】【Navicat for Mac

8

相关文章

网友评论

      本文标题:2024-09-05 Mac 启动Apache 和Mysql的设

      本文链接:https://www.haomeiwen.com/subject/ebtrljtx.html