php - Table 'table' doesn't exist -
i having problem mysql connection. connection changes according user. when connect db, works, if try connect ip, error :
an exception occurred while executing 'select codigo_equipo, ti.codigotipoincidencia tipo_de_incidencia, count(codigo_equipo) cuenta aytogranada_bd.incidencias_resumen inner join nmgi_gestion.subtipos_incidencia st on st.idsubtipoincidencia = a.idsubtipoincidencia inner join nmgi_gestion.tipos_incidencia ti on ti.idtipoincidencia = st.idtipoincidencia fecha_inspeccion>='2015-06-14' , fecha_inspeccion<'2015-06-15' group codigo_equipo': sqlstate[42s02]: base table or view not found: 1146 table 'aytogranada_bd.incidencias_resumen' doesn't exist the structure of database same, , if make query phpmyadmin server, says "there " , return without problem. can problem mysql permissions?
thanks
code connect:
$params['host'] = "xx.xx.xx.xx"; $params['dbname'] = "aytogranada_bd"; $params['user'] = "root"; $params['password'] = "xxxx";
i think root user have local access.
try locally execute:
show grants; you'll see grant privileges on . 'root'@'localhost'
Comments
Post a Comment