Jump to content

Cant CONNECT TO database


Hed_Hakrayot

Recommended Posts

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');

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...