Through Java, I am attempting to connect to a MySQL 4.12 server on a remote
computer. I can connect fine via php. I cann connect fine via Java, through
a servlet, when the servlet is on the same machine (localhost) as the MySQL
DB.
However, when they are on different machines with different IPs, calling
across the Internet (and there are no firewall issues -- I can connect fine
to the remote MySQL DB via php from the same machine, not are there
connection issues, it is the same db name, password and username, just a
different IP) the MySQL driver is choking on me with the following stack
trace: (btw max_connections in the MySQL DB is set to 100)
java.sql.SQLExc eption: Server connection failure during transaction.
Attempted reconnect 3 times. Giving up. at
com.mysql.jdbc. Connection.crea teNewIO(Connect ion.java:1704)
at com.mysql.jdbc. Connection.(Con nection.java:49 1)
at
com.mysql.jdbc. NonRegisteringD river.connect(N onRegisteringDr iver.java:346)
at java.sql.Driver Manager.getConn ection(DriverMa nager.java:525)
at java.sql.Driver Manager.getConn ection(DriverMa nager.java:171)
Does anyone have any idea why this would be happening? Ive been looking at
this for days and cannot gain any insight into my problem here. TIA, Ike 5 3854
Ike wrote: java.sql.SQLExc eption: Server connection failure during transaction.
What version of the MySQL JDBC driver are you using? Be sure to check
for extra copies of the mysql jar, lurking in jre/lib/ext and places
like that.
Also for future reference, my favorite diagnostic search is googling for
the error message: http://www.google.com/search?q=mysql...transaction%22
This turns up many hits, with various solutions for the error.
Regards,
Bill K.
"Bill Karwin" <bi**@karwin.co m> wrote in message
news:e3******** *@enews4.newsgu y.com... Ike wrote: java.sql.SQLExc eption: Server connection failure during transaction. What version of the MySQL JDBC driver are you using? Be sure to check for extra copies of the mysql jar, lurking in jre/lib/ext and places like that.
Also for future reference, my favorite diagnostic search is googling for the error message:
http://www.google.com/search?q=mysql...ure+during+tra
nsaction%22 This turns up many hits, with various solutions for the error.
Regards, Bill K.
Hi Bill,
I am using mysql-connector-java-3.1.7-bin.jar to connect to MySQL
4.1.12a-nt -- using the same Jar and MySQL versions for both cases (in the
one case, where the connection succeeds, and both are on the local machine,
and the failure one, where the DB is on a remote machine, but I can connect
via php from the same machine as the mysql-connector-java-3.1.7-bin.jar, but
NOT with mysql-connector-java-3.1.7-bin.jar)
Thanks, Ike
If I am trying to connect to, say http://64.233.244.105 I would specify my
connection url then as:
mysql://64.233.244.105: 3306/mydatabasename
yes?
TIA, Ike
Ike wrote: If I am trying to connect to, say http://64.233.244.105 I would specify my connection url then as:
mysql://64.233.244.105: 3306/mydatabasename
That should be "jdbc:mysql ://64.233.244.105: 3306/mydatabasename" .
See http://dev.mysql.com/doc/refman/5.0/...roperties.html
Have you read any of the hits from the google search I referenced?
There seem to be a variety of possible causes for the "Server connection
failure during transaction" error.
Regards,
Bill K.
"Bill Karwin" <bi**@karwin.co m> wrote in message
news:e3******** @enews1.newsguy .com... Ike wrote: If I am trying to connect to, say http://64.233.244.105 I would specify
my connection url then as:
mysql://64.233.244.105: 3306/mydatabasename That should be "jdbc:mysql ://64.233.244.105: 3306/mydatabasename" .
See http://dev.mysql.com/doc/refman/5.0/...roperties.html Have you read any of the hits from the google search I referenced? There seem to be a variety of possible causes for the "Server connection failure during transaction" error.
Regards, Bill K.
Thanks Bill -- sorry, my URL WAS correct, but I copy-pasted it to my post
incorrectly(!). Yes, I DID see the link you sent, and, tracked down every
single issue without success EXCEPT the issue that the connector version I
am using may be unable to connect to a remote DB (3.0.17). I am going to try
it with 3.0.8 later tonite. Thanks for your help!-Ike This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ryan Stewart |
last post by:
I'm running MySQL server on a WinXP box at home. I have a cable
modem/router. I've set up port forwarding on port 3306 to the machine
running MySQL. I can connect locally just fine, but when I try to
connect from a remote location using:
mysql -h xxx.xxx.xxx.xxx -P 3306 -u root -p mysql
I get:
ERROR 2003: Can't connect to MySQL server on 'xxx.xxx.xxx.xxx' (10061)
When I try:
|
by: Steven |
last post by:
Hi All,
I've installed MySQL 4.1.12 on my server, I can connect from the local
machine with navicat, but
not from a remote machine. I checked with 'nedstat' and there is something
listening on port 3306.
I have tried several users and settings. What i want is to set a user name
(:support) and that this user
can connect remotely with navicat to the mysql server.
|
by: baustin75 |
last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie
only when debugging in php designer 2005
--------------------------------------------------------------------------------
Hello,
I have a very simple problem but cannot seem to figure it out. I have a
very simple php script that sends a test email to myself. When I debug
it in PHP designer, it works with no problems, I get the test email. If
|
by: AP |
last post by:
I have not seen any good examples on how to connect to a mySQL db. My
website uses phpMyAdmin to administer the SQL databases. What confuses
me is where are the databases that I create located? For example, if my
website is www.mywebsite.com and I have installed myphpadmin in the
folder tkd, now using this I have created two databases, one named
'acct' with a single table named 'persons', and another database named
'terms' with a single...
|
by: pc |
last post by:
hi everyone,
I am trying to connect to a new mysql installation. I have given root
permission to connect to all databases from anywhere;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'passwd' WITH
GRANT OPTION;
I can log on locally by specifying the host name:
| |
by: smatta |
last post by:
I have just installed MySql version 5.0-18 on Red Hat Fedora Core 4. It
is running but I cant connect to it using MySql Query Browser running
on my pc.
>From my pc, I can telnet to the sql server / port. I get back a garbled
message:
5.0.18-standard§}WxyuadT,☻V6F?J5i1YMT=
Should this be garbled ? or is there a problem ?
|
by: zMisc |
last post by:
I am using VB.NET 1.1 and cannot connect to a MySQL (v5) database.
I've done the following:
1) Create a DSN for MyODBC.
2) Connect using: Driver=MySQL ODBC 3.51 Driver; Server=localhost; Data
Source=test; UID=test; PWD=pwd; OPTION=3
When I run my app, I get this error: An OLE DB Provider was not specified in
|
by: idorjee |
last post by:
hi,
can anyone tell me what am i doing wrong here. i'm trying to connect remotely to the MySQL database on a server (SunOS multivac 5.9 sparc SUNW,Sun-Fire-V240). i know that the username and the password are correct, but it keeps giving me this error:
DBI connect('mydb:myhostname:1234','username',...) failed: Access denied for user 'username'@'compname-345-56.abcd.edu' (using password: YES) at myscript.pl line 5
Error: Access denied for...
|
by: emsik1001 |
last post by:
Hi
http://dev.mysql.com/doc/query-browser/en/mysql-query-browser-connection.html
I'm trying to connect from my Windows based PC to a dedicated server which is running on Linux system.
I type server host and port 3306 user name admin + password and default schema and I get access denied message.
I use putty to connect to the server using IP and port 22 and it connects to the server.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |