Preventing Doctrine from Dropping / Recreating Database When using build --all
- by Levi Hackwith
The problem:
I have a database that's running on a shared server.
I do not have permission to drop/ create a database via the command line
doctrine SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user 'opnsrce'@'173.236.128.0/255.255.128.0' to database 'dev'. Failing Query: "DROP DATABASE dev"
doctrine Creating "all" environment "doctrine" database
doctrine SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user 'opnsrce'@'173.236.128.0/255.255.128.0' to database 'dev'. Failing Query: "CREATE DATABASE dev"
This error occurs when I run
/dh/cgi-system/php5.cgi symfony
doctrine:build --all
--no-confirmation
The Question: How do I run build-all while simultaneously telling doctrine to not drop / create the database (it already exists)?