Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Chapter:Apps
-
HD-Enabler:Wirecloud
Description
Created question in FIWARE Q/A platform on 06-06-2017 at 13:06
Please, ANSWER this question AT https://stackoverflow.com/questions/44388213/access-to-sql-fiware
Question:
Access to sql Fiware
Description:
I have a problem with sql access from the fiwarelab machine.
I have duplicate the same as in fiwarelab in local, by code I have designed a graph to show the sql data.
As I said in local if I work correctly, but when I make the query to the machine of fiwarelab I can not show the graphs, nor the errors that I have programmed for a bad connection.
I'm somewhat lost with the fiwarelab theme
Do I have to open the ports or change some configuration of sql?
This is one of my codes:
function conectarBD(){
$server = "localhost";
$usuario = "root";
$pass = "";
$BD = "ual";
//variable que guarda la conexión de la base de datos
$conexion = mysqli_connect($server, $usuario, $pass, $BD);
//Comprobamos si la conexión ha tenido exito
if(!$conexion)
//devolvemos el objeto de conexión para usarlo en las consultas
return $conexion;
}
Greetings and thank you.
Activity
- All
- Comments
- History
- Activity
- Transitions