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

bee migrate无法连接slqite3 #81

Open
doabit opened this issue Nov 13, 2014 · 3 comments
Open

bee migrate无法连接slqite3 #81

doabit opened this issue Nov 13, 2014 · 3 comments

Comments

@doabit
Copy link

doabit commented Nov 13, 2014

bee.json

{
  "database": {
    "driver": "sqlite",
    "conn": "./data/dev.db"
  }
}

显示如下:

2014/11/14 04:05:23 [INFO] Detected bee.json
2014/11/14 04:05:23 [INFO] Using 'sqlite' as 'driver'
2014/11/14 04:05:23 [INFO] Using './data/dev.db' as 'conn'
2014/11/14 04:05:23 [INFO] Running all outstanding migrations
2014/11/14 04:05:23 [ERRO] Could not connect to sqlite: ./data/dev.db
@VarunBatraIT
Copy link

I am getting following error:

2015/10/15 13:23:41 [INFO] Detected bee.json
2015/10/15 13:23:41 [INFO] Using 'sqlite3' as 'driver'
2015/10/15 13:23:41 [INFO] Using 'test.sqlite3' as 'conn'
2015/10/15 13:23:41 [INFO] Running all outstanding migrations
2015/10/15 13:23:41 [ERRO] Could not connect to sqlite3: test.sqlite3
2015/10/15 13:23:41 [ERRO] Error: sql: unknown driver "sqlite3" (forgotten import?)%

How on earth can I fix it? Works fine with mysql.

@VarunBatraIT
Copy link

Same if I use sqlite instead of sqlite3

@CodeJuan
Copy link

I used the command 'generate' and got the same error, and it's ok with MySQL.

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

3 participants