473,386 Members | 1,734 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,386 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 2602
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.