search

Home  >  Q&A  >  body text

mysql ER_BAD_DB_ERROR: Unknown database 'test'

Start Logger @ server.js

debug: #### Module Status Check Hook is initialized @1 ####
debug: #### Network Check Hook is initialized @1 ####
debug: #### SystemAlarmHook is initialized @1 ####
debug: #### Temperature and Humidity Check Hook is initialized @1 ####
error: A hook (orm) failed to load!
error: Error (E_UNKNOWN) :: Encountered an unexpected error
: Could not connect to MySQL:
Error: ER_BAD_DB_ERROR: Unknown database 'test'

这个是什么问题?

大家讲道理大家讲道理2788 days ago697

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 14:53:58

    It seems that there are three possibilities for the problem:

    1. Your database is not started

    2. You don’t have a database named test

    3. You have this database, but when you use this database called test, it has not been created yet

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 14:53:58

    show databases take a look

    reply
    0
  • Cancelreply