{"action":"opened","issue":{"url":"https://api.github.com/repos/lexik/LexikTranslationBundle/issues/210","repository_url":"https://api.github.com/repos/lexik/LexikTranslationBundle","labels_url":"https://api.github.com/repos/lexik/LexikTranslationBundle/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/lexik/LexikTranslationBundle/issues/210/comments","events_url":"https://api.github.com/repos/lexik/LexikTranslationBundle/issues/210/events","html_url":"https://github.com/lexik/LexikTranslationBundle/issues/210","id":162878450,"number":210,"title":"Failed to run cache:clear command","user":{"login":"FolkenFR","id":15376668,"avatar_url":"https://avatars.githubusercontent.com/u/15376668?v=3","gravatar_id":"","url":"https://api.github.com/users/FolkenFR","html_url":"https://github.com/FolkenFR","followers_url":"https://api.github.com/users/FolkenFR/followers","following_url":"https://api.github.com/users/FolkenFR/following{/other_user}","gists_url":"https://api.github.com/users/FolkenFR/gists{/gist_id}","starred_url":"https://api.github.com/users/FolkenFR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FolkenFR/subscriptions","organizations_url":"https://api.github.com/users/FolkenFR/orgs","repos_url":"https://api.github.com/users/FolkenFR/repos","events_url":"https://api.github.com/users/FolkenFR/events{/privacy}","received_events_url":"https://api.github.com/users/FolkenFR/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-29T09:19:59Z","updated_at":"2016-06-29T09:19:59Z","closed_at":null,"body":"Hello,\r\nMy server is a OVH Pro Mutualise and when I tried to run the command : php bin/console cache:clear, I have this error : \r\n\r\n> [Doctrine\\DBAL\\Driver\\PDOException]                                                                                                                   \r\n>   SQLSTATE[42000]: Syntax error or access violation: 1227 Access denied; you need (at least one of) the SHOW DATABASES privilege(s) for this operation\r\n\r\nThis error come from Lexik\\Bundle\\TranslationBundle\\Storage\\DoctrineORMStorage line 38 : \r\n\r\n`$dbExists = in_array($connection->getDatabase(), $tmpConnection->getSchemaManager()-listDatabases());`\r\n\r\nMy account user don't have the SHOW DATABASES.\r\nI fixed the problem with this code `$dbExists = true;` but I preferred a best fixe.\r\n\r\nThank U"}}
{"actor":{"display_login":"FolkenFR"}}