宇宙领主 2020-12-09 20:36 采纳率: 0%
浏览 30

宝塔数据库phpMyAadmin报错

PS D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server>npm run develop

> 04-heimamm-serve@0.1.0 develop D:\Adark_hor_e_video\线下\2-其资料\heimamm_mobile_server

> strapi develop

[2020-12-09T12:20:25.366Z] debug ⛔️ Server wasn't able to start properly.

[2020-12-09T12:20:25.368Z] error Error: ER_BAD_DB_ERROR: Unknown database 'heimamm_mobile'

    at Handshake.Sequence._packetToError (D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\mysql\lib\protocol\sequences\Sequence.js:47:14)

    at Handshake.ErrorPacket (D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\mysql\lib\protocol\sequences\Handshake.js:123:18)

    at Protocol._parsePacket (D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\mysql\lib\protocol\Protocol.js:291:23)

    at Parser._parsePacket (D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\mysql\lib\protocol\Parser.js:433:10)

    at Parser.write (D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\mysql\lib\protocol\Parser.js:43:10)

    at Protocol.write (D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\mysql\lib\protocol\Protocol.js:38:16)

    at Socket.<anonymous> (D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\mysql\lib\Connection.js:88:28)

    at Socket.<anonymous> (D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\mysql\lib\Connection.js:526:10)

    at Socket.emit (events.js:210:5)

    at addChunk (_stream_readable.js:308:12)

    at readableAddChunk (_stream_readable.js:289:11)

    at Socket.Readable.push (_stream_readable.js:223:10)

    at TCP.onStreamRead (internal/stream_base_commons.js:182:23)

    at Protocol._enqueue (D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\mysql\lib\protocol\Protocol.js:144:48)

    at Protocol.handshake (D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\mysql\lib\protocol\Protocol.js:51:23)

    at Connection.connect (D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\mysql\lib\Connection.js:116:18)

    at D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\knex\lib\dialects\mysql\index.js:68:18

From previous event:

    at Client_MySQL.acquireRawConnection (D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\knex\lib\dialects\mysql\index.js:63:12)

    at create (D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\knex\lib\client.js:258:21)

    at D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\tarn\lib\Pool.js:389:34

    at Object.tryPromise (D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\tarn\lib\utils.js:53:24)

    at D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\tarn\lib\Pool.js:389:17

    at new Promise (<anonymous>)

    at callbackOrPromise (D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\tarn\lib\Pool.js:380:12)

    at Pool._create (D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\tarn\lib\Pool.js:290:9)

    at Pool._doCreate (D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\tarn\lib\Pool.js:260:36)

    at Pool._tryAcquireOrCreate (D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\tarn\lib\Pool.js:211:18)

    at Pool.acquire (D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\tarn\lib\Pool.js:117:14)

    at D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\knex\lib\client.js:312:43

From previous event:

    at Client_MySQL.acquireConnection (D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\knex\lib\client.js:312:26)

    at Runner.ensureConnection (D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\knex\lib\runner.js:246:8)

    at Runner.run (D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\knex\lib\runner.js:25:27)

    at SchemaBuilder.Target.then (D:\Adark_hor_e_video\线下\2-其他资料\heimamm_mobile_server\node_modules\knex\lib\interface.js:14:43)

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! 04-heimamm-serve@0.1.0 develop: `strapi develop`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the 04-heimamm-serve@0.1.0 develop script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\中国红客联盟\AppData\Roaming\npm-cache\_logs\2020-12-09T12_20_25_392Z-debug.log

  • 写回答

1条回答 默认 最新

  • lshen01 2023-03-16 15:25
    关注

    参考GPT和自己的思路:

    根据报错信息,出现了“ER_BAD_DB_ERROR: Unknown database 'heimamm_mobile'”的错误,意思是无法找到名为'heimamm_mobile'的数据库,很可能是因为该数据库并不存在或者被删除。您可以检查一下是否正确地创建了该数据库,或者尝试重新创建一个同名的数据库,确保其存在。另外,有时候也可能是数据库连接出现了问题,您可以检查一下连接配置是否正确。

    评论

报告相同问题?

悬赏问题

  • ¥15 怎么办怎么办 手贱乱动c盘office用不了了
  • ¥15 linux下点对点协议连接2个USB串口的硬件流量控制问题
  • ¥15 SQL数据自动生成问题
  • ¥15 设密码后无法访问他人的共享文件
  • ¥15 浏览器打不开学校网页
  • ¥100 android开发打不开相册,不弹出授权信息,请问怎么解决?
  • ¥15 我想通过python处理sybase IQ库的一些数据,但是不知道sybase IQ库怎么连接,之前连接都是用linux上的 dbisql
  • ¥15 安装llama-cpp-python==0.1.83失败
  • ¥20 管道轴向耦合水击问题
  • ¥60 补全networkx TODO部分。