-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setup script not creating mysql tables #444
Comments
Collins will not run evolutions by default, so you need to create your schema before starting collins up manually (or remember the magic play incantation to try to apply evolutions on startup). Try something like this in your config, and see if it applies evolutions.
|
FYI, The above does not exist in the default Docker config .. Took some searching to find this thread. |
@replicant0wnz it looks like at least the forward direction is present in the docker config: Can you give me some steps to reproduce the error you ran into with docker? |
Er, sorry. It's not in the following file: https://github.com/tumblr/collins/blob/master/conf/docker/database.conf.mysql If you wanted to persist the data and use MySQL I assumed you simply copy that file to database.conf and add your server settings. Unless you add the above evolution items it won't create the schema. |
@replicant0wnz yep - that was an intentional choice. That's because, in general, we find that when people run with mysql, they don't want evolutions to happen automatically. Plus, that file isn't going to work out of the box for anyone since you'll have to modify the |
Gotcha. So I did modify the file w/the my correct DB config but it would not create the schema unless I turned on evolutions (my original issue). I also didn't see anywhere in the documentation on how to create the schema. |
@replicant0wnz if you use the
the evolutions will create your schema. |
@byxorna that's exactly what I did, but due to lack of documentation I had to find out that information from this thread per your earlier reply ;-) |
collins fails to start with error
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'collins.asset_meta' doesn't exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
mysql credencials are fine .
The text was updated successfully, but these errors were encountered: