Hi all,

I'm attempting to use the simulator with the database prefilled as little
as possible and all other sql scripts loaded in via the upgrade checker.

I manually load in the following sql scripts:

create-database.sql, create-database-premium.sql,
create-database-simulator.sql, create-schema.sql,
create-schema-premium.sql, create-schema-simulator.sql, templates.sql,
templates.simulator.sql, hypervisor_capabilities.simulator.sql (in this
specific order.)

I then place the contents of setup/db/db into my working directory and
launch the management server using

java -Xmx512m -XX:MaxPermSize=512m -jar
/vagrant/cloudstack/jetty-runner.jar --path /client
/vagrant/cloudstack/cloud-client.war --lib /vagrant/cloudstack/lib

(where /vagrant/cloudstack/lib contains a jar of the mysql-connector).

The simulator starts coming up and starts doing the upgrade of the database
but I get a bunch of foreign key constraint failures.

Is there a sql script i'm forgetting to manually import?

Thanks,

Ian

Reply via email to