Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot create database from Doctrine command "orm:schema-tool:create"

I am following this tutorial. http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/tutorials/getting-started.html

I am using mysql instead of sqlite.

Following command should create the database.

php vendor/bin/doctrine orm:schema-tool:create

But it is not creating any. If i manually create the database, following command works fine

php vendor/bin/doctrine orm:schema-tool:update --force

Any idea why that command is not working?

Doctrine version 2.4.1

like image 556
chanchal118 Avatar asked Mar 11 '26 08:03

chanchal118


1 Answers

Try this link:

vendor/bin/doctrine-module orm:schema-tool:create

User doctrine-module instead of doctrine.

like image 64
K.T Avatar answered Mar 13 '26 22:03

K.T



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!