Comments (4)
看一下错误提示啊。
sqlalchemy.exc.OperationalError: (_mysql_exceptions.OperationalError) (1049, "Unknown database 'spider'")
提示你找不到 spider
这个数据库。新建一个即可。
进入mysql: mysql -u root
创建数据库: CREATE DATABASE
spider CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
from webspider.
果然还是要手动创建数据库啊,这对不会 MySQL, 只能按 README 一步一步来的用户不友好。
现在出现了新错误:_mysql_exceptions.ProgrammingError: (1146, "Table 'spider.keyword' doesn't exist")
大概要新建表,我晚点研究 MySQL 命令,如果你能直接给现成的命令,或者更新项目 README 以说明,就再好不过。
from webspider.
创建数据库等的MYSQL命令不是最基础的吗。。。
表的创建语句在 webspider/tests/schema.sql
里都有啊。
from webspider.
能不能——自动化这两个创建命令呢!比如在执行 bin/web
时自动执行这亮命令。
from webspider.
Related Issues (12)
- web框架是django吗 HOT 1
- 将拉勾中爬下来的所有数据都存入数据库。 HOT 3
- # 您好,请问下这些常量的配置是什么? HOT 2
- 运行问题 HOT 1
- make的时候遇到: ImportError: No module named backports.configparser HOT 1
- centos兼容嘛?会有部分命令只能在ubantu上执行的嘛? HOT 1
- make项目目录,报错,make: *** 没有规则可制作目标“env/bin”
- missing lg_cites
- OSError: mysql_config not found HOT 1
- 你这个项目怎么运行不起来啊 HOT 2
- 在make test这一步就出现错误 HOT 1
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 webspider.