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 > Web Hosting and Domains > MySQL Hosting

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 18-05-2007, 17:48
new member
 
Join Date: May 2007
Posts: 7
Send a message via MSN to jsstevo
Question mysql access problems

Hi all,

I've just transfered over to eukhost and am having problems connecting to my databases.

The following is giving me my die message. I've created the uses for the database, linked them and cannot access.

$db_host = "localhost";
$db_user = "compsafa_(User Removed)";
$db_password = "(password removed)";
@ $connect = mysql_pconnect($db_host, $db_user, $db_password) or die ("ERROR! Could not connect to the Database Server");

An example is at http://compsafari.com/jonners/

Cheers!
Reply With Quote
  #2 (permalink)  
Old 18-05-2007, 18:26
DPS Computing's Avatar
Premium Member
 
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 4,504
Send a message via ICQ to DPS Computing Send a message via AIM to DPS Computing Send a message via MSN to DPS Computing Send a message via Yahoo to DPS Computing Send a message via Skype™ to DPS Computing
Default

I'm no expert but is $db_host="localhost" correct? Just an incling I have based on the MySQL knowledge I have.

Also, are you sure you have set up the databases and users correctly, for example no typing errors in usernames, database names and passwords, in your control panel?

Hope that helps .
__________________
David Smith
DPS Computing
http://www.dpscomputing.com (Computing, Reviews, News) - New site / new polls / new stories! With many more to follow!
NEW LAUNCH! http://djdavid.dpscomputing.com (My DJ Website)
NEW LAUNCH! http://davidsmith.dpscomputing.com (My Personal Website)
Reply With Quote
  #3 (permalink)  
Old 18-05-2007, 18:29
new member
 
Join Date: May 2007
Posts: 7
Send a message via MSN to jsstevo
Default

It was localhost before and i've searched this forum and still think it should be localhost.

I've also removed the users, set them up again and also copied and pasted them.

Cheers!
Reply With Quote
  #4 (permalink)  
Old 18-05-2007, 18:37
DPS Computing's Avatar
Premium Member
 
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 4,504
Send a message via ICQ to DPS Computing Send a message via AIM to DPS Computing Send a message via MSN to DPS Computing Send a message via Yahoo to DPS Computing Send a message via Skype™ to DPS Computing
Default

Ah right ok then, sounds like you have those bases covered.

It could be completely unrelated but I recently had MySQL problems related to the cPanel update but all these should have been fixed by now so it is just a stab in the dark really (as cPanel released an update to fix these problems which I believe eUKhost has already applied).

Where were you testing the website before when it worked? On your own computer (with your own test server set up) or on another hosting companies site?

I brought this up as "localhost" is used with regards to refering to a local machine (like your computer) and as it is now on a remote web server I thought it might be causing a problem. So it was a bit of an educated guess (as I don't know tons about MySQL) whether there was something wrong with this line or whether it was right.

Hope that helps
__________________
David Smith
DPS Computing
http://www.dpscomputing.com (Computing, Reviews, News) - New site / new polls / new stories! With many more to follow!
NEW LAUNCH! http://djdavid.dpscomputing.com (My DJ Website)
NEW LAUNCH! http://davidsmith.dpscomputing.com (My Personal Website)
Reply With Quote
  #5 (permalink)  
Old 18-05-2007, 18:54
new member
 
Join Date: May 2007
Posts: 7
Send a message via MSN to jsstevo
Default

This was a working website on another web server that has now closed down. I've checked the localhost bit out by searching on "localhost" and the post titled db-settings... shows this as being localhost too.

Cheers!
Reply With Quote
  #6 (permalink)  
Old 18-05-2007, 19:03
DPS Computing's Avatar
Premium Member
 
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 4,504
Send a message via ICQ to DPS Computing Send a message via AIM to DPS Computing Send a message via MSN to DPS Computing Send a message via Yahoo to DPS Computing Send a message via Skype™ to DPS Computing
Default

OK then, so that can't be the problem, especially if you tried it out on another remote web server.

Sorry I'm out of ideas! Hope someone else can come along and help you!
__________________
David Smith
DPS Computing
http://www.dpscomputing.com (Computing, Reviews, News) - New site / new polls / new stories! With many more to follow!
NEW LAUNCH! http://djdavid.dpscomputing.com (My DJ Website)
NEW LAUNCH! http://davidsmith.dpscomputing.com (My Personal Website)
Reply With Quote
  #7 (permalink)  
Old 18-05-2007, 19:07
new member
 
Join Date: May 2007
Posts: 7
Send a message via MSN to jsstevo
Default

Thanks for taking the time to help.

I mailed the support team on Wednesday but not heard anything back yet.

Cheers!
Reply With Quote
  #8 (permalink)  
Old 18-05-2007, 19:20
Premium Member
 
Join Date: Mar 2007
Posts: 426
Default

yes - "localhost" will be correct.

silly question but... have you setup the database in phpmyadmin?
Reply With Quote
  #9 (permalink)  
Old 18-05-2007, 19:24
DPS Computing's Avatar
Premium Member
 
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 4,504
Send a message via ICQ to DPS Computing Send a message via AIM to DPS Computing Send a message via MSN to DPS Computing Send a message via Yahoo to DPS Computing Send a message via Skype™ to DPS Computing
Default

Quote:
Originally Posted by jsstevo View Post
Thanks for taking the time to help.

I mailed the support team on Wednesday but not heard anything back yet.

Cheers!
Thats strange they normally respond quite quickly. Have you tried using the LiveChat on the main eUKhost website? (www.eukhost.com). Or opening a new ticket might help (email to support@eukhost.com).
__________________
David Smith
DPS Computing
http://www.dpscomputing.com (Computing, Reviews, News) - New site / new polls / new stories! With many more to follow!
NEW LAUNCH! http://djdavid.dpscomputing.com (My DJ Website)
NEW LAUNCH! http://davidsmith.dpscomputing.com (My Personal Website)
Reply With Quote
  #10 (permalink)  
Old 18-05-2007, 20:03
new member
 
Join Date: May 2007
Posts: 7
Send a message via MSN to jsstevo
Default

Sorted via the Live Chat

Resolution :-
I was using
@ $connect = mysql_pconnect($db_host, $db_user, $db_password) or die ("ERROR! Could not connect to the Database Server");
this should of been
@ $connect = mysql_connect($db_host, $db_user, $db_password) or die ("ERROR! Could not connect to the Database Server");
I.e. mysql_pconnect -> mysql_connect p removed.

From support
the connection string was using mysql_pconnect to connect to the server which is disabled on the server
so it should use mysql_connect
Reply With Quote
  #11 (permalink)  
Old 18-05-2007, 20:21
DPS Computing's Avatar
Premium Member
 
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 4,504
Send a message via ICQ to DPS Computing Send a message via AIM to DPS Computing Send a message via MSN to DPS Computing Send a message via Yahoo to DPS Computing Send a message via Skype™ to DPS Computing
Default

Glad to see you got your problem sorted There very helpful and efficient on LiveChat (as is the support in general!)

That was a small thing to notice and know about, definitely beyond my MySQL knowledge!!
__________________
David Smith
DPS Computing
http://www.dpscomputing.com (Computing, Reviews, News) - New site / new polls / new stories! With many more to follow!
NEW LAUNCH! http://djdavid.dpscomputing.com (My DJ Website)
NEW LAUNCH! http://davidsmith.dpscomputing.com (My Personal Website)
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 11:04.

 

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

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

Customer Testimonials
eUK Customer Testimonials


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles