UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Technical Support > cPanel Shared Hosting

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 24-04-2007, 19:51
Junior Member
 
Join Date: Apr 2007
Posts: 4
Default database server settings..

Hello,

I've been searching on this forum but haven't found an answer yet:

I made a db in my hosting controller but can't connect to it...

It's a mysql-db, what do I have to use in my php-script for connection?

$database[dbserver]= ? ;
$database[dbuser]= ? ;
$database[dbname]= ? ;
$database[dbpass]="mypassword";

Greetings
Reply With Quote
  #2 (permalink)  
Old 24-04-2007, 20:20
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,261
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com
Default

settings should be as following :-

$database[dbserver]= "localhost";
$database[dbuser]= "user_dbusername";
$database[dbname]= "user_dbname";
$database[dbpass]="mypassword";
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Reply With Quote
  #3 (permalink)  
Old 24-04-2007, 20:21
Member
 
Join Date: Apr 2007
Posts: 61
Default

$database[dbserver]= this is usually 'localhost';
$database[dbuser]= the username of the user which you have set permissions for to access the database;
$database[dbname]= the name of the database to which you wish to connect;
$database[dbpass]= this should be the password you set for the user which connects to the database;

Edit: Apologies. I did not see the above post when I began typing.
Reply With Quote
  #4 (permalink)  
Old 24-04-2007, 20:59
Junior Member
 
Join Date: Apr 2007
Posts: 4
Default

Hello,

that i all tried...

do I have to put "user_" in front of name and username?

I'm trying to connect to a db I made on Eukhost...
Reply With Quote
  #5 (permalink)  
Old 24-04-2007, 21:15
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,261
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com
Default

let me know your login username for hostingcontroller. I will get details of exact configuration from our windows system admins.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Reply With Quote
  #6 (permalink)  
Old 25-04-2007, 05:14
Junior Member
 
Join Date: Apr 2007
Posts: 4
Default

My username is lrowlatt
Reply With Quote
  #7 (permalink)  
Old 25-04-2007, 14:16
Junior Member
 
Join Date: Apr 2007
Posts: 4
Default

Why oh why can't I connect to my database :s

access denied for 'user'@'localhost' all the time :s
Reply With Quote
  #8 (permalink)  
Old 25-04-2007, 17:08
Member
 
Join Date: Apr 2007
Posts: 61
Default

The 'user_' represents the username you use to login to cPanel. This must be appended to the beginning of the username and database you wish to connect with.

If this still does not help, I recommend opening a support ticket with your problem as that seems to be the general recommendation, and the problems seem to rectified very quickly if you do so.
Reply With Quote
  #9 (permalink)  
Old 25-04-2007, 20:18
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,261
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com
Default

Quote:
Originally Posted by hairyfreak View Post
The 'user_' represents the username you use to login to cPanel. This must be appended to the beginning of the username and database you wish to connect with.

If this still does not help, I recommend opening a support ticket with your problem as that seems to be the general recommendation, and the problems seem to rectified very quickly if you do so.
his account is on a windows server so I am not able to figure out what his database name should be. open a ticket from http://support.eukhost.com and provide me with the ticket number to chase our support people for quick reply.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 10:10.

 

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

knowledgebase articles

popular blog categories