Welcome Guest, Not a member yet? Register   Sign In
unable to connect to database after i upload my site on one of my free hosting site
#1

[eluser]KrizzAngel[/eluser]
any suggest on how to setup the site?? i manage to import my own DB in host phpmyadmin though.. heres the error:
Quote:A Database Error Occurred

Unable to connect to your database server using the provided settings.
kindly enlighten me on how to work on this.

my setting is correct isnt it?
Quote:$active_group = "default";
$active_record = TRUE;

$db['default']['hostname'] = "montessori.zxq.net";
$db['default']['username'] = "theUsername"; <-- not the real un
$db['default']['password'] = "thePassword"; <-- not the real pwd
$db['default']['database'] = "montessori_zxq_db";
$db['default']['dbdriver'] = "mysql";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";
#2

[eluser]theprodigy[/eluser]
Quote:$db[‘default’][‘hostname’] = “montessori.zxq.net”;
$db[‘default’][‘username’] = “theUsername”;
$db[‘default’][‘password’] = “thePassword”;
$db[‘default’][‘database’] = “montessori_zxq_db”;

I'm assuming these are set to the correct value, and not still set from your previous server?
#3

[eluser]KrizzAngel[/eluser]
previous server?? before it was localhost/root/root when im working on the site locally.. actually im using zymic for hosting.. i cant tell u guys the UN and pwd but i know its correct coz i can access the phpmyadmin wit those un/pwd. and wit the db i just created it from DB manager from cpanel then i import my table.. hhmmm its my first time uploading site with database XD uhhmm the hostname refers to the address of my site right??
#4

[eluser]theprodigy[/eluser]
the hostname refers to the hostname of the database. In a shared hosting environment, this is typically left at 'localhost'
#5

[eluser]KrizzAngel[/eluser]
localhost?? pls see the attached img.. i thought its the server name that im goin to write there..
#6

[eluser]theprodigy[/eluser]
well, then, try that one. Either way, it's different then what you have shown here as the hostname.
#7

[eluser]KrizzAngel[/eluser]
ok changed it to localhost but still no luck Sad anyone suggest a good free host too?? im gonna try other host
#8

[eluser]KrizzAngel[/eluser]
*bump* pls someone help me
#9

[eluser]theprodigy[/eluser]
sorry, I don't know of any free hosts.

Does this help? Wink
#10

[eluser]KrizzAngel[/eluser]
lol cool.. ok tnx anyway.. ill search for it..




Theme © iAndrew 2016 - Forum software by © MyBB