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

Efficency problems using remote connection to MySQL

Good morning!

I am on a project where we are migrating a site running on perl and mysql on IIS.

The current configuration is with everything on one server, both IIS and MySQL.
The new configuration has IIS on one server, and MySQL on another, both machines are approximately equivalent to the old (aka current) box power wise..

The problem I am having is that a given script (granting it is based on an ugly query with 7 joins) runs in a few seconds on the old box, but takes easily 10 times as long on the new system.

the biggest difference is that the new box is running MySQL 5.0 and the old box is on MySQL 4.1.7, however I dont believe that is the cause of the speed issues, as we slapped the site on yet a third box, which is running MYSQL 5.0, and it is returning the data very snappily (a few seconds).

A "first" pass at trying to make it work better was to increase the buffer sizes. I can not report what they set them to, but as I understand they have "maxed" out the buffers to try to speed it up (doing so, cut time to run backups of the DB by about half).

I am not the admin for any of these machines, (ahh, Sarbanes Oxley, wouldn't it be nice if SOX were to die a horrible fiery death?) but I can ask the admins anything, if anyone might have a suggestion as to what we could chase to determine what is wrong. I have not had to deal with something like this, previously, so any advice on what we might try would be a huge help!

I am sure I am leaving out all kinds of useful information, but this is the complete rundown of what I currently know (sorry, I am in a bit of a third person situation here, but I have decided to peruse it myself rather than continuing to wait on others who know more than I (besides, thats how I end up knowing more than them!))

Thanks!

Adam McCormack
Jun 15 '07 #1
2 2254
Atli
5,058 Expert 4TB
I've edited the thread's title to better describe it's contents.
Please read the Posting Guidlines before posting

Moderator


I am more of a software guy so this is not really my area, but I would think the connection between the SQL server and the IIS server is the problem.
I mean, if the SQL server is running fine, and the IIS server is also running fine, and you know there are supposed to work fine together, the problem must be somwhere on the path between them.

How are they linked together?
Jun 15 '07 #2
Sorry about the title, I was interrupted probably a half dozen times while typing this up, and now realize that beyond the poor title, I left out some other test results.

I was in agreement on the issue being the network connection between the two machines, but there was another test we ran that eliminates that possibility.

We installed IIS on the machine that is hosting the DB so we could try the scripts without the network communication getting involved and it was still as slow as it was on the two machine tests.

I really am sorry I didn't get that in the first post.
Jun 15 '07 #3

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

Similar topics

5
by: Phil Powell | last post by:
I've read some online resources that utilize various MySQL command-line actions to migrate data from Access to MySQL. The situation is this: a group of co-workers of mine will be using an Access...
0
by: ZR | last post by:
I am writing two applications which needs to (among other things) communicate through network, so one of them is a client and the other one is a server. I have used asynchronous socket examples...
7
by: Ike | last post by:
Let's say I have a MySQL 4.12 database, opened to the internet on 111.111.111.111 allowing all incoming and outgoing ports. I have a username and password setup, which CAN connect to this database,...
4
by: courtney.machi | last post by:
Hello, I am trying to connect to a remote mysql server through php. Here's the code: mysql_connect("my.hostname.edu", "username", "password") or die (mysql_error());...
2
by: dronkanoki | last post by:
I am attempting to set up myODBC 3.51 on Win XP Pro to a remote MySQL Linux server. I get the following error: Access denied for user: 'username@ipaddress.serviceprovider.net' (Using password:...
0
by: ELINTPimp | last post by:
Hello folks, Having a bit of trouble getting PDO to connect to my remote MySQL database... PHP: 5.2.1, w/ php_mysql, php_pdo, php_pdo_mysql; error reporting is on, ERROR_STRICT (development...
4
by: Jerim | last post by:
I have a script on one server, trying to access the MySQL database on another server. The server with the script is on an outside network, hosted with another company. The MySQL server is here in...
1
by: jmohan | last post by:
Dear Sir/Madam, I develop a website in asp.net with c#. And also, I develop a toolbar in the toolbar studio separately. Aim of the Website: Enabling the visitors to become a member of our...
5
by: xoise | last post by:
Warning: mysql_connect() : Lost connection to MySQL server at 'reading initial communication packet', system error: 113 in /webs/sites/monetized.com/includes/mysql_connect.inc.php on line 2 Lost...
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
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...
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?
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
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
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
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.