Home
Help
Search
Search
Advanced search
[Close]
Login
Register
Welcome Guest, please
login
or
register
.
Username:
1 Hour
1 Day
1 Week
1 Month
Forever
Password:
News
: Welcome to Hostpapa Forums!
Hostpapa Support Forums
Tech Support - Getting Started
General Help
Database Error: Unable to connect to the database:Could not connect to MySQL
Pages: [
1
]
Go Down
Topic Tools
Topic Tools
Print
November 02, 2011, 05:37:08 AM
Marronsuisse
Newbie
Posts: 2
Database Error: Unable to connect to the database:Could not connect to MySQL
Hello,
I am new to HostPapa and am ready to transfer my website from local to hostpapa servers.
I created a database with corresponding user with all the sql rights. Then I exported local database and imported it online using phpmyadmin.
I also changed configuration.php with correct user name, password, database etc.
But still, the site is not working and i get the message : Database Error: Unable to connect to the database:Could not connect to MySQL
All the information I'm able to find on internet is that i should check the configuration.php file, which seems all ok.
I am thus out of ideas.
Am I missing something ?
Logged
November 02, 2011, 08:36:47 AM
MarcPatry
Global Moderator
Sr. Member
Posts: 386
Marc
Re: Database Error: Unable to connect to the database:Could not connect to MySQL
Hello
Make sure your settings are correct in your configuration file, see this article:
http://hostpapasupport.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=75
Thank you
Logged
November 02, 2011, 11:49:42 AM
Inigo Montoya
Jr. Member
Posts: 85
Re: Database Error: Unable to connect to the database:Could not connect to MySQL
Make sure you are including your cpanel username at the beginning of both the username and database name in your config file. They should look something like, abcd1234_databasename and abcd1234_username.
Logged
November 02, 2011, 12:36:01 PM
Marronsuisse
Newbie
Posts: 2
Re: Database Error: Unable to connect to the database:Could not connect to MySQL
Got it.
Had to change hostname into localhost, and not hostpapa's IP, as written in the knowledge page..
Thank you both for your quick reply.
Logged
Pages: [
1
]
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Pre-Sales Questions
-----------------------------
=> Frequently Asked Questions: Pre-Sales
=> Questions
=> HostPapa Partners - Affiliate Program
-----------------------------
Tech Support - Getting Started
-----------------------------
=> SohoLaunch
=> General Help
=> Initial Set-Up Help
=> Email Help
=> cPanel Help
=> Fantastico Help
=> FTP Help
=> Dreamweaver & Frontpage Help
-----------------------------
Tech Support - Advanced
-----------------------------
=> General Help
=> Web Design / HTML / Graphics / Flash
=> SEO
=> Videos, Photos, Streaming Media
-----------------------------
Domains
-----------------------------
=> Transferring a Domain with HostPapa
-----------------------------
Coding
-----------------------------
=> Frequently Asked Questions: Coding
=> C++ / PERL / CGI / Java
=> PHP / MYSQL
-----------------------------
Fun Stuff
-----------------------------
=> General Chatter
=> Showcase
=> Business Cards
-----------------------------
Suggestion Box
-----------------------------
=> Improvements/Features
-----------------------------
Français (French)
-----------------------------
=> Generalites
Loading...