473,405 Members | 2,176 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Can't connect with database suddenly!

Godaddy updated their server recently and now we can't connect to our database.

Here is the connection string: strDBPath="Driver={MySQL ODBC 3.51 Driver};Server=name.db.number.hostedresource.com;D ATABASE=dbfname;UID=userid;PWD=password;"

I've double checked with Godaddy that the driver is correct, the connection string looks right, but no connection.

Using MySql 5.5, IIs 7, windows server (long story)

Error code below writes to page "empty" and "Operation is not allowed when the object is closed." You can see the test page here (constantly changing for testing reasons): http://www.oralbibleresources.com/sh...roblemCode.asp

I'm NOT an expert in any of this so any of this, so really easy english will help. THANK YOU!!

Expand|Select|Wrap|Line Numbers
  1.    response.write (connection)
  2. if connectionstring <> 0 then
  3.   response.write (connectionstring)
  4. else
  5.     response.write "empty"  
  6.  
  7. end if
  8. %>
  9.             <%
  10. Set cnnSimple = Server.CreateObject("ADODB.Connection")
  11. cnnSimple.Open strDBPath & ";"
  12. Set rstSimple = cnnSimple.Execute("SELECT * FROM languages WHERE (languages.CD='YES') ORDER BY languages.language;")
  13.  
  14. If Err.Number <> 0 Then
  15.  
  16.   Response.Write (Err.Description& "<br><br>")
  17.  
  18.   Response.Write("This means there is most likely a problem with the" & vbCrLf)
  19.   Response.Write("""ConnectionString"" info that you specified.<br>" & vbCrLf)
  20.   response.write (server.MapPath("nada"))
  21.   Response.End
  22.  
  23. End If
  24. On Error GoTo 0
Aug 20 '15 #1
1 2603
Problem solved, sorta. It was godaddy issue. We installed another database and imported everything to a Mysql 5.0 (rather than 5.5), which allows for direct access.

Then we changed the connection string to the new hosting path and voila, it works.

It’s a temporary fix as who knows when godaddy will stop supporting Mysql 5.0.
Aug 20 '15 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: programer | last post by:
Can I use Activex (as vb) to connect database when I use vc.net.
6
by: tony010409020622 | last post by:
My WebForm1.aspx works fine when I connect via localhost, AND when I connect using the IP address. HOWEVER, NO ONE ELSE can connect using my IP address. Capitalization is correct, Firewall is off,...
3
by: venkatesh | last post by:
hai to everybody I need to know how to connect database ms access or oracle with c or c++? please if u know tell I am interested in doing project with c thanks in advance....
1
by: arun_kumar112 | last post by:
HI , I am new member of this comminity, let me introduce first, i am MCA final year student, doing a project on network system, and database . will you tell me how can we connect database (...
2
by: yodboy | last post by:
hi there Im going nuts - any help appreciated trying to connect to access db over a network so far - I can connect to the db using the same odbc with excel I can connect to a copy of the...
0
by: VELA | last post by:
I INSTALLED ORACLE 9i in lenovo3000 c100 in window xp home there is a problem of connection database and the error is "ORA 12560 TNS:protocol adaptor error" if anyone have tha answer for the...
1
by: nagendra prasad | last post by:
how to connect database for visualbasic using ADO
3
by: iedayah88 | last post by:
can sombody help me..after i create database in oracle.. what i must do to connect database and sql.. it's i must setup odbc first? is yes, how to setup odbc in localhost?
0
by: GregoryHouseMD | last post by:
I dont even know whether this is in the right place or not but you'll move it if it isnt :) First facts: I'm using Vista, Dreamweaver CS4 and IIS 7 I created the site, configured everything that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.