Fiz as mudanças necessárias no EntityManagerFactory
e quando vou rodar o comando vendor\bin\doctrine.bat orm:schema-tool:create
, aparece esse erro:
Creating database schema...
In ToolsException.php line 34:
Schema-Tool failed with Error 'An exception occurred in driver: SQLSTATE[HY000] [1049] Unknown database 'curso_doctrine'' while executing
DDL: CREATE TABLE Aluno (id INT AUTO_INCREMENT NOT NULL, nome VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE
`utf8_unicode_ci` ENGINE = InnoDB
In AbstractMySQLDriver.php line 93:
An exception occurred in driver: SQLSTATE[HY000] [1049] Unknown database 'curso_doctrine'
In PDOConnection.php line 31:
SQLSTATE[HY000] [1049] Unknown database 'curso_doctrine'
In PDOConnection.php line 27:
SQLSTATE[HY000] [1049] Unknown database 'curso_doctrine'
orm:schema-tool:create [--dump-sql]
Isso está ocorrendo por causa da versão do MySQL?