title: Symfony2: Access denied after schema name change
body: <p>I've rewritten an application in Symfony as a learning exercise, with its MySQL schema virtually identical to the original schema but for a name change.  I did this so I could continue to work with the original application while fiddling with Symfony.</p>
  
  <p>To see whether the rewrite could ever go live I built a script to make minor modifications to the production schema.  Then I changed the name of the database in parameters.yml from the symfony test schema to the live schema name. I can get to the login screen, but any pages beyond that (where all pages are behind a firewall) I get</p>
  
  <blockquote>
    <p>request.ERROR:
    Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException:
    Access Denied (uncaught exception) at
    G:\Documents\workspace\sym\vendor\symfony\symfony\src\Symfony\Component\Security\Http\Firewall\ExceptionListener.php
    line 100</p>
  </blockquote>
  
  <p>Symfony profiler shows I'm fully authenticated.</p>
  
  <p>Where to look?  Thanks.</p>