{"action":"created","issue":{"url":"https://api.github.com/repos/grafana/grafana/issues/2180","labels_url":"https://api.github.com/repos/grafana/grafana/issues/2180/labels{/name}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/2180/comments","events_url":"https://api.github.com/repos/grafana/grafana/issues/2180/events","html_url":"https://github.com/grafana/grafana/issues/2180","id":88993412,"number":2180,"title":"b.query is not a function","user":{"login":"ghamed","id":282229,"avatar_url":"https://avatars.githubusercontent.com/u/282229?v=3","gravatar_id":"","url":"https://api.github.com/users/ghamed","html_url":"https://github.com/ghamed","followers_url":"https://api.github.com/users/ghamed/followers","following_url":"https://api.github.com/users/ghamed/following{/other_user}","gists_url":"https://api.github.com/users/ghamed/gists{/gist_id}","starred_url":"https://api.github.com/users/ghamed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghamed/subscriptions","organizations_url":"https://api.github.com/users/ghamed/orgs","repos_url":"https://api.github.com/users/ghamed/repos","events_url":"https://api.github.com/users/ghamed/events{/privacy}","received_events_url":"https://api.github.com/users/ghamed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-17T11:45:54Z","updated_at":"2015-06-17T14:25:42Z","closed_at":null,"body":"Hi,\r\n\r\nI just installed 2.0.2 (http://grafana.org/download/) package on Ubuntu 12.0.4 and if i use sqlite3 i have no issues with graphs however as soon as i change the data source to mysql on grafana.ini graphs are not loading and getting an \"!\" mark next to each graph. and when i click on it i see the following\r\n\r\n```\r\nMessage:\r\n\t\t\tb.query is not a function\r\n\t\t\r\nStack trace:\r\n\t\t\tTypeError: b.query is not a function\r\n    at issueMetricQuery (http://hostname/app/app.6e379bdb.js:23:30533)\r\n    at l.a.refreshData (http://hostname/app/app.6e379bdb.js:35:12206)\r\n    at http://hostname/app/app.6e379bdb.js:23:28684\r\n    at i (http://hostname/app/app.6e379bdb.js:10:29774)\r\n    at http://hostname/app/app.6e379bdb.js:10:29946\r\n    at l.$eval (http://hostname/app/app.6e379bdb.js:12:5068)\r\n    at l.$digest (http://hostname/app/app.6e379bdb.js:12:3586)\r\n    at l.$apply (http://hostname/app/app.6e379bdb.js:12:5324)\r\n    at http://hostname/app/app.6e379bdb.js:12:12581\r\n    at g (http://hostname/app/app.6e379bdb.js:9:23810)\r\n```\r\n\r\nJust to add the other stuff like adding datasources/changing ORG,etc... all working good."},"comment":{"url":"https://api.github.com/repos/grafana/grafana/issues/comments/112823076","html_url":"https://github.com/grafana/grafana/issues/2180#issuecomment-112823076","issue_url":"https://api.github.com/repos/grafana/grafana/issues/2180","id":112823076,"user":{"login":"ghamed","id":282229,"avatar_url":"https://avatars.githubusercontent.com/u/282229?v=3","gravatar_id":"","url":"https://api.github.com/users/ghamed","html_url":"https://github.com/ghamed","followers_url":"https://api.github.com/users/ghamed/followers","following_url":"https://api.github.com/users/ghamed/following{/other_user}","gists_url":"https://api.github.com/users/ghamed/gists{/gist_id}","starred_url":"https://api.github.com/users/ghamed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghamed/subscriptions","organizations_url":"https://api.github.com/users/ghamed/orgs","repos_url":"https://api.github.com/users/ghamed/repos","events_url":"https://api.github.com/users/ghamed/events{/privacy}","received_events_url":"https://api.github.com/users/ghamed/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T14:25:42Z","updated_at":"2015-06-17T14:25:42Z","body":"Ok Just to add this only happen when i am using elasticsearch as datasource."}}