How to trigger table creation for ACE + Jugglingdb + mysql

JP Rowan August 21, 2017
I'm trying to use ace + mysql, and finding even though I'm connecting, its not actually triggering creating tables on startup.
Is there something I can do to trigger this behavior? for sqlite it seems to auto create tables.
 
Unhandled error: Error: ER_NO_SUCH_TABLE: Table 'ebdb.AddonSettings' doesn't exist

at Query.Sequence._packetToError (/var/app/current/node_modules/mysql/lib/protocol/sequences/Sequence.js:52:14)

at Query.ErrorPacket (/var/app/current/node_modules/mysql/lib/protocol/sequences/Query.js:77:18)

at Protocol._parsePacket (/var/app/current/node_modules/mysql/lib/protocol/Protocol.js:279:23)

at Parser.write (/var/app/current/node_modules/mysql/lib/protocol/Parser.js:76:12)

at Protocol.write (/var/app/current/node_modules/mysql/lib/protocol/Protocol.js:39:16)

at Socket.<anonymous> (/var/app/current/node_modules/mysql/lib/Connection.js:103:28)

at emitOne (events.js:115:13)

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

at addChunk (_stream_readable.js:252:12)

at readableAddChunk (_stream_readable.js:239:11)

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

at TCP.onread (net.js:589:20)

--------------------

at Protocol._enqueue (/var/app/current/node_modules/mysql/lib/protocol/Protocol.js:145:48)

at Connection.query (/var/app/current/node_modules/mysql/lib/Connection.js:208:25)

at MySQL.query (/var/app/current/node_modules/jugglingdb-mysql/lib/mysql.js:150:17)

at MySQL.<anonymous> (/var/app/current/node_modules/jugglingdb-mysql/lib/mysql.js:143:18)

at emitNone (events.js:105:13)

at Schema.emit (events.js:207:7)

at Schema.<anonymous> (/var/app/current/node_modules/jugglingdb/lib/schema.js:121:14)

at Query._callback (/var/app/current/node_modules/jugglingdb-mysql/lib/mysql.js:80:29)

at Query.Sequence.end (/var/app/current/node_modules/mysql/lib/protocol/sequences/Sequence.js:88:24)

at Query._handleFinalResultPacket (/var/app/current/node_modules/mysql/lib/protocol/sequences/Query.js:139:8)

at Query.OkPacket (/var/app/current/node_modules/mysql/lib/protocol/sequences/Query.js:72:10)

at Protocol._parsePacket (/var/app/current/node_modules/mysql/lib/protocol/Protocol.js:279:23)

at Parser.write (/var/app/current/node_modules/mysql/lib/protocol/Parser.js:76:12)

at Protocol.write (/var/app/current/node_modules/mysql/lib/protocol/Protocol.js:39:16)

at Socket.<anonymous> (/var/app/current/node_modules/mysql/lib/Connection.js:103:28)

at emitOne (events.js:115:13)

0 answers

Suggest an answer

Log in or Sign up to answer