GithubHelp home page GithubHelp logo

db seed error about framework HOT 3 CLOSED

flarum avatar flarum commented on August 27, 2024
db seed error

from framework.

Comments (3)

zairl23 avatar zairl23 commented on August 27, 2024

i comment the line 61, run php artisan db:seed, error:

       [Illuminate\Database\QueryException]                                                                                                                                                                                           
       SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'api_url' for key 'PRIMARY' (SQL: insert into `config` (`key`, `value`) values (api_url, http://flarum.dev/api), (base_url, http://flarum.dev), (forum_  
      title, Flarum Demo Forum), (welcome_message, Flarum is now at a point where you can have basic conversations, so here is a little demo for you to break.), (welcome_title, Welcome to Flarum Demo Forum))                      

         [PDOException]                                                                                     
       SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'api_url' for key 'PRIMARY'

But the datas has been seeded, and the falrum can run success.:)!,

There are another some issues about config/app.php, must comment these lines:

             'Flarum\Core\CoreServiceProvider',
     // 'Flarum\Support\Extensions\ExtensionsServiceProvider',

    //'Flarum\Api\ApiServiceProvider',
    //'Flarum\Forum\ForumServiceProvider',
    'Flarum\Console\ConsoleServiceProvider',
    //'Flarum\Admin\AdminServiceProvider',

then run

     php artisan vendor:publish

     php artisan flarum:install

   php artisan flarum:seed

can setup the flarum success..

from framework.

franzliedke avatar franzliedke commented on August 27, 2024

This should be fixed now.

This one time, please destroy the Vagrant VM and re-clone the repository (while following the updated installation instructions at https://github.com/flarum/flarum#installation - please note the --recursive flag when cloning).

from framework.

zairl23 avatar zairl23 commented on August 27, 2024

Well, good solution, 3ks!

from framework.

Related Issues (20)

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.