3
我有一個MySQL連接的問題。連接根據用戶而改變。當我與一個數據庫連接,它的工作原理,但如果我嘗試與另一IP連接,我得到的錯誤:表'表'不存在
An exception occurred while executing 'SELECT codigo_equipo, ti.codigoTipoIncidencia as tipo_de_incidencia, count(codigo_equipo) as cuenta FROM
AYTOGRANADA_BD.incidencias_resumen a INNER JOIN nmgi_gestion.subtipos_incidencia st ON st.idSubtipoIncidencia = a.idSubtipoIncidencia
INNER JOIN nmgi_gestion.tipos_incidencia ti ON ti.idTipoIncidencia = st.idTipoIncidencia
where fecha_inspeccion>='2015-06-14' and fecha_inspeccion<'2015-06-15' group by codigo_equipo':
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'AYTOGRANADA_BD.incidencias_resumen' doesn't exist
數據庫的結構是一樣的,如果我從phpMyAdmin的服務器此查詢,它說「那裏」,我沒有問題就返回它。 問題可以是MySQL權限嗎?
感謝
代碼連接:
$params['host'] = "XX.XX.XX.XX";
$params['dbname'] = "AYTOGRANADA_BD";
$params['user'] = "root";
$params['password'] = "XXXX";
檢查此[鏈接](http://stackoverflow.com/questions/14380154/symfony2-base-table-or-view-not-found-1146) – Bugfixer
強權表名稱應該是大小寫敏感的。 – Bugfixer
當我在我的phpmyadmin中複製這個查詢時,它執行成功。請幫幫我 ! –