## 宝塔获取mysql root密码 ![![](https://git.kancloud.cn/repos/yi_xiang_42/likeshop_develop_v2_x/raw/1b0a40473e5d0b763167a1c082331dc9be1d1854/images/screenshot_1610040827631.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2MjQ5MjcxMzAsImlhdCI6MTYyNDg4MzkzMCwicmVwb3NpdG9yeSI6InlpX3hpYW5nXzQyXC9saWtlc2hvcF9kZXZlbG9wX3YyX3giLCJ1c2VyIjp7InVzZXJuYW1lIjoiaW5kZXhsaW4iLCJuYW1lIjoiaW5kZXhsaW4iLCJlbWFpbCI6ImluZGV4bGluQHFxLmNvbSIsInRva2VuIjoiOWUwOTNhNGYzYWIzMjQ2ZGY4YmZiYzRlNzgwMWUxNDIiLCJhdXRob3JpemUiOnsicHVsbCI6dHJ1ZSwicHVzaCI6dHJ1ZSwiYWRtaW4iOnRydWV9fX0.Z74JV7TLoQT6QhSyPjDeLqnn0fayo4wsh9dKC8nwU4s) ](images/screenshot_1626680835989.png) ## 打开链接 在浏览器访问设置的域名,如果没有显示安装界面,请刷新一次。 ## 按步骤安装 ![](https://img.kancloud.cn/4a/30/4a302356c2b1f7f0b7e813a9600db249_2604x1888.png) ![](https://img.kancloud.cn/a3/24/a3248c04693a1f15ca3ff520c731baf9_2604x1888.png) 运行环境检测,当有选项出现X时,重新配置好,点击重新检测,否则无法继续安装。 ![![](https://git.kancloud.cn/repos/yi_xiang_42/likeshop_develop_v2_x/raw/1b0a40473e5d0b763167a1c082331dc9be1d1854/images/3.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2MjQ5MjcxMzAsImlhdCI6MTYyNDg4MzkzMCwicmVwb3NpdG9yeSI6InlpX3hpYW5nXzQyXC9saWtlc2hvcF9kZXZlbG9wX3YyX3giLCJ1c2VyIjp7InVzZXJuYW1lIjoiaW5kZXhsaW4iLCJuYW1lIjoiaW5kZXhsaW4iLCJlbWFpbCI6ImluZGV4bGluQHFxLmNvbSIsInRva2VuIjoiOWUwOTNhNGYzYWIzMjQ2ZGY4YmZiYzRlNzgwMWUxNDIiLCJhdXRob3JpemUiOnsicHVsbCI6dHJ1ZSwicHVzaCI6dHJ1ZSwiYWRtaW4iOnRydWV9fX0.Z74JV7TLoQT6QhSyPjDeLqnn0fayo4wsh9dKC8nwU4s) ](images/screenshot_1626680907652.png) 填写数据库配置和管理员账号,注意,请使用mysql的root账号。 ![](https://img.kancloud.cn/85/2d/852d39b71d1fc53a169fd39067c7ec80_2600x2004.png) ![](https://img.kancloud.cn/76/07/76077582eab4552ce975ce6128e191a6_2600x2004.png) 安装完毕。 ## 安装说明 为了您站点的安全,安装完成后即可将网站根目录下的“LikeShop-service/serve . dd r/public/install”文件夹删除,或者在LikeShop-service/server/config/install.lock/目录下创建install.lock文件防止重复安装。