# Issue related generateChangeLog in MySQL

**URL:** <https://forum.liquibase.org/t/issue-related-generatechangelog-in-mysql/3735>\
**Category:** General Discussion\
**Created:** [April 11, 2019, 5:17am UTC](https://forum.liquibase.org/t/issue-related-generatechangelog-in-mysql/3735 "2019-04-11T05:17:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AtulTatke](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@AtulTatke](https://forum.liquibase.org/u/AtulTatke)\
**Post date:** [April 11, 2019, 5:17am UTC](https://forum.liquibase.org/t/issue-related-generatechangelog-in-mysql/3735/1 "2019-04-11T05:17:00Z")

</div>

Hello,

I am trying to create a JSON file from existing DB in MySQL using Liquibase generateChangeLog command. But I am getting runtime error. The following is the command with all switches.&nbsp; Here are the details:

**Liquibase version - 3.6.3**

**MySQL version 5.7**

**Command**

C:\liquibase-3.6.3-bin\>liquibase --changeLogFile=./structure\_db2.json --url=“jdbc:mysql://localhost:12345” --includeCatalog=true --defaultSchemaName=my\_db --username=testuser --password=password --classpath=lib/snakeyaml-1.18.jar --diffTypes=“data” --logLevel=debug generateChangeLog

**Error trace:**

&nbsp; at liquibase.serializer.core.yaml.YamlSerializer.removeClassTypeMarksFromSerializedJson(YamlSerializer.java:163)

&nbsp; &nbsp; &nbsp; &nbsp; at liquibase.serializer.core.yaml.YamlSerializer.serialize(YamlSerializer.java:74)

&nbsp; &nbsp; &nbsp; &nbsp; at liquibase.serializer.core.json.JsonChangeLogSerializer.write(JsonChangeLogSerializer.java:23)

&nbsp; &nbsp; &nbsp; &nbsp; at liquibase.diff.output.changelog.DiffToChangeLog.print(DiffToChangeLog.java:148)

&nbsp; &nbsp; &nbsp; &nbsp; at liquibase.diff.output.changelog.DiffToChangeLog.print(DiffToChangeLog.java:87)

&nbsp; &nbsp; &nbsp; &nbsp; at liquibase.diff.output.changelog.DiffToChangeLog.print(DiffToChangeLog.java:74)

&nbsp; &nbsp; &nbsp; &nbsp; at liquibase.command.core.GenerateChangeLogCommand.run(GenerateChangeLogCommand.java:55)

&nbsp; &nbsp; &nbsp; &nbsp; at liquibase.command.AbstractCommand.execute(AbstractCommand.java:19)

&nbsp; &nbsp; &nbsp; &nbsp; … 4 common frames omitted

I did research on this forum and on the internet and got some clues but nothing has worked so far.&nbsp;

**Here are some of the things I tried:**

- Disabled Foreign Keys

- Removed all Foreign Keys

- Removed all Index

I created a small temp table and the above command works fine and creates a JSON for me. That makes me think that Liquibase is not liking something in my DB structure.&nbsp;

Any help will be appreciated.&nbsp;

Thanks,

-Atul
