I'm trying to connect to my database to retrieve the table from sql workbench, but when I do it comes up with the following error message
could not connect to MySQL Unknown MySQL server host "Guada"
The php script is as follows:
<?php
//Using details to establish database connection
DEFINE ('DB_USER', 'i7421760');
DEFINE ('DB PASSWORD', '*********');
DEFINE ('DB_HOST', 'guada');
DEFINE ('DB_NAME', 'i7421760');
$dbc = @mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME)
OR die('could not connect to MySQL ' .
mysqli_connect_error());
/*
If the connection couldn't be established it
will print a display message and the error report
*/
?>
If it is the case of just getting the host name wrong, where can I find it? The table I want to retrieve is on sql workbench.
Any help is appreciated thanks in advance