473,395 Members | 1,689 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,395 software developers and data experts.

server went away error

n8kindt
221 100+
hi guys, i'm hoping you can help me resolve a problem i have with my odbc connection. here is the error message i'm getting:



i am posting the detailed question in the Access forum. in order to keep all the replies in one thread, here's the link: http://bytes.com/forum/thread800283.html
Jun 23 '08 #1
3 1879
n8kindt
221 100+
i still am struggling with this one. although i'm starting to lose hope that i can do anything about it. can anyone help? thank you.
Jul 10 '08 #2
n8kindt
221 100+
ok, i think i finally got it! i found a way to ping the server. hopefully i don't jinx myself again, but i think this is working!

Expand|Select|Wrap|Line Numbers
  1. Public Sub PingMySQL()
  2.  
  3.     Shell "ping 127.0.0.1 -t", vbHide
  4.  
  5. End Sub
i got the code from HERE. it was a big help and there are some additional tips on how to ping servers from vba
Jul 12 '08 #3
n8kindt
221 100+
this is getting ridiculous. the above "solution" obviously didn't work because i needed to send a ping command to the actual mysql server--not just the server itself. here's the code for doing just that:

when using vba (or visual basic, etc) there is a dll that can be downloaded HERE

Expand|Select|Wrap|Line Numbers
  1. Public Sub Ping_MySQL()
  2.  
  3. On Error GoTo PingError
  4.  Set GCnn = New MYSQL_CONNECTION
  5.     GCnn.OpenConnection "xx.xxx.xx.xx", "your db name", "your password", "user name"
  6.     If GCnn.State = MY_CONN_OPEN Then
  7.     GCnn.ping
  8.     Debug.Print "connection successfully pinged " & Now()
  9.     Else: Debug.Print "ping command unavailable"
  10.     End If
  11. Set GCnn = Nothing
  12. Exit Sub
  13. PingError:
  14. Debug.Print "ping error"
  15. Exit Sub
  16. End Sub
  17.  
  18. 'if u're using this code, don't forget to add the VBAMySQL.dll in your references
BUT

the problem still remains. i'm not sure if the problem is b/c i'm using an odbc connection and pinging it using a different method. i thought it would work since the ping command was coming from the same ip address. there have been a few times where i've been able to restore the connection using that function but others i can call that procedure all i want and it doesn't do any good. the conclusion i'm coming to is there is an additional problem. HELP?

so... SOS

i'm running out of time to get this problem fixed. i've looked into populating a continuous form using command lines programmed into the dll--which would be similar to using DAO or ADO but programming a continuous form looks to be very painful if not near impossible since no one else has had the need to do it before. can ANYBODY throw me a lifeline here? i would very much appreciate it.
Jul 17 '08 #4

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

Similar topics

8
by: Rodd Snook | last post by:
I have an application which makes extensive use of the Scripting.Dictionary object. I'm not doing anything silly like putting them outside the page scope -- just creating quite a few of them and...
15
by: Michael Rybak | last post by:
hi, everyone. I'm writing a 2-players game that should support network mode. I'm now testing it on 1 PC since I don't have 2. I directly use sockets, and both client and server do...
2
by: guoqi zheng | last post by:
After I upgraded to .NET 2.0, every a few days, our sites will stop and I get an error message of "server application not available". I tried the event viewer but did not find any information...
1
by: Andre Ranieri | last post by:
I recently completed my company's public web site from 1.1 to 2.0 and things went fairly well. However, I have a WAP mobile application residing on a directory inside the public web site (ie...
2
by: PythonistL | last post by:
I have MySql server version: 5.0.22-community-nt. When I try to import data with this command mysql --default-character-set=utf8 mimi < c:\django\mujserver\mimi.sql I will get the error ...
2
by: mwallis76 | last post by:
I am in the stages of pushing up web app to a production server and I am running into an error that I cannot seem trace down. I have a page that allows one to change their password and runs just...
5
by: Nathan Sokalski | last post by:
I am attempting to send an email using ASP.NET 1.1's Mail.SmtpMail.Send() method. My code contains all of the following: Dim mailmsg As New Mail.MailMessage Mail.SmtpMail.SmtpServer =...
1
by: johnvonc | last post by:
I am working with a Access 2003 front-end to a SQL Server 2000. A couple of weeks ago, I went to attach a new table via ODBC, and when I click ODBC, the file dialog box just closes. If I try to...
8
n8kindt
by: n8kindt | last post by:
hi guys, i am also posting this question in the MySQL forum but am putting the detailed post on here. here is the message i am having problems with: ...
1
by: =?ISO-8859-1?Q?=22=C1lvaro_G=2E_Vicario=22?= | last post by:
Puzzled escribió: You don't mention what your DBMS is so I'll assume you're using the only one that exists, MySQL. Check the max allowed packet size: ...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.