Preventing Doctrine from Dropping / Recreating Database When using build --all

Posted by Levi Hackwith on Stack Overflow See other posts from Stack Overflow or by Levi Hackwith
Published on 2010-06-06T04:18:43Z Indexed on 2010/06/06 4:22 UTC
Read the original article Hit count: 364

Filed under:
|
|

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)?

© Stack Overflow or respective owner

Related posts about php

Related posts about symfony