i erased my database by mistake in phpmyadmin, i wanted to erase a table, but the whole thing has been erased. (i'm on symfony2) so i tried many things in the terminal :
php app/console doctrine:schema:create [PDOException] SQLSTATE[42000] [1049] Unknown database 'symfony' php symfony doctrine:create-db Could not open input file: symfony php symfony doctrine:build --all Could not open input file: symfony
but i can't manage to re-create the database, is there any way to do this?
Otherwise, i'll recreate a bundle etc. from the beginning, but if there's any other way...
Thanks
-------------Problems Reply------------
Run this command:
php app/console doctrine:database:create
Then you can now create your tables:
php app/console doctrine:schema:create