| | |
Unable to connect to the database!
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Sep 2008
Posts: 33
Reputation:
Solved Threads: 0
have recently migrated my ubb forum website(http://2aforum.com/) to a new web hosting server, i have placed the files on new server and i think directory structure is right and also set up the database through phpmyadmin, and changed config file accordingly but still i am getting this error
UBB Message We encountered a problem. The reason reported was
Script:
Line#:
SQL Error:
SQL Error #:
Query: Unable to connect to the database!
I think all the info that i have filled in config file here:
'DATABASE_SERVER' => 'db.aa.0000000.hostedresource.com',
'DATABASE_USER' => 'abcd',
'DATABASE_PASSWORD' => 'cccc',
'DATABASE_NAME' => 'ssddd', is correct because i tried to connect to db through another script and it did worked and retrieved the data so i am totally confused what i am doing wrong.. confused can anybody help
UBB Message We encountered a problem. The reason reported was
Script:
Line#:
SQL Error:
SQL Error #:
Query: Unable to connect to the database!
I think all the info that i have filled in config file here:
'DATABASE_SERVER' => 'db.aa.0000000.hostedresource.com',
'DATABASE_USER' => 'abcd',
'DATABASE_PASSWORD' => 'cccc',
'DATABASE_NAME' => 'ssddd', is correct because i tried to connect to db through another script and it did worked and retrieved the data so i am totally confused what i am doing wrong.. confused can anybody help
•
•
Join Date: Apr 2008
Posts: 75
Reputation:
Solved Threads: 3
first and foremost, do not display ur config file here. some one might hack ur system.
check your database, and your files. can u include ur code here where the problem occurs?
according to the link that u provided, the messages says that
the rest of the message (not included) shows the structure of ur table. this also a security threat.
check your database, and your files. can u include ur code here where the problem occurs?
according to the link that u provided, the messages says that
•
•
•
•
UBB Message We encountered a problem. The reason reported was
Script: /home/content/j/o/h/johncardillo/html/forum/forums/libs/user.inc.php
Line#: 445
SQL Error: Table '2aforum_data2.ubbt_USERS' doesn't exist
SQL Error #: 1146
If one has not had the chance to do assembly prgramming then he has not had the chance to do programming at all.
•
•
Join Date: Jul 2005
Posts: 78
Reputation:
Solved Threads: 3
'DATABASE_SERVER' => 'db.aa.0000000.hostedresource.com',
are you sure you need to specify the full host name while connecting ? Have you checked with your webhost ?
are you sure you need to specify the full host name while connecting ? Have you checked with your webhost ?
Chris, Director, Chrisranjana.com
Web developers and software programmers.
Web developers and software programmers.
Depending on how your web host is set up, you may need to change the database server to localhost At least that is what most web hosts would have it set to.
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
•
•
Join Date: Mar 2005
Posts: 12
Reputation:
Solved Threads: 1
•
•
•
•
first and foremost, do not display ur config file here. some one might hack ur system.
check your database, and your files. can u include ur code here where the problem occurs?
according to the link that u provided, the messages says that
the rest of the message (not included) shows the structure of ur table. this also a security threat.
![]() |
Similar Threads
- Custom Database Admin Tool. (PHP)
- Unable to connect database From jsp page (JSP)
- submiting info into a database for retrieval! (PHP)
- Having problems working wth Database software (ASP.NET)
- Cannot connect to server (MySQL)
- mySQL database searching for registration (MySQL)
- php wont submit data into the database (PHP)
Other Threads in the PHP Forum
- Previous Thread: Failed opening required '/aa/bb/libs/functions_forums.inc.php
- Next Thread: curl not working for getting a web page content, why?
| Thread Tools | Search this Thread |
ajax apache api array beginner binary body broken cakephp checkbox class cms code cookies cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert interactive ip javascript job joomla js limit link login mail mediawiki menu mlm mobile msqli_multi_query multiple mycodeisbad mysql navigation oop outofmemmory paging parse paypal pdf php problem procedure query radio ram random recursion regex remote script search server sessions sms source space sql stored subdomain syntax system table tutorial unicode update upload url validator variable video web webapplications websitecontactform xml youtube






