Hi There,
I am trying for couple of days to log in to the database - phpMyadmin at http://hedhakrayotsite.heliohost.org/
and my php file can't connect to the DB.
I get this message :
---------------------
Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'stevie.heliohost.org' (4) in /home/hkrayot/public_html/admin/connection_2hed_akrayot_DB.php on line 12
THERE WAS NO CONNECTION TO THE DB
I wrote on the top of my php file :
-------------------------------------
<?php
error_reporting(E_ALL);
/************** CONNECT TO DB **************************/
$cfgServerHost = 'stevie.heliohost.org:2082'; // MySQL hostname
$cfgServerUser = 'YYYYYY'; // I have my right serveruser wrote YYYY
$cfgServerPassword = 'XXXX'; // I have the right password wrote XXXX
$cfgDbDatabase = 'hedhakrayot'; // MySQL database name
mysql_connect($cfgServerHost, $cfgServerUser, $cfgServerPassword) OR
die('THERE WAS NO CONNECTION TO THE DB');
mysql_select_db($cfgDbDatabase) OR die('I COULD NOT FIND YOUR DB');
BUT IT DOESN'T WORK,
ANY IDEAS ?
It will sure make me sleep better.
Thanks,