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

sqltie 配置是什么 我配置的连不上 #39

Closed
yangguangwuwu opened this issue Sep 29, 2018 · 0 comments
Closed

sqltie 配置是什么 我配置的连不上 #39

yangguangwuwu opened this issue Sep 29, 2018 · 0 comments

Comments

@yangguangwuwu
Copy link

// 数据库类型 'type' => 'sqlite', // 服务器地址 'hostname' => '', // 数据库名 'database' => 'data', // 用户名 'username' => '', // 密码 'password' => '', // 端口 'hostport' => '', // 连接dsn 'dsn' => 'sqlite:data.db',
data.db文件在public

控制器调用
dump(\think\Db::table("order")->select());

报错
SQLSTATE[HY000]: General error: 1 near "order": syntax error

@ghost ghost mentioned this issue May 21, 2022
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

1 participant