pgloader from mySql: How to interpret the Error and what to fix
pgloader version "3.5.2"
pgloader --debug --verbose mysql://root:password@localhost/acorn-db postgresql:///acornt
The outcome:
sb-impl::*default-external-format* :UTF-8
tmpdir: #P"/var/folders/bh/86p1yw5d4zj0m547x5m3swcc0000gn/T/"
2018-12-15T02:59:11.016000Z NOTICE Starting pgloader, log system is ready.
2018-12-15T02:59:11.023000Z INFO Starting monitor
2018-12-15T02:59:11.062000Z DEBUG CONNECTED TO #<PGLOADER.PGSQL:PGSQL-CONNECTION pgsql://pavelkrotov@UNIX:5432/acornt {1005754E93}>
2018-12-15T02:59:11.062000Z DEBUG SET client_encoding TO 'utf8'
2018-12-15T02:59:11.062000Z DEBUG SET application_name TO 'pgloader'
2018-12-15T02:59:11.068000Z LOG Migrating from #<MYSQL-CONNECTION mysql://root@localhost:3306/acorn-db {1005611A83}>
2018-12-15T02:59:11.068000Z LOG Migrating into #<PGSQL-CONNECTION pgsql://pavelkrotov@UNIX:5432/acornt {1005754E93}>
KABOOM!
FATAL error: 76 fell through ECASE expression.
Wanted one of (2 3 4 5 6 8 9 10 11 14 15 17 20 21 23 27 28 30 31
32 33 35 41 42 45 46 47 48 49 50 51 52 54 55 56 60
61 62 63 64 65 69 72 77 78 79 82 83 87 90 92 93 94
95 96 97 98 101 102 103 104 105 106 107 108 109 110
111 112 113 114 115 116 117 118 119 120 121 122 123
124 128 129 130 131 132 133 134 135 136 137 138 139
140 141 142 143 144 145 146 147 148 149 150 151 159
160 161 162 163 164 165 166 167 168 169 170 171 172
173 174 175 176 177 178 179 180 181 182 183 192 193
194 195 196 197 198 199 200 201 202 203 204 205 206
207 208 209 210 211 212 213 214 215 223 224 225 226
227 228 229 230 231 232 233 234 235 236 237 238 239
240 241 242 243 244 245 246 247 254).
Date/time: 2018-12-14-21:59An unhandled error condition has been signalled:
76 fell through ECASE expression.
Wanted one of (2 3 4 5 6 8 9 10 11 14 15 17 20 21
23 27 28 30 31 32 33 35 41 42 45
46 47 48 49 50 51 52 54 55 56 60
61 62 63 64 65 69 72 77 78 79 82
83 87 90 92 93 94 95 96 97 98 101
102 103 104 105 106 107 108 109
110 111 112 113 114 115 116 117
118 119 120 121 122 123 124 128
129 130 131 132 133 134 135 136
137 138 139 140 141 142 143 144
145 146 147 148 149 150 151 159
160 161 162 163 164 165 166 167
168 169 170 171 172 173 174 175
176 177 178 179 180 181 182 183
192 193 194 195 196 197 198 199
200 201 202 203 204 205 206 207
208 209 210 211 212 213 214 215
223 224 225 226 227 228 229 230
231 232 233 234 235 236 237 238
239 240 241 242 243 244 245 246
247 254).
Backtrace for: #<SB-THREAD:THREAD "main thread" RUNNING {10005905B3}>
0: (TRIVIAL-BACKTRACE:PRINT-BACKTRACE-TO-STREAM #<SB-IMPL::STRING-OUTPUT-STREAM {1006FA5FC3}>)
1: (TRIVIAL-BACKTRACE:PRINT-BACKTRACE #<SB-KERNEL:CASE-FAILURE expected-type: (MEMBER 2 3 4 5 6 8 9 10 11 14 15 17 20 21 23 27 28 30 31 32 33 35 41 42 45 46 ..) datum: 76> :OUTPUT NIL :IF-EXISTS :APPEND :VERBOSE NIL)
2: ((FLET "H0" :IN PGLOADER::MAIN) #<SB-KERNEL:CASE-FAILURE expected-type: (MEMBER 2 3 4 5 6 8 9 10 11 14 15 17 20 21 23 27 28 30 31 32 33 35 41 42 45 46 ..) datum: 76>)
3: (SB-KERNEL::%SIGNAL #<SB-KERNEL:CASE-FAILURE expected-type: (MEMBER 2 3 4 5 6 8 9 10 11 14 15 17 20 21 23 27 28 30 31 32 33 35 41 42 45 46 ..) datum: 76>)
4: (ERROR SB-KERNEL:CASE-FAILURE :NAME ECASE :DATUM 76 :EXPECTED-TYPE (MEMBER 2 3 4 5 6 8 9 10 11 14 15 17 20 21 23 27 28 30 31 32 33 35 41 42 45 46 47 48 49 50 51 52 54 55 56 60 61 62 63 64 65 69 72 77 78 79 82 83 87 90 92 93 94 95 96 97 98 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 254) :POSSIBILITIES (2 3 4 5 6 8 9 10 11 14 15 17 20 21 23 27 28 30 31 32 33 35 41 42 45 46 47 48 49 50 51 52 54 55 56 60 61 62 63 64 65 69 72 77 78 79 82 83 87 90 92 93 94 95 96 97 98 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 254))
5: (QMYND-IMPL::MYSQL-CS-COLL-TO-CHARACTER-ENCODING 76)
6: (QMYND-IMPL::PARSE-TEXT-PROTOCOL-RESULT-COLUMN-AS-TEXT #(65 117 100 105 116 84 114 97 105 108) #S(QMYND-IMPL::COLUMN-DEFINITION-V41-PACKET :CATALOG "def" :SCHEMA "" :TABLE "c" :ORG-TABLE "" :NAME "TABLE_NAME" :ORG-NAME "TABLE_NAME" :CS-COLL 76 :COLUMN-LENGTH 192 :TYPE 253 :FLAGS 0 :DECIMALS 0 :DEFAULT-VALUE NIL))
7: (QMYND-IMPL::PARSE-RESULTSET-ROW-AS-TEXT-LIST 9 #<unavailable argument>)
8: (QMYND-IMPL:PARSE-RESULTSET-ROWS 9 #(#S(QMYND-IMPL::COLUMN-DEFINITION-V41-PACKET :CATALOG "def" :SCHEMA "" :TABLE "c" :ORG-TABLE "" :NAME "TABLE_NAME" :ORG-NAME "TABLE_NAME" :CS-COLL 76 :COLUMN-LENGTH 192 :TYPE 253 :FLAGS 0 :DECIMALS 0 :DEFAULT-VALUE NIL) #S(QMYND-IMPL::COLUMN-DEFINITION-V41-PACKET :CATALOG "def" :SCHEMA "" :TABLE "t" :ORG-TABLE "" :NAME "TABLE_COMMENT" :ORG-NAME "TABLE_COMMENT" :CS-COLL 33 :COLUMN-LENGTH 768 :TYPE 253 :FLAGS 0 :DECIMALS 0 :DEFAULT-VALUE NIL) #S(QMYND-IMPL::COLUMN-DEFINITION-V41-PACKET :CATALOG "def" :SCHEMA "" :TABLE "c" :ORG-TABLE "" :NAME "COLUMN_NAME" :ORG-NAME "COLUMN_NAME" :CS-COLL 76 :COLUMN-LENGTH 192 :TYPE 253 :FLAGS 0 :DECIMALS 0 :DEFAULT-VALUE NIL) #S(QMYND-IMPL::COLUMN-DEFINITION-V41-PACKET :CATALOG "def" :SCHEMA "" :TABLE "c" :ORG-TABLE "" :NAME "COLUMN_COMMENT" :ORG-NAME "COLUMN_COMMENT" :CS-COLL 83 :COLUMN-LENGTH 6144 :TYPE 252 :FLAGS 145 :DECIMALS 0 :DEFAULT-VALUE NIL) #S(QMYND-IMPL::COLUMN-DEFINITION-V41-PACKET :CATALOG "def" :SCHEMA "" :TABLE "c" :ORG-TABLE "" :NAME "DATA_TYPE" :ORG-NAME "DATA_TYPE" :CS-COLL 83 :COLUMN-LENGTH 50331645 :TYPE 252 :FLAGS 144 :DECIMALS 0 :DEFAULT-VALUE NIL) #S(QMYND-IMPL::COLUMN-DEFINITION-V41-PACKET :CATALOG "def" :SCHEMA "mysql" :TABLE "c" :ORG-TABLE "columns" :NAME "COLUMN_TYPE" :ORG-NAME "COLUMN_TYPE" :CS-COLL 83 :COLUMN-LENGTH 16777215 :TYPE 252 :FLAGS 4241 :DECIMALS 0 :DEFAULT-VALUE NIL) #S(QMYND-IMPL::COLUMN-DEFINITION-V41-PACKET :CATALOG "def" :SCHEMA "mysql" :TABLE "c" :ORG-TABLE "columns" :NAME "COLUMN_DEFAULT" :ORG-NAME "COLUMN_DEFAULT" :CS-COLL 83 :COLUMN-LENGTH 65535 :TYPE 252 :FLAGS 144 :DECIMALS 0 :DEFAULT-VALUE NIL) #S(QMYND-IMPL::COLUMN-DEFINITION-V41-PACKET :CATALOG "def" :SCHEMA "" :TABLE "c" :ORG-TABLE "" :NAME "IS_NULLABLE" :ORG-NAME "IS_NULLABLE" :CS-COLL 33 :COLUMN-LENGTH 9 :TYPE 253 :FLAGS 1 :DECIMALS 0 :DEFAULT-VALUE NIL) #S(QMYND-IMPL::COLUMN-DEFINITION-V41-PACKET :CATALOG "def" :SCHEMA "" :TABLE "c" :ORG-TABLE "" :NAME "EXTRA" :ORG-NAME "EXTRA" :CS-COLL 83 :COLUMN-LENGTH 180 :TYPE 253 :FLAGS 128 :DECIMALS 0 :DEFAULT-VALUE NIL)) :AS-TEXT T :RESULT-TYPE LIST)
9: (QMYND-IMPL:SEND-COMMAND-QUERY #<(SIMPLE-BASE-STRING 650) -- params: db-name
-- table-type-name
-- only-tables
-- only-tables
-- including
-- filter-list-to-where-clause incuding
-- excluding
-- filter-... {1006EA2CFF}> :ROW-FN NIL :AS-TEXT T :RESULT-TYPE LIST)
10: (QMYND:MYSQL-QUERY #<QMYND-IMPL::MYSQL-INET-CONNECTION {10069354F3}> #<(SIMPLE-BASE-STRING 650) -- params: db-name
-- table-type-name
-- only-tables
-- only-tables
-- including
-- filter-list-to-where-clause incuding
-- excluding
-- filter-... {1006EA2CFF}> :ROW-FN NIL :AS-TEXT T :RESULT-TYPE LIST)
11: (PGLOADER.SOURCE.MYSQL::LIST-ALL-COLUMNS #1=#S(PGLOADER.CATALOG:SCHEMA :SOURCE-NAME #2="acorn-db" :NAME "\"acorn-db\"" :CATALOG #S(PGLOADER.CATALOG:CATALOG :NAME #2# :SCHEMA-LIST (#1#) :TYPES-WITHOUT-BTREE NIL) :TABLE-LIST NIL :VIEW-LIST NIL :IN-SEARCH-PATH T) :TABLE-TYPE :TABLE :ONLY-TABLES NIL :INCLUDING NIL :EXCLUDING NIL)
12: ((:METHOD PGLOADER.SOURCES:FETCH-METADATA (PGLOADER.SOURCE.MYSQL:COPY-MYSQL PGLOADER.CATALOG:CATALOG)) #<PGLOADER.SOURCE.MYSQL:COPY-MYSQL {100615E843}> #1=#S(PGLOADER.CATALOG:CATALOG :NAME #2="acorn-db" :SCHEMA-LIST (#S(PGLOADER.CATALOG:SCHEMA :SOURCE-NAME #2# :NAME "\"acorn-db\"" :CATALOG #1# :TABLE-LIST NIL :VIEW-LIST NIL :IN-SEARCH-PATH T)) :TYPES-WITHOUT-BTREE NIL) :MATERIALIZE-VIEWS NIL :ONLY-TABLES NIL :CREATE-INDEXES T :FOREIGN-KEYS T :INCLUDING NIL :EXCLUDING NIL) [fast-method]
13: ((:METHOD PGLOADER.LOAD:COPY-DATABASE (PGLOADER.SOURCES:DB-COPY)) #<PGLOADER.SOURCE.MYSQL:COPY-MYSQL {100615E843}> :ON-ERROR-STOP T :WORKER-COUNT 4 :CONCURRENCY 1 :MULTIPLE-READERS NIL :MAX-PARALLEL-CREATE-INDEX NIL :TRUNCATE NIL :DISABLE-TRIGGERS NIL :DATA-ONLY NIL :SCHEMA-ONLY NIL :CREATE-SCHEMAS T :CREATE-TABLES T :INCLUDE-DROP T :DROP-SCHEMA NIL :CREATE-INDEXES T :INDEX-NAMES :UNIQUIFY :RESET-SEQUENCES T :FOREIGN-KEYS T :REINDEX NIL :ONLY-TABLES NIL :INCLUDING NIL :EXCLUDING NIL :SET-TABLE-OIDS T :ALTER-TABLE NIL :ALTER-SCHEMA NIL :MATERIALIZE-VIEWS NIL) [fast-method]
14: ((LAMBDA ()))
15: (PGLOADER:RUN-COMMANDS (LAMBDA NIL (LET* ((PGLOADER.SOURCES:*DEFAULT-CAST-RULES* (QUOTE ((:SOURCE (:TYPE #1="int" :AUTO-INCREMENT T :TYPEMOD (< PGLOADER.TRANSFORMS:PRECISION 10)) :TARGET (:TYPE #2="serial")) (:SOURCE (:TYPE #1# :AUTO-INCREMENT T :TYPEMOD (<= 10 PGLOADER.TRANSFORMS:PRECISION)) :TARGET (:TYPE #3="bigserial")) (:SOURCE (:TYPE #1# :AUTO-INCREMENT NIL :TYPEMOD (< PGLOADER.TRANSFORMS:PRECISION 10)) :TARGET (:TYPE #1#)) (:SOURCE (:TYPE #1# :AUTO-INCREMENT NIL :TYPEMOD (<= 10 PGLOADER.TRANSFORMS:PRECISION)) :TARGET (:TYPE #4="bigint")) (:SOURCE (:TYPE #5="tinyint" :AUTO-INCREMENT T) :TARGET (:TYPE #2#)) (:SOURCE (:TYPE #6="smallint" :AUTO-INCREMENT T) :TARGET (:TYPE #2#)) (:SOURCE (:TYPE #7="mediumint" :AUTO-INCREMENT T) :TARGET (:TYPE #2#)) (:SOURCE (:TYPE #4# :AUTO-INCREMENT T) :TARGET (:TYPE #3#)) (:SOURCE (:TYPE #5# :TYPEMOD (= 1 PGLOADER.TRANSFORMS:PRECISION)) :TARGET (:TYPE #8="boolean" :DROP-TYPEMOD T) :USING PGLOADER.TRANSFORMS::TINYINT-TO-BOOLEAN) (:SOURCE (:TYPE "bit" :TYPEMOD (= 1 PGLOADER.TRANSFORMS:PRECISION)) :TARGET (:TYPE #8# :DROP-TYPEMOD T) :USING PGLOADER.TRANSFORMS::BITS-TO-BOOLEAN) (:SOURCE (:TYPE #4# :TYPEMOD (< 19 PGLOADER.TRANSFORMS:PRECISION)) :TARGET (:TYPE #9="numeric" :DROP-TYPEMOD T)) (:SOURCE (:TYPE #5# :UNSIGNED T) :TARGET (:TYPE #6# :DROP-TYPEMOD T)) (:SOURCE (:TYPE #6# :UNSIGNED T) :TARGET (:TYPE #10="integer" :DROP-TYPEMOD T)) (:SOURCE (:TYPE #7# :UNSIGNED T) :TARGET (:TYPE #10# :DROP-TYPEMOD T)) (:SOURCE (:TYPE #10# :UNSIGNED T) :TARGET (:TYPE #4# :DROP-TYPEMOD T)) (:SOURCE (:TYPE #5#) :TARGET (:TYPE #6# :DROP-TYPEMOD T)) (:SOURCE (:TYPE #6#) :TARGET (:TYPE #6# :DROP-TYPEMOD T)) (:SOURCE (:TYPE #7#) :TARGET (:TYPE #10# :DROP-TYPEMOD T)) (:SOURCE (:TYPE #10#) :TARGET (:TYPE #10# :DROP-TYPEMOD T)) (:SOURCE (:TYPE #11="float") :TARGET (:TYPE #11# :DROP-TYPEMOD T)) (:SOURCE (:TYPE #4#) :TARGET (:TYPE #4# :DROP-TYPEMOD T)) (:SOURCE (:TYPE "double") :TARGET (:TYPE "double precision" :DROP-TYPEMOD T)) (:SOURCE (:TYPE #9#) :TARGET (:TYPE #9# :DROP-TYPEMOD NIL)) (:SOURCE (:TYPE #12="decimal") :TARGET (:TYPE #12# :DROP-TYPEMOD NIL)) (:SOURCE (:TYPE "tinytext") :TARGET (:TYPE #13="text") :USING PGLOADER.TRANSFORMS::REMOVE-NULL-CHARACTERS) (:SOURCE (:TYPE #13#) :TARGET (:TYPE #13#) :USING PGLOADER.TRANSFORMS::REMOVE-NULL-CHARACTERS) (:SOURCE (:TYPE "mediumtext") :TARGET (:TYPE #13#) :USING PGLOADER.TRANSFORMS::REMOVE-NULL-CHARACTERS) (:SOURCE (:TYPE "longtext") :TARGET (:TYPE #13#) :USING PGLOADER.TRANSFORMS::REMOVE-NULL-CHARACTERS) (:SOURCE (:TYPE #14="varchar") :TARGET (:TYPE #14# :DROP-TYPEMOD NIL) :USING PGLOADER.TRANSFORMS::REMOVE-NULL-CHARACTERS) (:SOURCE (:TYPE #15="char") :TARGET (:TYPE #15# :DROP-TYPEMOD NIL) :USING PGLOADER.TRANSFORMS::REMOVE-NULL-CHARACTERS) (:SOURCE (:TYPE "binary") :TARGET (:TYPE #16="bytea") :USING PGLOADER.TRANSFORMS::BYTE-VECTOR-TO-BYTEA) (:SOURCE (:TYPE "varbinary") :TARGET (:TYPE #16#) :USING PGLOADER.TRANSFORMS::BYTE-VECTOR-TO-BYTEA) (:SOURCE (:TYPE "tinyblob") :TARGET (:TYPE #16#) :USING PGLOADER.TRANSFORMS::BYTE-VECTOR-TO-BYTEA) (:SOURCE (:TYPE "blob") :TARGET (:TYPE #16#) :USING PGLOADER.TRANSFORMS::BYTE-VECTOR-TO-BYTEA) (:SOURCE (:TYPE "mediumblob") :TARGET (:TYPE #16#) :USING PGLOADER.TRANSFORMS::BYTE-VECTOR-TO-BYTEA) (:SOURCE (:TYPE "longblob") :TARGET (:TYPE #16#) :USING PGLOADER.TRANSFORMS::BYTE-VECTOR-TO-BYTEA) (:SOURCE (:TYPE #17="datetime" :DEFAULT #18="0000-00-00 00:00:00" :NOT-NULL T) :TARGET (:TYPE #19="timestamptz" :DROP-DEFAULT T :DROP-NOT-NULL T) :USING PGLOADER.TRANSFORMS::ZERO-DATES-TO-NULL) (:SOURCE (:TYPE #17# :DEFAULT #18#) :TARGET (:TYPE #19# :DROP-DEFAULT T) :USING PGLOADER.TRANSFORMS::ZERO-DATES-TO-NULL) (:SOURCE (:TYPE #17# :ON-UPDATE-CURRENT-TIMESTAMP T :NOT-NULL T) :TARGET (:TYPE #19# :DROP-DEFAULT T :DROP-NOT-NULL T) :USING PGLOADER.TRANSFORMS::ZERO-DATES-TO-NULL) (:SOURCE (:TYPE #20="timestamp" :DEFAULT #18# :NOT-NULL T) :TARGET (:TYPE #19# :DROP-DEFAULT T :DROP-NOT-NULL T) :USING PGLOADER.TRANSFORMS::ZERO-DATES-TO-NULL) (:SOURCE (:TYPE #20# :DEFAULT #18#) :TARGET (:TYPE #19# :DROP-DEFAULT T) :USING PGLOADER.TRANSFORMS::ZERO-DATES-TO-NULL) (:SOURCE (:TYPE #20# :ON-UPDATE-CURRENT-TIMESTAMP T :NOT-NULL T) :TARGET (:TYPE #19# :DROP-DEFAULT T :DROP-NOT-NULL T) :USING PGLOADER.TRANSFORMS::ZERO-DATES-TO-NULL) (:SOURCE (:TYPE #21="date" :DEFAULT "0000-00-00") :TARGET (:TYPE #21# :DROP-DEFAULT T) :USING PGLOADER.TRANSFORMS::ZERO-DATES-TO-NULL) (:SOURCE (:TYPE #21#) :TARGET (:TYPE #21#)) (:SOURCE (:TYPE "year") :TARGET (:TYPE #10# :DROP-TYPEMOD T)) (:SOURCE (:TYPE #17#) :TARGET (:TYPE #19#) :USING PGLOADER.TRANSFORMS::ZERO-DATES-TO-NULL) (:SOURCE (:TYPE #20#) :TARGET (:TYPE #19#) :USING PGLOADER.TRANSFORMS::ZERO-DATES-TO-NULL) (:SOURCE (:TYPE "enum") :TARGET (:TYPE #22=#<FUNCTION PGLOADER.SOURCE.MYSQL::ENUM-OR-SET-NAME>)) (:SOURCE (:TYPE "set") :TARGET (:TYPE #22#) :USING PGLOADER.TRANSFORMS::SET-TO-ENUM-ARRAY) (:SOURCE (:TYPE "geometry") :TARGET (:TYPE #23="point") :USING PGLOADER.TRANSFORMS::CONVERT-MYSQL-POINT) (:SOURCE (:TYPE #23#) :TARGET (:TYPE #23#) :USING PGLOADER.TRANSFORMS::CONVERT-MYSQL-POINT) (:SOURCE (:TYPE "linestring") :TARGET (:TYPE "path") :USING PGLOADER.TRANSFORMS::CONVERT-MYSQL-LINESTRING)))) (PGLOADER.SOURCES:*CAST-RULES* (QUOTE NIL)) (PGLOADER.SOURCE.MYSQL:*DECODING-AS* (QUOTE NIL)) (PGLOADER.PARAMS:*MYSQL-SETTINGS* (QUOTE NIL)) (PGLOADER.PARAMS:ON-ERROR-STOP (GETF (QUOTE NIL) :ON-ERROR-STOP T)) (PGLOADER.PARAMS:*PG-SETTINGS* (PGLOADER.PGSQL:SANITIZE-USER-GUCS (QUOTE NIL))) (PGLOADER.PARAMS:*PGSQL-RESERVED-KEYWORDS* (PGLOADER.PGSQL:LIST-RESERVED-KEYWORDS #24=#<PGLOADER.PGSQL:PGSQL-CONNECTION pgsql://pavelkrotov@UNIX:5432/acornt {1005754E93}>)) (PGLOADER.PARAMS:*COPY-BATCH-ROWS* (OR NIL PGLOADER.PARAMS:*COPY-BATCH-ROWS*)) (PGLOADER.PARAMS:*COPY-BATCH-SIZE* (OR NIL PGLOADER.PARAMS:*COPY-BATCH-SIZE*)) (PGLOADER.PARAMS:*PREFETCH-ROWS* (OR NIL PGLOADER.PARAMS:*PREFETCH-ROWS*)) (PGLOADER.PARAMS:*ROWS-PER-RANGE* (OR NIL PGLOADER.PARAMS:*ROWS-PER-RANGE*)) (PGLOADER.PARAMS:*IDENTIFIER-CASE* (OR NIL PGLOADER.PARAMS:*IDENTIFIER-CASE*)) (PGLOADER.PARSER::SOURCE (MAKE-INSTANCE (QUOTE PGLOADER.SOURCE.MYSQL:COPY-MYSQL) :TARGET-DB #24# :SOURCE-DB #<PGLOADER.SOURCE.MYSQL:MYSQL-CONNECTION mysql://root@localhost:3306/acorn-db {1005611A83}>))) NIL (PGLOADER.LOAD:COPY-DATABASE PGLOADER.PARSER::SOURCE :INCLUDING (QUOTE NIL) :EXCLUDING (QUOTE NIL) :MATERIALIZE-VIEWS (QUOTE NIL) :ALTER-TABLE (QUOTE NIL) :ALTER-SCHEMA (QUOTE NIL) :SET-TABLE-OIDS T :ON-ERROR-STOP PGLOADER.PARAMS:ON-ERROR-STOP) NIL)) :START-LOGGER NIL :FLUSH-SUMMARY T :SUMMARY NIL :LOG-FILENAME NIL :LOG-MIN-MESSAGES NIL :CLIENT-MIN-MESSAGES NIL)
16: (PGLOADER:LOAD-DATA :FROM #<PGLOADER.SOURCE.MYSQL:MYSQL-CONNECTION mysql://root@localhost:3306/acorn-db {1005611A83}> :INTO #<PGLOADER.PGSQL:PGSQL-CONNECTION pgsql://pavelkrotov@UNIX:5432/acornt {1005754E93}> :ENCODING :UTF-8 :FIELDS NIL :TARGET-TABLE-NAME NIL :OPTIONS NIL :GUCS NIL :CASTS NIL :BEFORE NIL :AFTER NIL :START-LOGGER NIL :FLUSH-SUMMARY T)
17: (PGLOADER.MONITOR::CALL-WITH-MONITOR #<CLOSURE (LAMBDA NIL :IN PGLOADER::MAIN) {10053069DB}>)
18: (PGLOADER::MAIN ("pgloader" "--debug" "--verbose" "mysql://root:password@localhost/acorn-db" "postgresql:///acornt"))
19: ((LAMBDA NIL :IN "/private/tmp/pgloader-20180705-16956-54q8li/pgloader-3.5.2/dumper-2SKVI5f7.lisp"))
20: ((FLET SB-UNIX::BODY :IN SAVE-LISP-AND-DIE))
21: ((FLET "WITHOUT-INTERRUPTS-BODY-36" :IN SAVE-LISP-AND-DIE))
22: ((LABELS SB-IMPL::RESTART-LISP :IN SAVE-LISP-AND-DIE))
2018-12-15T02:59:11.150000Z DEBUG CONNECTED TO #<MYSQL-CONNECTION mysql://root@localhost:3306/acorn-db {1005611A83}>
2018-12-15T02:59:11.150000Z SQL MySQL: sending query: -- params: db-name
-- table-type-name
-- only-tables
-- only-tables
-- including
-- filter-list-to-where-clause incuding
-- excluding
-- filter-list-to-where-clause excluding
select c.table_name, t.table_comment,
c.column_name, c.column_comment,
c.data_type, c.column_type, c.column_default,
c.is_nullable, c.extra
from information_schema.columns c
join information_schema.tables t using(table_schema, table_name)
where c.table_schema = 'acorn-db' and t.table_type = 'BASE TABLE'
order by table_name, ordinal_position;
2018-12-15T02:59:11.150000Z INFO Stopping monitor
What I am doing here?
76 fell through ECASE expression.
Wanted one of (2 3 4 5 6 8 9 10 11 14 15 17 20 21 23 27 28 30 31 32 33 35 41 42
45 46 47 48 49 50 51 52 54 55 56 60 61 62 63 64 65 69 72 77 78
79 82 83 87 90 92 93 94 95 96 97 98 101 102 103 104 105 106 107
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
124 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
143 144 145 146 147 148 149 150 151 159 160 161 162 163 164 165
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
182 183 192 193 194 195 196 197 198 199 200 201 202 203 204 205
206 207 208 209 210 211 212 213 214 215 223 224 225 226 227 228
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244
245 246 247 254).
If I had to bet... which I have to here... well I would say that the number 76 here refers to a MySQL charset that is not implemented in the Qmynd driver:
https://github.com/qitab/qmynd/blob/master/src/common/charsets.lisp#L97
Can you find which charset your MySQL database is using, and if 76 find some documentation as to what is this charset is expected to be?
CHARSET=utf8 Thank you very much, Dimitry, for the reply. I looked into one of the tables in the mySql database and that what might be related to the charset and possible problesm in conversion, or not?
ENGINE=InnoDB AUTO_INCREMENT=10080 DEFAULT CHARSET=utf8 PACK_KEYS=0
Sent fromMail Pilot(https://mailpilothq.com/)
Please try to use the DECODE AS clause in your pgloader command. Can you find authoritative documentation about charset 76 in MySQL being UTF-8 so that I might add that to the MySQL driver?
..I cannot see 76 in charset of the mysql db. yet, I got the charset for the entire db
"armscii8" "ARMSCII-8 Armenian" "armscii8_general_ci" 1
"ascii" "US ASCII" "ascii_general_ci" 1
"big5" "Big5 Traditional Chinese" "big5_chinese_ci" 2
"binary" "Binary pseudo charset" "binary" 1
"cp1250" "Windows Central European" "cp1250_general_ci" 1
"cp1251" "Windows Cyrillic" "cp1251_general_ci" 1
"cp1256" "Windows Arabic" "cp1256_general_ci" 1
"cp1257" "Windows Baltic" "cp1257_general_ci" 1
"cp850" "DOS West European" "cp850_general_ci" 1
"cp852" "DOS Central European" "cp852_general_ci" 1
"cp866" "DOS Russian" "cp866_general_ci" 1
"cp932" "SJIS for Windows Japanese" "cp932_japanese_ci" 2
"dec8" "DEC West European" "dec8_swedish_ci" 1
"eucjpms" "UJIS for Windows Japanese" "eucjpms_japanese_ci" 3
"euckr" "EUC-KR Korean" "euckr_korean_ci" 2
"gb18030" "China National Standard GB18030" "gb18030_chinese_ci" 4
"gb2312" "GB2312 Simplified Chinese" "gb2312_chinese_ci" 2
"gbk" "GBK Simplified Chinese" "gbk_chinese_ci" 2
"geostd8" "GEOSTD8 Georgian" "geostd8_general_ci" 1
"greek" "ISO 8859-7 Greek" "greek_general_ci" 1
"hebrew" "ISO 8859-8 Hebrew" "hebrew_general_ci" 1
"hp8" "HP West European" "hp8_english_ci" 1
"keybcs2" "DOS Kamenicky Czech-Slovak" "keybcs2_general_ci" 1
"koi8r" "KOI8-R Relcom Russian" "koi8r_general_ci" 1
"koi8u" "KOI8-U Ukrainian" "koi8u_general_ci" 1
"latin1" "cp1252 West European" "latin1_swedish_ci" 1
"latin2" "ISO 8859-2 Central European" "latin2_general_ci" 1
"latin5" "ISO 8859-9 Turkish" "latin5_turkish_ci" 1
"latin7" "ISO 8859-13 Baltic" "latin7_general_ci" 1
"macce" "Mac Central European" "macce_general_ci" 1
"macroman" "Mac West European" "macroman_general_ci" 1
"sjis" "Shift-JIS Japanese" "sjis_japanese_ci" 2
"swe7" "7bit Swedish" "swe7_swedish_ci" 1
"tis620" "TIS620 Thai" "tis620_thai_ci" 1
"ucs2" "UCS-2 Unicode" "ucs2_general_ci" 2
"ujis" "EUC-JP Japanese" "ujis_japanese_ci" 3
"utf16" "UTF-16 Unicode" "utf16_general_ci" 4
"utf16le" "UTF-16LE Unicode" "utf16le_general_ci" 4
"utf32" "UTF-32 Unicode" "utf32_general_ci" 4
"utf8" "UTF-8 Unicode" "utf8_general_ci" 3
"utf8mb4" "UTF-8 Unicode" "utf8mb4_0900_ai_ci" 4
How to include the DECODE AS clause in the command line as this
~ $ pgloader --debug --verbose mysql://root:password@localhost/acorn-db postgresql:///acornt
Please read the docs at https://pgloader.readthedocs.io/en/latest/ref/mysql.html#mysql-encoding-support and prepare a pgloader command file.
Hello,
Having similar issues. The charset of the mysql is utf8mb4_0900_ai_ci. I think they switch to this charset after Mysql 8.0.1.
https://www.monolune.com/what-is-the-utf8mb4_0900_ai_ci-collation/
..I have zero initial knowledge how to use - read the docs several times, does not help; took a while to figure out that the file with .load should be created as a alternative to the command line - > the same outcome. finally, tried do migrations just tables -- the same 'kaboom'. that is the .load file
LOAD DATABASE
FROM mysql://root:password@localhost/acorn-db
INTO postgresql:///pagila
WITH include drop, create tables, create indexes, reset sequences,
workers = 8, concurrency = 1,
multiple readers per thread, rows per range = 50000
SET PostgreSQL PARAMETERS
maintenance_work_mem to '128MB',
work_mem to '12MB',
search_path to 'sakila, public, "$user"'
SET MySQL PARAMETERS
net_read_timeout = '120',
net_write_timeout = '120'
CAST type bigint when (= precision 20) to bigserial drop typemod,
type date drop not null drop default using zero-dates-to-null,
-- including only table names matching ~/Formats/,
-- decoding table names matching ~/*/, ~/encoding/ AS utf8,
-- type tinyint to boolean using tinyint-to-boolean,
type year to integer;
See https://github.com/qitab/qmynd/commit/f25b134f570efae37d3296de2742c9d69fe0299c ; then make clean and make and you should be good to go.
2020-10-12T15:37:31.347000Z ERROR mysql: 76 fell through ECASE expression.
Wanted one of (2 3 4 5 6 8 9 10 11 14 15 17 20 21 23 27 28 30 31 32 33
35 41 42 45 46 47 48 49 50 51 52 54 55 56 60 61 62 63 64
65 69 72 77 78 79 82 83 87 90 92 93 94 95 96 97 98 101
102 103 104 105 106 107 108 109 110 111 112 113 114 115
116 117 118 119 120 121 122 123 124 128 129 130 131 132
133 134 135 136 137 138 139 140 141 142 143 144 145 146
147 148 149 150 151 159 160 161 162 163 164 165 166 167
168 169 170 171 172 173 174 175 176 177 178 179 180 181
182 183 192 193 194 195 196 197 198 199 200 201 202 203
204 205 206 207 208 209 210 211 212 213 214 215 223 224
225 226 227 228 229 230 231 232 233 234 235 236 237 238
239 240 241 242 243 244 245 246 247 254).
2020-10-12T15:37:31.348000Z LOG report summary reset
table name errors read imported bytes total time read write
----------------- --------- --------- --------- --------- -------------- --------- ---------
fetch meta data 0 0 0 0.000s
----------------- --------- --------- --------- --------- -------------- --------- ---------
----------------- --------- --------- --------- --------- -------------- --------- ---------
2020-10-12T15:37:31.393000Z INFO Stopping monitor
got these error in mysql 8.0.21 and pgloader version "3.6.2"
Sorry for the bother,
I saw that this error is resolved with the 3.6.1 verison but can someone explain how to upgrade it? The apt-get installs the 3.4 version which has this issue. Not sure how to upgrade it, I have downloaded the 3.6 one but yea, don't know how to upgrade it.
Sorry for the bother,
I saw that this error is resolved with the 3.6.1 verison but can someone explain how to upgrade it? The apt-get installs the 3.4 version which has this issue. Not sure how to upgrade it, I have downloaded the 3.6 one but yea, don't know how to upgrade it.
Best thing to do is open a new issue because this has nothing to do with this ticket ;)
You have to build from source : https://github.com/dimitri/pgloader#build-from-sources And the follow the : https://github.com/dimitri/pgloader#usage
Everything you have to know is in the README.md
I still have this issue with version 3.6.1, I thought it was resolved in this version?
2021-05-22T12:46:24.016000Z LOG pgloader version "3.6.1"
2021-05-22T12:46:24.061000Z LOG Migrating from #<MYSQL-CONNECTION mysql://root@localhost:3306/db {1005D87433}>
2021-05-22T12:46:24.062000Z LOG Migrating into #<PGSQL-CONNECTION pgsql://user@localhost:5432/db {1005ED2793}>
KABOOM!
FATAL error: 76 fell through ECASE expression.
Wanted one of (2 3 4 5 6 8 9 10 11 14 15 17 20 21 23 27 28 30 31
32 33 35 41 42 45 46 47 48 49 50 51 52 54 55 56 60
61 62 63 64 65 69 72 77 78 79 82 83 87 90 92 93 94
95 96 97 98 101 102 103 104 105 106 107 108 109 110
111 112 113 114 115 116 117 118 119 120 121 122 123
124 128 129 130 131 132 133 134 135 136 137 138 139
140 141 142 143 144 145 146 147 148 149 150 151 159
160 161 162 163 164 165 166 167 168 169 170 171 172
173 174 175 176 177 178 179 180 181 182 183 192 193
194 195 196 197 198 199 200 201 202 203 204 205 206
207 208 209 210 211 212 213 214 215 223 224 225 226
227 228 229 230 231 232 233 234 235 236 237 238 239
240 241 242 243 244 245 246 247 254).
It does work when building from source, but I thought it was kind of weird that it doesn't when using APT.
I encounter the same issue with version 3.6.2
2021-08-25T11:51:05.010000Z LOG pgloader version "3.6.2" 2021-08-25T11:51:05.079000Z LOG Migrating from #<MYSQL-CONNECTION mysql://{1006953803}> 2021-08-25T11:51:05.079000Z LOG Migrating into #<PGSQL-CONNECTION pgsql:// {10069551B3}> 2021-08-25T11:51:05.127000Z ERROR mysql: 76 fell through ECASE expression. Wanted one of (2 3 4 5 6 8 9 10 11 14 15 17 20 21 23 27 28 30 31 32 33 35 41 42 45 46 47 48 49 50 51 52 54 55 56 60 61 62 63 64 65 69 72 77 78 79 82 83 87 90 92 93 94 95 96 97 98 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 254). 2021-08-25T11:51:05.128000Z LOG report summary reset table name errors rows bytes total time
fetch meta data 0 0 0.000s
Same error, here the debug as reference:
$ pgloader --debug --verbose mysql://root@localhost/database postgresql:///database
pgloader version 3.6.2
compiled with SBCL 2.0.6.debian
sb-impl::*default-external-format* :UTF-8
tmpdir: #P"/tmp/pgloader/"
2021-09-20T10:32:15.006000Z NOTICE Starting pgloader, log system is ready.
2021-09-20T10:32:15.010000Z INFO Starting monitor
2021-09-20T10:32:15.012000Z LOG pgloader version "3.6.2"
2021-09-20T10:32:15.012000Z INFO SOURCE: "mysql://root@localhost/database"
2021-09-20T10:32:15.012000Z INFO SOURCE URI: #<PGLOADER.SOURCE.MYSQL:MYSQL-CONNECTION mysql://root@localhost:3306/database {1005429453}>
2021-09-20T10:32:15.012000Z INFO TARGET: "postgresql:///database"
2021-09-20T10:32:15.012000Z INFO TARGET URI: #<PGLOADER.PGSQL:PGSQL-CONNECTION pgsql://postgres@UNIX:5432/database {100557C093}>
2021-09-20T10:32:15.012000Z DEBUG LOAD DATA FROM #<PGLOADER.SOURCE.MYSQL:MYSQL-CONNECTION mysql://root@localhost:3306/database {1005429453}>
2021-09-20T10:32:15.022000Z DEBUG CONNECTED TO #<PGLOADER.PGSQL:PGSQL-CONNECTION pgsql://postgres@UNIX:5432/database {100557C093}>
2021-09-20T10:32:15.022000Z DEBUG SET client_encoding TO 'utf8'
2021-09-20T10:32:15.022000Z DEBUG SET application_name TO 'pgloader'
2021-09-20T10:32:15.029000Z LOG Migrating from #<MYSQL-CONNECTION mysql://root@localhost:3306/database {1005429453}>
2021-09-20T10:32:15.029000Z LOG Migrating into #<PGSQL-CONNECTION pgsql://postgres@UNIX:5432/database {100557C093}>
2021-09-20T10:32:15.052000Z DEBUG CONNECTED TO #<MYSQL-CONNECTION mysql://root@localhost:3306/database {1005429453}>
2021-09-20T10:32:15.055000Z SQL MySQL: sending query: -- params: db-name
-- table-type-name
-- only-tables
-- only-tables
-- including
-- filter-list-to-where-clause incuding
-- excluding
-- filter-list-to-where-clause excluding
select c.table_name, t.table_comment,
c.column_name, c.column_comment,
c.data_type, c.column_type, c.column_default,
c.is_nullable, c.extra
from information_schema.columns c
join information_schema.tables t using(table_schema, table_name)
where c.table_schema = 'database' and t.table_type = 'BASE TABLE'
order by table_name, ordinal_position;
2021-09-20T10:32:15.062000Z ERROR mysql: 76 fell through ECASE expression.
Wanted one of (2 3 4 5 6 8 9 10 11 14 15 17 20 21 23 27 28 30 31 32 33
35 41 42 45 46 47 48 49 50 51 52 54 55 56 60 61 62 63 64
65 69 72 77 78 79 82 83 87 90 92 93 94 95 96 97 98 101
102 103 104 105 106 107 108 109 110 111 112 113 114 115
116 117 118 119 120 121 122 123 124 128 129 130 131 132
133 134 135 136 137 138 139 140 141 142 143 144 145 146
147 148 149 150 151 159 160 161 162 163 164 165 166 167
168 169 170 171 172 173 174 175 176 177 178 179 180 181
182 183 192 193 194 195 196 197 198 199 200 201 202 203
204 205 206 207 208 209 210 211 212 213 214 215 223 224
225 226 227 228 229 230 231 232 233 234 235 236 237 238
239 240 241 242 243 244 245 246 247 254).
2021-09-20T10:32:15.062000Z LOG report summary reset
table name errors read imported bytes total time read write
----------------- --------- --------- --------- --------- -------------- --------- ---------
fetch meta data 0 0 0 0.000s
----------------- --------- --------- --------- --------- -------------- --------- ---------
----------------- --------- --------- --------- --------- -------------- --------- ---------
2021-09-20T10:32:15.080000Z INFO Stopping monitor
Thanks a lot for your work.
None :(
mysql> select c.table_name, t.table_comment, c.column_name, c.column_comment, c.data_type, c.column_type, c.column_default, c.is_nullable, c.extra from information_schema.columns c join information_schema.tables t using(table_schema, table_name) where c.table_schema = 'database' and t.table_type = 'BASE TABLE';
+-------------------+---------------+------------------------+----------------+-----------+----------------------+-------------------+-------------+-----------------------------------------------+
| TABLE_NAME | TABLE_COMMENT | COLUMN_NAME | COLUMN_COMMENT | DATA_TYPE | COLUMN_TYPE | COLUMN_DEFAULT | IS_NULLABLE | EXTRA |
+-------------------+---------------+------------------------+----------------+-----------+----------------------+-------------------+-------------+-----------------------------------------------+
| currency | | code | | varchar | varchar(255) | NULL | NO | |
| currency | | created_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED |
| currency | | id | | bigint | bigint unsigned | NULL | NO | auto_increment |
| currency | | name | | varchar | varchar(255) | NULL | NO | |
| currency | | platform_id | | bigint | bigint unsigned | NULL | NO | |
| currency | | precision | | tinyint | tinyint unsigned | NULL | NO | |
| currency | | symbol | | varchar | varchar(255) | NULL | NO | |
| currency | | trade | | tinyint | tinyint(1) | 0 | NO | |
| currency | | updated_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED on update CURRENT_TIMESTAMP |
| exchange | | created_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED |
| exchange | | exchange | | double | double unsigned | NULL | NO | |
| exchange | | id | | bigint | bigint unsigned | NULL | NO | auto_increment |
| exchange | | platform_id | | bigint | bigint unsigned | NULL | NO | |
| exchange | | product_id | | bigint | bigint unsigned | NULL | NO | |
| forecast | | created_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED |
| forecast | | id | | bigint | bigint unsigned | NULL | NO | auto_increment |
| forecast | | keys | | json | json | NULL | NO | |
| forecast | | order_id | | bigint | bigint unsigned | NULL | YES | |
| forecast | | platform_id | | bigint | bigint unsigned | NULL | NO | |
| forecast | | product_id | | bigint | bigint unsigned | NULL | NO | |
| forecast | | selected | | tinyint | tinyint(1) | 0 | NO | |
| forecast | | side | | varchar | varchar(255) | NULL | NO | |
| forecast | | updated_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED on update CURRENT_TIMESTAMP |
| forecast | | user_id | | bigint | bigint unsigned | NULL | NO | |
| forecast | | valid | | tinyint | tinyint(1) | 0 | NO | |
| forecast | | values | | json | json | NULL | NO | |
| forecast | | version | | smallint | smallint unsigned | NULL | NO | |
| forecast | | wallet_id | | bigint | bigint unsigned | NULL | YES | |
| ip_lock | | created_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED |
| ip_lock | | end_at | | datetime | datetime | NULL | YES | |
| ip_lock | | id | | bigint | bigint unsigned | NULL | NO | auto_increment |
| ip_lock | | ip | | varchar | varchar(255) | | NO | |
| ip_lock | | updated_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED on update CURRENT_TIMESTAMP |
| language | | default | | tinyint | tinyint(1) | 0 | NO | |
| language | | enabled | | tinyint | tinyint(1) | 0 | NO | |
| language | | id | | bigint | bigint unsigned | NULL | NO | auto_increment |
| language | | iso | | varchar | varchar(255) | NULL | NO | |
| language | | name | | varchar | varchar(255) | NULL | NO | |
| migrations | | batch | | int | int | NULL | NO | |
| migrations | | id | | int | int unsigned | NULL | NO | auto_increment |
| migrations | | migration | | varchar | varchar(255) | NULL | NO | |
| order | | amount | | double | double unsigned | 0 | NO | |
| order | | code | | varchar | varchar(255) | NULL | NO | |
| order | | created_at | | datetime | datetime | NULL | NO | |
| order | | fee | | double | double unsigned | 0 | NO | |
| order | | filled | | tinyint | tinyint(1) | 0 | NO | |
| order | | id | | bigint | bigint unsigned | NULL | NO | auto_increment |
| order | | platform_id | | bigint | bigint unsigned | NULL | NO | |
| order | | price | | double | double unsigned | 0 | NO | |
| order | | price_stop | | double | double unsigned | 0 | NO | |
| order | | product_id | | bigint | bigint unsigned | NULL | NO | |
| order | | side | | varchar | varchar(255) | NULL | NO | |
| order | | status | | varchar | varchar(255) | NULL | NO | |
| order | | type | | varchar | varchar(255) | NULL | NO | |
| order | | updated_at | | datetime | datetime | NULL | NO | |
| order | | user_id | | bigint | bigint unsigned | NULL | NO | |
| order | | value | | double | double unsigned | 0 | NO | |
| order | | wallet_id | | bigint | bigint unsigned | NULL | YES | |
| platform | | code | | varchar | varchar(255) | NULL | NO | |
| platform | | created_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED |
| platform | | enabled | | tinyint | tinyint(1) | 0 | NO | |
| platform | | fee | | double | double(5,3) unsigned | 0.000 | NO | |
| platform | | id | | bigint | bigint unsigned | NULL | NO | auto_increment |
| platform | | name | | varchar | varchar(255) | NULL | NO | |
| platform | | updated_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED on update CURRENT_TIMESTAMP |
| platform | | url | | varchar | varchar(255) | NULL | NO | |
| platform_user | | created_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED |
| platform_user | | id | | bigint | bigint unsigned | NULL | NO | auto_increment |
| platform_user | | platform_id | | bigint | bigint unsigned | NULL | NO | |
| platform_user | | settings | | json | json | NULL | YES | |
| platform_user | | updated_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED on update CURRENT_TIMESTAMP |
| platform_user | | user_id | | bigint | bigint unsigned | NULL | NO | |
| product | | acronym | | varchar | varchar(255) | NULL | NO | |
| product | | ask_price | | double | double unsigned | 0 | NO | |
| product | | ask_quantity | | double | double unsigned | 0 | NO | |
| product | | ask_sum | | double | double unsigned | 0 | NO | |
| product | | bid_price | | double | double unsigned | 0 | NO | |
| product | | bid_quantity | | double | double unsigned | 0 | NO | |
| product | | bid_sum | | double | double unsigned | 0 | NO | |
| product | | code | | varchar | varchar(255) | NULL | NO | |
| product | | created_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED |
| product | | crypto | | tinyint | tinyint(1) | 0 | NO | |
| product | | currency_base_id | | bigint | bigint unsigned | NULL | NO | |
| product | | currency_quote_id | | bigint | bigint unsigned | NULL | NO | |
| product | | enabled | | tinyint | tinyint(1) | 0 | NO | |
| product | | id | | bigint | bigint unsigned | NULL | NO | auto_increment |
| product | | name | | varchar | varchar(255) | NULL | NO | |
| product | | platform_id | | bigint | bigint unsigned | NULL | NO | |
| product | | precision | | smallint | smallint unsigned | 0 | NO | |
| product | | price_decimal | | smallint | smallint unsigned | 0 | NO | |
| product | | price_max | | double | double unsigned | 0 | NO | |
| product | | price_min | | double | double unsigned | 0 | NO | |
| product | | quantity_decimal | | smallint | smallint unsigned | 0 | NO | |
| product | | quantity_max | | double | double unsigned | 0 | NO | |
| product | | quantity_min | | double | double unsigned | 0 | NO | |
| product | | tracking | | tinyint | tinyint(1) | 0 | NO | |
| product | | trade | | tinyint | tinyint(1) | 0 | NO | |
| product | | updated_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED on update CURRENT_TIMESTAMP |
| product_user | | created_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED |
| product_user | | favorite | | tinyint | tinyint(1) | 0 | NO | |
| product_user | | id | | bigint | bigint unsigned | NULL | NO | auto_increment |
| product_user | | platform_id | | bigint | bigint unsigned | NULL | NO | |
| product_user | | product_id | | bigint | bigint unsigned | NULL | NO | |
| product_user | | updated_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED on update CURRENT_TIMESTAMP |
| product_user | | user_id | | bigint | bigint unsigned | NULL | NO | |
| queue_fail | | connection | | text | text | NULL | NO | |
| queue_fail | | created_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED |
| queue_fail | | exception | | longtext | longtext | NULL | NO | |
| queue_fail | | failed_at | | timestamp | timestamp | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED |
| queue_fail | | id | | bigint | bigint unsigned | NULL | NO | auto_increment |
| queue_fail | | payload | | longtext | longtext | NULL | NO | |
| queue_fail | | queue | | text | text | NULL | NO | |
| queue_fail | | updated_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED on update CURRENT_TIMESTAMP |
| ticker | | amount | | double | double unsigned | NULL | NO | |
| ticker | | created_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED |
| ticker | | currency_id | | bigint | bigint unsigned | NULL | NO | |
| ticker | | date_at | | datetime | datetime | NULL | NO | |
| ticker | | enabled | | tinyint | tinyint(1) | 0 | NO | |
| ticker | | exchange_current | | double | double unsigned | 0 | NO | |
| ticker | | exchange_max | | double | double unsigned | 0 | NO | |
| ticker | | exchange_min | | double | double unsigned | 0 | NO | |
| ticker | | exchange_reference | | double | double unsigned | 0 | NO | |
| ticker | | id | | bigint | bigint unsigned | NULL | NO | auto_increment |
| ticker | | platform_id | | bigint | bigint unsigned | NULL | NO | |
| ticker | | product_id | | bigint | bigint unsigned | NULL | NO | |
| ticker | | updated_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED on update CURRENT_TIMESTAMP |
| ticker | | user_id | | bigint | bigint unsigned | NULL | NO | |
| ticker | | value_current | | double | double unsigned | 0 | NO | |
| ticker | | value_max | | double | double unsigned | 0 | NO | |
| ticker | | value_min | | double | double unsigned | 0 | NO | |
| ticker | | value_reference | | double | double unsigned | 0 | NO | |
| transaction | | amount | | double | double unsigned | NULL | NO | |
| transaction | | code | | varchar | varchar(255) | NULL | NO | |
| transaction | | created_at | | datetime | datetime | NULL | NO | |
| transaction | | currency_id | | bigint | bigint unsigned | NULL | NO | |
| transaction | | fee | | double | double unsigned | NULL | NO | |
| transaction | | id | | bigint | bigint unsigned | NULL | NO | auto_increment |
| transaction | | platform_id | | bigint | bigint unsigned | NULL | NO | |
| transaction | | price | | double | double unsigned | NULL | NO | |
| transaction | | status | | varchar | varchar(255) | NULL | NO | |
| transaction | | subtotal | | double | double unsigned | NULL | NO | |
| transaction | | total | | double | double unsigned | NULL | NO | |
| transaction | | type | | varchar | varchar(255) | NULL | NO | |
| transaction | | updated_at | | datetime | datetime | NULL | NO | |
| transaction | | user_id | | bigint | bigint unsigned | NULL | NO | |
| transaction | | wallet_id | | bigint | bigint unsigned | NULL | NO | |
| transaction_quote | | amount | | double | double unsigned | NULL | NO | |
| transaction_quote | | buy | | double | double unsigned | 0 | NO | |
| transaction_quote | | created_at | | datetime | datetime | NULL | NO | |
| transaction_quote | | currency_id | | bigint | bigint unsigned | NULL | NO | |
| transaction_quote | | exchange | | double | double unsigned | NULL | NO | |
| transaction_quote | | exchange_id | | bigint | bigint unsigned | NULL | NO | |
| transaction_quote | | fee | | double | double unsigned | NULL | NO | |
| transaction_quote | | id | | bigint | bigint unsigned | NULL | NO | auto_increment |
| transaction_quote | | platform_id | | bigint | bigint unsigned | NULL | NO | |
| transaction_quote | | price | | double | double unsigned | NULL | NO | |
| transaction_quote | | reference | | double | double unsigned | 0 | NO | |
| transaction_quote | | status | | varchar | varchar(255) | NULL | NO | |
| transaction_quote | | subtotal | | double | double unsigned | NULL | NO | |
| transaction_quote | | total | | double | double unsigned | NULL | NO | |
| transaction_quote | | user_id | | bigint | bigint unsigned | NULL | NO | |
| transaction_quote | | wallet_id | | bigint | bigint unsigned | NULL | NO | |
| user | | code | | varchar | varchar(255) | NULL | NO | |
| user | | created_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED |
| user | | email | | varchar | varchar(255) | NULL | NO | |
| user | | id | | bigint | bigint unsigned | NULL | NO | auto_increment |
| user | | ip | | varchar | varchar(255) | NULL | NO | |
| user | | language_id | | bigint | bigint unsigned | NULL | NO | |
| user | | password | | varchar | varchar(255) | NULL | NO | |
| user | | preferences | | json | json | NULL | YES | |
| user | | remember_token | | varchar | varchar(255) | NULL | YES | |
| user | | updated_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED on update CURRENT_TIMESTAMP |
| user_session | | created_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED |
| user_session | | id | | bigint | bigint unsigned | NULL | NO | auto_increment |
| user_session | | ip | | varchar | varchar(255) | NULL | NO | |
| user_session | | success | | tinyint | tinyint(1) | 0 | NO | |
| user_session | | updated_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED on update CURRENT_TIMESTAMP |
| user_session | | user_id | | bigint | bigint unsigned | NULL | YES | |
| wallet | | address | | varchar | varchar(255) | NULL | NO | |
| wallet | | amount | | double | double unsigned | NULL | NO | |
| wallet | | buy_exchange | | double | double unsigned | 0 | NO | |
| wallet | | buy_stop | | tinyint | tinyint(1) | 0 | NO | |
| wallet | | buy_stop_amount | | double | double unsigned | 0 | NO | |
| wallet | | buy_stop_difference | | double | double unsigned | 0 | NO | |
| wallet | | buy_stop_max | | double | double unsigned | 0 | NO | |
| wallet | | buy_stop_max_at | | datetime | datetime | NULL | YES | |
| wallet | | buy_stop_max_percent | | double | double unsigned | 0 | NO | |
| wallet | | buy_stop_max_value | | double | double unsigned | 0 | NO | |
| wallet | | buy_stop_min | | double | double unsigned | 0 | NO | |
| wallet | | buy_stop_min_at | | datetime | datetime | NULL | YES | |
| wallet | | buy_stop_min_percent | | double | double unsigned | 0 | NO | |
| wallet | | buy_stop_min_value | | double | double unsigned | 0 | NO | |
| wallet | | buy_stop_percent | | double | double unsigned | 0 | NO | |
| wallet | | buy_value | | double | double unsigned | 0 | NO | |
| wallet | | created_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED |
| wallet | | crypto | | tinyint | tinyint(1) | 0 | NO | |
| wallet | | currency_id | | bigint | bigint unsigned | NULL | NO | |
| wallet | | current_exchange | | double | double unsigned | 0 | NO | |
| wallet | | current_value | | double | double unsigned | 0 | NO | |
| wallet | | custom | | tinyint | tinyint(1) | 0 | NO | |
| wallet | | enabled | | tinyint | tinyint(1) | 0 | NO | |
| wallet | | id | | bigint | bigint unsigned | NULL | NO | auto_increment |
| wallet | | name | | varchar | varchar(255) | NULL | NO | |
| wallet | | order | | smallint | smallint unsigned | 0 | NO | |
| wallet | | platform_id | | bigint | bigint unsigned | NULL | NO | |
| wallet | | processing | | tinyint | tinyint(1) | 0 | NO | |
| wallet | | product_id | | bigint | bigint unsigned | NULL | NO | |
| wallet | | sell_stop | | tinyint | tinyint(1) | 0 | NO | |
| wallet | | sell_stop_amount | | double | double unsigned | 0 | NO | |
| wallet | | sell_stop_difference | | double | double unsigned | 0 | NO | |
| wallet | | sell_stop_max | | double | double unsigned | 0 | NO | |
| wallet | | sell_stop_max_at | | datetime | datetime | NULL | YES | |
| wallet | | sell_stop_max_percent | | double | double unsigned | 0 | NO | |
| wallet | | sell_stop_max_value | | double | double unsigned | 0 | NO | |
| wallet | | sell_stop_min | | double | double unsigned | 0 | NO | |
| wallet | | sell_stop_min_at | | datetime | datetime | NULL | YES | |
| wallet | | sell_stop_min_percent | | double | double unsigned | 0 | NO | |
| wallet | | sell_stop_min_value | | double | double unsigned | 0 | NO | |
| wallet | | sell_stop_percent | | double | double unsigned | 0 | NO | |
| wallet | | sell_stoploss | | tinyint | tinyint(1) | 0 | NO | |
| wallet | | sell_stoploss_at | | datetime | datetime | NULL | YES | |
| wallet | | sell_stoploss_exchange | | double | double unsigned | 0 | NO | |
| wallet | | sell_stoploss_percent | | double | double unsigned | 0 | NO | |
| wallet | | sell_stoploss_value | | double | double unsigned | 0 | NO | |
| wallet | | trade | | tinyint | tinyint(1) | 0 | NO | |
| wallet | | updated_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED on update CURRENT_TIMESTAMP |
| wallet | | user_id | | bigint | bigint unsigned | NULL | NO | |
| wallet | | visible | | tinyint | tinyint(1) | 0 | NO | |
| wallet_history | | address | | varchar | varchar(255) | NULL | NO | |
| wallet_history | | amount | | double | double unsigned | NULL | NO | |
| wallet_history | | buy_exchange | | double | double unsigned | 0 | NO | |
| wallet_history | | buy_stop | | tinyint | tinyint(1) | 0 | NO | |
| wallet_history | | buy_stop_amount | | double | double unsigned | 0 | NO | |
| wallet_history | | buy_stop_difference | | double | double unsigned | 0 | NO | |
| wallet_history | | buy_stop_max | | double | double unsigned | 0 | NO | |
| wallet_history | | buy_stop_max_at | | datetime | datetime | NULL | YES | |
| wallet_history | | buy_stop_max_percent | | double | double unsigned | 0 | NO | |
| wallet_history | | buy_stop_max_value | | double | double unsigned | 0 | NO | |
| wallet_history | | buy_stop_min | | double | double unsigned | 0 | NO | |
| wallet_history | | buy_stop_min_at | | datetime | datetime | NULL | YES | |
| wallet_history | | buy_stop_min_percent | | double | double unsigned | 0 | NO | |
| wallet_history | | buy_stop_min_value | | double | double unsigned | 0 | NO | |
| wallet_history | | buy_stop_percent | | double | double unsigned | 0 | NO | |
| wallet_history | | buy_value | | double | double unsigned | 0 | NO | |
| wallet_history | | created_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED |
| wallet_history | | crypto | | tinyint | tinyint(1) | 0 | NO | |
| wallet_history | | currency_id | | bigint | bigint unsigned | NULL | NO | |
| wallet_history | | current_exchange | | double | double unsigned | 0 | NO | |
| wallet_history | | current_value | | double | double unsigned | 0 | NO | |
| wallet_history | | custom | | tinyint | tinyint(1) | 0 | NO | |
| wallet_history | | enabled | | tinyint | tinyint(1) | 0 | NO | |
| wallet_history | | id | | bigint | bigint unsigned | NULL | NO | auto_increment |
| wallet_history | | name | | varchar | varchar(255) | NULL | NO | |
| wallet_history | | order | | smallint | smallint unsigned | 0 | NO | |
| wallet_history | | platform_id | | bigint | bigint unsigned | NULL | NO | |
| wallet_history | | processing | | tinyint | tinyint(1) | 0 | NO | |
| wallet_history | | product_id | | bigint | bigint unsigned | NULL | NO | |
| wallet_history | | sell_stop | | tinyint | tinyint(1) | 0 | NO | |
| wallet_history | | sell_stop_amount | | double | double unsigned | 0 | NO | |
| wallet_history | | sell_stop_difference | | double | double unsigned | 0 | NO | |
| wallet_history | | sell_stop_max | | double | double unsigned | 0 | NO | |
| wallet_history | | sell_stop_max_at | | datetime | datetime | NULL | YES | |
| wallet_history | | sell_stop_max_percent | | double | double unsigned | 0 | NO | |
| wallet_history | | sell_stop_max_value | | double | double unsigned | 0 | NO | |
| wallet_history | | sell_stop_min | | double | double unsigned | 0 | NO | |
| wallet_history | | sell_stop_min_at | | datetime | datetime | NULL | YES | |
| wallet_history | | sell_stop_min_percent | | double | double unsigned | 0 | NO | |
| wallet_history | | sell_stop_min_value | | double | double unsigned | 0 | NO | |
| wallet_history | | sell_stop_percent | | double | double unsigned | 0 | NO | |
| wallet_history | | sell_stoploss | | tinyint | tinyint(1) | 0 | NO | |
| wallet_history | | sell_stoploss_at | | datetime | datetime | NULL | YES | |
| wallet_history | | sell_stoploss_exchange | | double | double unsigned | 0 | NO | |
| wallet_history | | sell_stoploss_percent | | double | double unsigned | 0 | NO | |
| wallet_history | | sell_stoploss_value | | double | double unsigned | 0 | NO | |
| wallet_history | | trade | | tinyint | tinyint(1) | 0 | NO | |
| wallet_history | | updated_at | | datetime | datetime | CURRENT_TIMESTAMP | NO | DEFAULT_GENERATED on update CURRENT_TIMESTAMP |
| wallet_history | | user_id | | bigint | bigint unsigned | NULL | NO | |
| wallet_history | | visible | | tinyint | tinyint(1) | 0 | NO | |
| wallet_history | | wallet_id | | bigint | bigint unsigned | NULL | NO | |
+-------------------+---------------+------------------------+----------------+-----------+----------------------+-------------------+-------------+-----------------------------------------------+
279 rows in set (0,01 sec)
Here the SQL with database schema: mysql-schema.sql.zip
Issue 913 suggests the problem here might be character encoding.
Same problem here, can you help with a solution? is 2025 here!
Same problem here, can you help with a solution? is 2025 here!
Build the latest version from source. The problems are observed in compiled packages.