[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fWvxu5tdi-Jtjfvjgj7fefXIyjT_xwUpAGljDhJ3hTAw":3},{"code":4,"message":5,"data":6},200,"成功",{"id":7,"createdAt":8,"title":9,"content":10,"summary":11,"image":12,"uid":13,"user":14,"categoryId":21,"category":22,"subCategoryId":24,"subCategory":25,"comments":27,"status":17,"reason":28,"notice":28,"visitCount":29,"commentCount":30,"keywords":31},24,"2024-01-26T15:07:27.114Z","mysql数据库的下载安装还有启动等常见操作","### 1. 下载mysql\n```terminal\n# MacOS上的下载\nbrew install mysql\n\n# 查看mysql信息\nbrew info mysql\n```\n\n### 2. 查看mysql的环境变量\n```terminal\nwhich mysql\n```\n\n### 3. mysql设置初始密码\n```mysql\nmysql_secure_installation\n```\n\n### 4. 用户进入mysql\n```terminal\nmysql -u root -p // 会被要求输入密码\n```\n\n### 5. 查看mysql临时密码\n```mysql\ngrep \"password\" /var/log/mysqld.log\n```\n\n### 6. mysql启动\n```terminal\nmysql.server start\n```\n\n### 7. mysql停止运行\n```terminal\nmysql.server stop\n```\n\n### 8. mysql查看端口号\n```mysql\nshow global variables like 'port'; // mysql启动后的mysql输入端输入改命令\n```\n![mysql查看端口](https://image.xinwei.ltd/11706281608716.png)\n\n\n\n","这里有mysql数据库在Mac系统上的下载安装还有配置指令操作。","https://image.xinwei.ltd/11706281608716.png",499668042977349,{"phone":15,"userId":13,"nickName":16,"vipType":17,"avatar":18,"sign":19,"createdAt":20},"13121171998","全栈老韩",1,"https://image.xinwei.ltd/images/IMG_5430.JPG","全栈工程师，擅长iOS App开发、前端（vue、react、nuxt、小程序&Taro）开发、Flutter、React Native、后端（midwayjs、golang、express、koa）开发、docker容器、seo优化等。","2024-01-01T16:14:30.305Z",2,{"id":21,"name":23},"IT技术",38,{"id":24,"name":26,"parentId":21},"数据库",[],"",87,0,"mysql,mac mysql"]