Comments (4)
连不上数据库,检查下你宿主机上的数据库是否启动了,账号密码权限是否已经分配
from wizard.
Hi @mylxsw ,
感谢回复。我后来尝试的步骤如下:
-
我在主机上通过docker启动了mysql,并且执行了如下mysql的初始化脚本:
create database wizard default character set utf8mb4 collate utf8mb4_bin ;
create user 'wizard'@'%' identified by 'wizard' ;
grant all privileges on wizard.* to 'wizard'@'%' ;
flush privileges ; -
然后在本机执行了如下脚本:
docker run -d --name wizard
-e DB_HOST=10.8.18.87
-e DB_PORT=3306
-e DB_DATABASE=wizard
-e DB_USERNAME=wizard
-e DB_PASSWORD=wizard
-p 8080:80
-v /Volumes/M2SSD/Space/GuangResourcesPool/Guang_workspace/workspace/wizard/content:/webroot/storage/app/public
mylxsw/wizard -
执行docker exec -it wizard /bin/bash,进入docker;
-
执行php artisan migrate:install,遇到如下error:
SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client (SQL: create table migrations
(id
int unsigned not null auto_increment primary key, migration
varchar(191) not null, batch
int not null) default character
set utf8mb4 collate 'utf8mb4_unicode_ci')
请问是哪一步有问题吗,感谢指导!
from wizard.
这是用的 mysql8 吧,这样,修改下用户信息
alter user 'wizard'@'%' identified with mysql_native_password by 'wizard';
from wizard.
Hi @mylxsw ,
谢谢,可以启动了。
from wizard.
Related Issues (20)
- 不懂为什么每次运行php artisan migrate:install都会报错 HOT 2
- 建议出个java版本的 HOT 1
- 有管理员账号和权限吗 HOT 3
- 一个用户加入多个用户组,只能看到一个用户组的项目
- 支持全文搜索引擎的url地址和鉴权信息在哪里修改?wizard页面创建的内容怎么同步到搜索引擎数据库? HOT 5
- 下载文档的文件名称是随机英文数字
- Table 'wizard_2.wz_project_catalogs' doesn't exist HOT 1
- 请教两个功能 HOT 1
- 问下支持多语言吗? HOT 1
- 请问有没有文章仅同组用户的配置?
- LDAP接入配置后,登录提示”账号信息不合法“。 HOT 5
- 开发计划之文档分享,递归分享目录及子目录,文档,还是很有必要的
- 1.3.2版本上传附件报500错误,1.3.1是正常的 HOT 1
- 成功启动后,WEB访问页很多错误!
- php 7.4.33 下 composer 安装时就出错 HOT 2
- [LDAP接入问题] 账户信息不合法 HOT 2
- 可否在分享文档的页面加上密码或者文档保护性认证
- 表格最大行限制
- 同步swagger文档如果链接带有base auth 会同步失败
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wizard.