Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
A problem with the config.php!
This is what I have right now...
Code:
<?php // PHP Easy Adoptables Configuration File $dbhost = 'point-file-manager.000webhost.com'; //DB Hostname $dbuser = 'a5529740'; //DB User $dbpass = '~password hidden~'; //DB Password $dbname = 'Fairy Tree'; //Your database name $dname = 'fairytree.comyr.com'; //Your domain name (No http, www or . ) $spath = '/pets'; //The folder you installed this script in, if subfolder use a slash, if root domain empty $auser = 'Blue Icebox'; //Admin Username for Host Admin CP $apass = 'niminim'; //Password for Host Admin CP ?> So if I do that, this comes up! Code:
PHP Error Message Warning: mysql_connect() [function.mysql-connect]: Host '216.108.235.104' is not allowed to connect to this MySQL server in /home/a5529740/public_html/pet/index.php on line 14 Error connecting to mysql database! http://fairytree.comyr.com/pet/ What happened? |
#2
|
|||
|
|||
RE: A problem with the config.php!
That is a host error. I hate 000webhost as nearly everyone who tries to install the script on that site has database issues.
Also, are you sure that $dbname = 'Fairy Tree'; is correct? Usually database names don't have spaces, but I could be wrong. |
#3
|
|||
|
|||
RE: A problem with the config.php!
what are databases anyways? I don't get that form! :O
|
#4
|
|||
|
|||
RE: A problem with the config.php!
MySQL databases is where everything about your adoptables and users is stored, such as usernames, passwords, adoptable names, etc. :)
|
#5
|
|||
|
|||
RE: A problem with the config.php!
okay, then how are you supposed to fill out...
$dbhost = 'point-file-manager.000webhost.com'; $dbuser = 'a5529740'; $dbpass = '~password hidden~'; $dbname = 'Fairy Tree'; ? What's a database name? Whats a database user? What is a database password? What is a database host? ~~Can you give me a suggestion to what host should I use?~~ :D[hr] Do you say... http://www.afmu.com/ do you think that works well? |
#6
|
|||
|
|||
RE: A problem with the config.php!
You get these settings from your web host when you make a new database in their control panel. 000webhost is tricky, so contact them as they are the only ones who seem to know which value to use for $dbhost as it varies based on the server they have your account on. :)
|
#7
|
|||
|
|||
RE: A problem with the config.php!
would
Domain fairytree.comyr.com Username a5529740 Password * hidden * (show) Disk Usage 1.2 / 1500.0 MB Bandwidth 100000 MB (100GB) Home Root /home/a5529740 Server Name server24.000webhost.com IP Address 216.108.235.104 Apache ver. 2.2.10 (Unix) PHP version 5.2.* MySQL ver. 5.0.51-community Activated On 2009-02-13 00:45 Status Active give any help? |
#8
|
|||
|
|||
RE: A problem with the config.php!
Again, you have to ask 000webhost for the correct value for $dbhost. Nothing I can do until you get the correct value for the server you are on.
|
#9
|
|||
|
|||
RE: A problem with the config.php!
oh I ~THINK~ I've found a solution without contacting them...
I found a place where you can ~CREATE~ your MySql name, ect...![hr] $mysql_host = "mysql6.000webhost.com"; $mysql_database = "a5529740_FT"; $mysql_user = "a5529740_BI"; $mysql_password = "~HIDDENPASSWORD!~"; THATS WHAT I GOT! :D[hr] Wait no... http://fairytree.comyr.com/pet/index.php look! Too many problems! What should I do? |
#10
|
|||
|
|||
RE: A problem with the config.php!
Did you run the SQL queries inside of sql.txt on your database using PHPMyAdmin? :)
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
There no file with Config.php | digly | Questions and Supports | 13 | 06-15-2014 10:56 AM |
config.php missing? | Dracowolfie | Questions and Supports | 3 | 05-27-2013 10:48 PM |
config.php? | Aasixx | Questions and Supports | 1 | 10-10-2012 09:02 PM |
Missing config.php | Abronsyth | Questions and Supports | 0 | 04-29-2012 07:50 AM |
What do this part of the config mean? | LilPixie | Questions and Supports | 13 | 02-09-2009 01:15 PM |
What's New? |
What's Hot? |
What's Popular? |