首頁  >  問答  >  主體

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'

这个是什么问题?

大家讲道理大家讲道理2742 天前663

全部回覆(2)我來回復

  • PHP中文网

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

    看樣子問題有三種可能:

    1. 你的資料庫沒啟動起來

    2. 你沒有一個叫test的資料庫

    3. 你有這個資料庫,但是你使用這個叫test的資料庫的時候,還沒創建好

    回覆
    0
  • 天蓬老师

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

    show databases 看下

    回覆
    0
  • 取消回覆