Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mc:init 执行不成功时如何处理 #8

Closed
maxincai opened this issue Jan 19, 2021 · 2 comments
Closed

mc:init 执行不成功时如何处理 #8

maxincai opened this issue Jan 19, 2021 · 2 comments

Comments

@maxincai
Copy link
Contributor

我用的环境

  • PHP 版本:
  • MoChat 版本:
  • Swoole 版本:

问题及现象

mc:init 执行不成功时如何处理

@maxincai
Copy link
Contributor Author

可以手动初始化:

解决方案:

1、cp .env.example .env
2、将 .env 中的 DB REDIS OSS DOMAIN 配置完成
3、将数据库文件导入初始化 api-server/storage/install/mochat.sql
4、初始租户和账号信息,请注意修改下面的手机号和服务器IP,以下用户密码是 123456

INSERT INTO `mc_user` (`phone`,`password`,`status`,`isSuperAdmin`) VALUES ('13412347867','$2y$10$6PedNV6SVNQNpUMjZgauvewh7wfFjbSWbh2k9yGJ9dhAIBVcL4gKm',1,1);

INSERT INTO `mc_tenant` (`server_ips`) VALUES ('["182.92.11.11"]');

@xiaobopang
Copy link

可以手动初始化:

解决方案:

1、cp .env.example .env
2、将 .env 中的 DB REDIS OSS DOMAIN 配置完成
3、将数据库文件导入初始化 api-server/storage/install/mochat.sql
4、初始租户和账号信息,请注意修改下面的手机号和服务器IP,以下用户密码是 123456

INSERT INTO `mc_user` (`phone`,`password`,`status`,`isSuperAdmin`) VALUES ('13412347867','$2y$10$6PedNV6SVNQNpUMjZgauvewh7wfFjbSWbh2k9yGJ9dhAIBVcL4gKm',1,1);

INSERT INTO `mc_tenant` (`server_ips`) VALUES ('["182.92.11.11"]');

手动初始化后,登录提示:“ 未认证,没有token ”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants