Welkom op LIRONICS DOCs'

Updated: 28-10-2019

db connect

if($_SERVER['SERVER_ADDR'] == '192.168.11.30')

{

return $db = array

(

'host' => 'raspweb',

        'user' => 'root',

        'pass' => '********',

        'db'   => $connect,

);

}

- - - - - - - -

GRANT ALL PRIVILEGES ON {database}.* TO '{username}'@'{ip address}' IDENTIFIED BY '{password}' WITH GRANT OPTION;


Go to your phpMyAdmin installation and look for the file config.inc.php. 

Open that file, and check which hostname / ip is being used for SQL6. 

That is the IP you should use for your mysql_connect()


$link = mysql_connect('example.com:3307', 'mysql_user', 'mysql_password');