Jump to content

Hed_Hakrayot

Members
  • Posts

    2
  • Joined

  • Last visited

Hed_Hakrayot's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. 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 here is my code: /*******************************************************/ /************** CONNECT TO DB **************************/ /*******************************************************/ $cfgServerHost = 'stevie.heliohost.org:2082'; // MySQL hostname $cfgServerUser = 'hkrayot_hkrayo'; // MySQL user $cfgServerPassword = 'XXXX'; // have a correct MySQL password $cfgDbDatabase ='hkrayot_hedhakrayot' // I TRYED ALSO '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');
  2. 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,
×
×
  • Create New...