Code Monkey home page Code Monkey logo

Comments (4)

JustForFunnnn avatar JustForFunnnn commented on May 27, 2024

看一下错误提示啊。
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.

acgtyrant avatar acgtyrant commented on May 27, 2024

果然还是要手动创建数据库啊,这对不会 MySQL, 只能按 README 一步一步来的用户不友好。

现在出现了新错误:_mysql_exceptions.ProgrammingError: (1146, "Table 'spider.keyword' doesn't exist") 大概要新建表,我晚点研究 MySQL 命令,如果你能直接给现成的命令,或者更新项目 README 以说明,就再好不过。

from webspider.

JustForFunnnn avatar JustForFunnnn commented on May 27, 2024

创建数据库等的MYSQL命令不是最基础的吗。。。
表的创建语句在 webspider/tests/schema.sql 里都有啊。

from webspider.

acgtyrant avatar acgtyrant commented on May 27, 2024

能不能——自动化这两个创建命令呢!比如在执行 bin/web 时自动执行这亮命令。

from webspider.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.