1

I'm trying to make a website by using node.js, mysql and sequelize with my friends, so I downloaded database files my friend made. But I cannot create and recognize database table. How can I fix this problem..? I already tried " sequelize db:create " on the server terminal. The error codes I got are

{ SequelizeConnectionError: Unknown database 'database_development'
   at ...
 name: 'SequelizeConnectionError',
 parent:
  { Error: Unknown database 'database_development'
      at ....
    code: 'ER_BAD_DB_ERROR',
    errno: 1049,
    sqlState: '42000',
    sqlMessage: 'Unknown database \'database_development\'' },
 original:
  { Error: Unknown database 'database_development'
      at .....
    code: 'ER_BAD_DB_ERROR',
    errno: 1049,
    sqlState: '42000',
    sqlMessage: 'Unknown database \'database_development\'' } }
1

1 Answer 1

0

use following command to create CREATE DATABASE IF NOT EXISTS <db_name>;

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.