Solved

Need help, go daddy host can't connect to MS SQL DB with php

Posted on 2009-05-11
6
1,614 Views
Last Modified: 2013-11-30
I am very frustrated right now with go daddy and their services. I spent last week upgrading to IIS 7 and removing and restoring databases, so that I can use ms sql extensions in php.

I'm trying to create a very simple script that merely connects to the database server that I have, but all I'm getting is it saying that it can't connect to the server.

I know this information is correct because it's the same information that I use for a .NET connection string and it works just fine.

Does anyone have any suggestions? I'm desperate.
<?php

// Server in the this format: <computer>\<instance name> or 

// <server>,<port> when using a non default port number

error_reporting(E_ALL);
 

if (!function_exists('mssql_connect')) {

  echo 'mssql_connect not exist';

  exit;  

}
 

$server = 'ggcircuit.db.3438312.hostedresource.com';
 

$link = mssql_connect($server, 'ggcircuit', 'xxxxxx');
 

if(!$link)

{

    die('Something went wrong while connecting to MSSQL');

} else {

  echo 'aaaaaaaaaa';

}
 

?>

Open in new window

0
Comment
Question by:jrmcintosh
6 Comments
 
LVL 31

Expert Comment

by:RiteshShah
ID: 24354109
0
 

Author Comment

by:jrmcintosh
ID: 24354231
No, the mssql_connect function is not connecting to the database.
0
 
LVL 31

Expert Comment

by:RiteshShah
ID: 24354256
well in that case, all I can guess is, either you are providing wrong credentials or you don't have proper permission to connect to database, as long as syntax and method concern, it is perfact, there is no problem in it. Only GoDaddy people can help you.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 7

Expert Comment

by:ycTIN
ID: 24354400
i'm using godaddy now, but my service is Linux server

godaddy provide quick install service godday connect, maybe you can try this
http://hostingmetropolis.com/Home.aspx
http://hostingmetropolis.com/Application/WordPress.aspx

if the application is work fine, you can reference they connection code
otherwise the problem in godday
0
 

Author Comment

by:jrmcintosh
ID: 24355527
What is the connection code?
0
 
LVL 19

Accepted Solution

by:
Michael701 earned 500 total points
ID: 24355757
Ok I hate GoDaddy for this cause they have a zillion links on every page and it's hard to explain to someone where to click. But here goes.

Signin to GoDaddy.
Click 'hosting' lefthand menu area
Click 'manage' for the domain of the database
Under Action column click the pencil 'Edit / View'
Then click the 'Configuration' button.

This will display your php connect code. You have to correct the password.

(your server string looks a little odd, not that it's not correct, but this will verify)
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now