Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MYSQL


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





MySQL Slow To Connect To Remote Database


I was running a PHP/MySQL web site with the database on the local web server. I needed to move the database off the webserver (located in the firewall DMZ) and onto its own machine (behind the firewall on our private network)

Now when I run my web site it goes really slow. I ran mysql from the command line on the web server and connected through to the database machine behind the firewall using
webserver:/# mysql -h 192.168.1.7 -u www-data -p

After I enter the password, it takes around 5-7s before I see the mysql> prompt.

Is mysql trying to do reverse dns on the IP address and timing out? I added the machine details to /etc/hosts so it would be recognized but no improvement. Or do I have something wrong with my mysql configuration?




View Complete Forum Thread with Replies

Related Forum Messages:
Connect To Remote Database(MySQL)
is there some sort of setting I need to turn on where I can access the database from another server. So instead of using "localhost" I can use the actual server IP address.

And just for future reference, is this how you set up a application server connecting to a database server?

View Replies !
Control Center :: GUI To Connect To A Remote Mysql Database
I'm trying to get the GUI to connect to a remote mysql database from my client machine. What is the proper syntax for this in the GUI? I have tried everything with no luck: using the ip of the host, using the complete dns hostname of the host, using root as the user, using root@hostname as the user. I keep getting access denied for every attempt. I'm sure I am using the correct password.

View Replies !
Connect Remote JSP Files With Local MySQL Database?
I use dreamweaver 8.0.
I have my jsp files on the remote server Z:.
I have my local computer 'A' connected to this server.
I have my MySQL database on my 'A' computer.
I want to know how to connect the remote JSP files with the database?
Currently I am using jdbc.odbc drivers on 'A' computer.
But my server computer has Linux and uses org.gjt.mm.mysql drivers.
Which drivers and Where should be the drivers?

View Replies !
Connect To A Database Is Slow
I can connect to the mysql server really fast. But when I select a database, the server will wait for about 10 seconds before connecting obviously, imagine that kind of wait on a website. loads of users will click off.

View Replies !
Connect To Remote Database
I try to connect to mysql database on a server (let say ip is 192.168.0.1)
I use MySQL ODBC 3.51 Driver to connect

i try to check for the database, it only show database started with "test" in the folder name
I can rename my folder to "testdb" or "test1" and it will appear normally on the connector

however if I rename my folder to "db" or "1" it wont appear there

if I connect to localhost (or leave "server" field empty) all databases name is showed there normally ("db" and "1" will appear)

Is there any solution for this? i try to use grant query and stuff like that but doesn't seem to change anything

I test using vista, xp and windows server 2003
test also done by typing own IP address to try to connect to local pc database (same problem occur)

View Replies !
Connect To A Database On Remote Server
By process of the fabulous PHP, I'm trying to connect to a database on a different server, Server A, from my one I want to manipulate the info on, Server B.

I'm using a MySQL username, password and database from Server A just as if I'd be connecting to a database on Server B. Just changing 'localhost' to the IP of Server A isn't cutting it. How would be a clear-cut way to go about it? Would Server A need to give me more permission or something?

View Replies !
Connect To Database From A Remote Source
I own a website and plan on running multiple message boards on it...the problem is that I would like a database per board...however my host only gives 1 database....unless I want to pay an extaordinary amount of money for more.

So I have used my PC as a webserver before without any problems and in fact ran a pretty big board off it with php, mysql, phpmyadmin installed.

So my thought was to use a couple of databases off my PC to help run the new boards.

I have created the database...but I'm having trouble with the board connecting.

I'm sure that it's some kind of permission that needs to be inserted for the remote host to connect to my databases.

View Replies !
Slow Remote MySql
We have a local (client) machine that runs a php application on windows using apache, the database for this application is on a remote server, which the client machine connects to via the servers ip number and the server accepts the connection from the client via the designated ip address (skip-resolve-address is set in MySql server and no dns addresses are used, only ip).

However, the php application when dealing with the data from the MySql server is still pretty slow. We've tried query cache, but still slow.

When I say slow, I mean page response and reloads take about 5 or 6 seconds. Is this expected from a remote server and using apache as we do for this application? When using a local MySql server the speed is pretty much instantaneous, but we need the remote server!

Also, in testing the remote MySql server with a program such as SQLyog, response to requests are very quick and queries take no time.

How could we go about testing for where the bottleneck is? Could it be apache and php (and where do we start looking for the problem? Local MySql server is nice and fast)?

View Replies !
Query Browser To Connect A Remote Database
I wander how can i connect to database by using mysql query browser using my cpanel account
remote mysqlhost,username, password

View Replies !
Remote MySQL Connection Slow
I have a website on a dedicated server that was running really slow, so I got another, much faster server and transferred the MySQL database to this server. However, now when I connect to the faster server's database using the slower server's PHP web pages, the overall page loads much slower than when the database was on the slower server.

Any ideas why this would be? Right now the host name is just an IP address. Does it need an actual resolved hostname to be fast? MySQL on the faster server is supposedly tweaked for fast service (my-huge.cnf).

View Replies !
Slow Connect Linux To Windows MySql
I have a Linux box with the latest MySql and another box (Windows 2003 Server) with the latest Mysql.

From the unix prompt I do this:
mysql -uroot -pmypass -h windowsserver mydbname

this take about 4 seconds to connect

I do the exact same thing on a windows workstation and its connected instantly.

View Replies !
Connect To Remote Mysql
I had mysql working locally with no prob, I just got my hosting, login to cpanel, mysql add a db, add a user, try to connect to the db on my hosting server via my local mysql command line
cd mysql
cd bin
mysql -h xxxxxx -u username
I end up with username@something, access denied, I am behind firewall (these days, who doesn't). I think the username being appended with @something is the root cause of access denying, but I couldn't find a way to get around it

View Replies !
Connect To Mysql Remote
I want to access my mysql server remote, I found that by default --skip-networking is on (Salckware - /etc/rc.d/rc.mysqld in /etc/my.cnf it is commented). So I deceide to remove it after that mysql doesn't want to start. So I try to run it "manual". I've run those 2 command:

(1)
/usr/bin/mysqld_safe --datadir=/var/lib/mysql
--pid-file=/var/run/mysql/mysql.pid &

This gives me:
Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/run/mysql/mysql.pid
060822 21:24:17 mysqld ended

(2)
/usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/run/mysql/mysql.pid --skip-networking &
This works perfect, but only with local connection, no remote connections :/

Any ideas ?

View Replies !
Can't Connect To Remote MySQL Server
I am developing a site on a remote cPanel system and I am not able to connect to the MySQL database from my location. My application can connect to the server using localhost just fine.

I have ensured that the correct port is open in the firewall (the server responds to telnet on that port) and I have added our IP address as an access host in the MySQL area of the client's cPanel but I am still unable to connect.
The exact error message when I try to connect is:

Access denied for user: 'user@<my IP>' to database 'user_database'

View Replies !
Connect To A Remote MySQL Server On The LAN
The MySQL setup on my WinXP machine runs fine with host localhost, username root, and my password. But I can't seem to access my databases from a different machine on my LAN. When I try to connect from another network PC , I always get:

MySQL Error No 2003
Cannot connect to MySQL server on 'remotehost' (10060)

All the settings in my ini seem correct. I've allowed TCP/IP connections. I know which port to specify. Did I forget to do something on the LAN to allow remote access? I've tried sharing the basedir and datadir folders. That didn't work.

I also tried using IPs instead of hostnames. Didn't work either.

When I try to ping the remote host (using MySQL Administrator), I just get a timeout error.

View Replies !
Remote Connect To Mysql Server
My host says that I don't need to login to my server in order to connect to my mysql server. They say all I need to do is enter this command into a mysql client:

mysql -h xxx.xxx.131.240 -u User -p Database
Password

However, they don't want to mention any client to use to connect with.
What client can I use? Putty? Where do I enter that command?

View Replies !
Connect MYSQL From A Remote Location
I can connect to MYSQl via PHPmyadmin...only on the localhost. What do I need to do - to connnect, say from home or off the localhost?

View Replies !
Connect To A Remote MySQL Server
I need to connect to a remote mySQL server. I have the IP address, userID, and password. When I try using these from another computer I get an "access restricted" error. How do I get to this remote mySQL server?

View Replies !
How Can I Connect To A Remote Mysql Server
How can I connect to a remote mysql server ...

View Replies !
Connect To Remote Mysql Through Terminal...help
Is it possible to telnet or ssh to my paid webhost's mysql through the terminal on mac os x without installing mysql locally? (using the terminal to control mysql ). I really don't want to install it locally if I can avoid it as I wont be using my computer as a server. If so how?

View Replies !
Connect To MySQL From Remote Server
I need to connect to a mysql database on another (remote) server. I've set up the user and granted all permissions, etc. and I can connect to it from some of my other websites, but not from the one I'm working on.

Here's how I granted my permissions:

Code:
GRANT ALL ON *.* TO 'user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL ON *.* TO 'user'@'%' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
And here's how I'm connecting:

Code:
mysql_connect('66.246.229.94','username','password');
As I've said I've been able to get this to work on some websites, but not the one's I actually need it for. Here's the mysql_error() I get:

Code:
Can't connect to MySQL server on '66.246.229.94' (111)
Here's the mysql phpinfo() for said site:

Code:
MySQL Supportenabled
Active Persistent Links 0
Active Links 0
Client API version 3.23.49
MYSQL_MODULE_TYPE builtin
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE no value
MYSQL_LIBS no value

DirectiveLocal ValueMaster Value
mysql.allow_persistentOnOn
mysql.connect_timeout6060
mysql.default_hostno valueno value
mysql.default_passwordno valueno value
mysql.default_portno valueno value
mysql.default_socketno valueno value
mysql.default_userno valueno value
mysql.max_linksUnlimitedUnlimited
mysql.max_persistentUnlimitedUnlimited
mysql.trace_modeOffOff

The "MYSQL_MODULE_TYPE" and "Client API version"

View Replies !
Remote Access :: Can't Connect To MySQL Server On {IP} (10061) In ..
I am facing problem when i try to connect to a remote mysql server using mysql_connect command.

It give error " Can't connect to MySQL server on {IP} (10061) in"

I have even added one user and gave it permission to connect from any host (%) and allowed DB rights too. I have checked that mysql variable -skip_networking is also off. There was fire wall installed on mysql server but that has been removed but still problem is not solved.

View Replies !
How To Connect To A Remote Host Using MySQL Command Line Client
I can't establish a connection with a remote host using MySQL Command Line Client. ODBC conn setup successfully. Databases on this remote host can be reached using Crystal Reports. I open MySQL Command Line Client > prompted to enter a password > done successfully so I can connect to local databases. The following is entered to connect to remote host:

mysql -h hostname -u myuserid -p

but once I hit enter nothing happens.

View Replies !
SLOW REMOTE CONNECTIONS
well i have read many many threads about mysql being slow on remote connections due a issue called dns look back, and dns round trips ive read many many times the solution its the to add this line to the my.ini skip-name-resolve.

but it mysql seens to ignore it since i still can use dns on the conections and the response times still 5 seconds or moreits not a network speed or latency issues cause once connection its established it works fine.

this its how my.ini on my computer looks like

[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-locking
skip-name-resolve

whats wrong there or what could i be possibly doing wrong.

View Replies !
Slow Connect
Does anybody know why it sometimes takes more than 10 seconds to connect to a database and sometimes it just takes half a millisecond?

View Replies !
Remote Connect
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.
How would I do this? Or what am I doing wrong?

View Replies !
Connect To A Remote DB
Is it possable to to have a program on my server that can access his db?

<?php
MYSQL_CONNECT("http://remotehost.com","db_name","pass_word")
OR DIE("Keine Verbindung zur Datenbank");
mysql_select_db("db")
or die("Didn't work again");

View Replies !
Connect To Remote Server
I have created a database in a remote host using MySQL 5.0. I created tables using the control panel of the host. I accessed the tables several times using the same procedure.

Recently, I downloaded MySQL Admin and tried to connect to the remote server. Nothing happens. It just froze there without any message or what. Is there a secret way of doing this? I can connect to a remote host in a local network but when it comes to using the internet via a router I always encounter this same kind of problem.

View Replies !
Remote MySQL Database
I have a MySQL Server in a Windows Box. How can I connect to the server
from another windows box using ODBC?

View Replies !
Unable To Connect To Database Server. Can't Connect To MySQL Server On 'localhost' (10055)
I am running a PHP application with mySQL . Some times it gives the following error.
I do not understrand why this error occures .

today i am using the application but it is not giving the error but error occures yested day .

Unable to connect to Database Server. Can't connect to MySQL server on 'localhost' (10055).

View Replies !
Can't Connect To Remote Host (10061)
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:
mysqladmin ping -h xxx.xxx.xxx.xxx

Code:

View Replies !
Mysqld Restarting On Remote Connect
I'm on FreeBSD 5.4 with mysql-server-4.1.18_2.
Whenever I connect to mysql from a remote client, I get:

Mysql error number 2013
lost connection to mysql during query

Also, the following is logged:

060506 09:47:25 mysqld restarted
060506 9:47:26 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
060506 9:47:26 InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 0 642388.
InnoDB: Doing recovery: scanned up to log sequence number 0 642388
InnoDB: Last MySQL binlog file position 0 79, file name ./isd-bin.018710
060506 9:47:26 InnoDB: Flushing modified pages from the buffer pool...
060506 9:47:26 InnoDB: Started; log sequence number 0 642388
/usr/local/libexec/mysqld: ready for connections.
Version: '4.1.18-log' socket: '/tmp/mysql.sock' port: 3306 FreeBSD port: mysql-server-4.1.18_2

mysql works fine from localhost and I've granted permissions to connect from certain remote hosts. I just don't know why mysql restarts when a remote host tries to connect.

View Replies !
How To Setup A Remote Mysql Database
i have a vb front end application and im using mysql as my database. i would like my vb application to connect in database through internet. so i setup my other computer ( windows 2000 ) as a server, i installed a webserver, enabled http, but when i try connect my application an error occured. which maybe mysql has not been setup correctly. i would just ask if anybody here knows how to setup a remote mysql database so my vb can connect to it.

View Replies !
Accessing Remote MySQL Database
Is it possible to access remote MySQL databases?

I manage several sites and I will soon be building a tool that can track all of them, and it would be really convenient if I could somehow access all of the databases from one remote site.

View Replies !
Connect To Remote Server Through Http Proxy
My work recently installed an http proxy and now I can now longer connect to remote servers using the mysql client on rhel 5 (both are human genome databases).

mysql -h genome-mysql.cse.ucsc.edu -u genome
mysql -h ensembldb.ensembl.org -u anonymous

I never had problems connecting to these sites before the http proxy was installed 1 month ago. Both statements above return the same error, so I doubt both are down at the same time, but I don't know.

ERROR 2003 (HY000): Can't connect to MySQL server on 'genome-mysql.cse.ucsc.edu' (113)
ERROR 2003 (HY000): Can't connect to MySQL server on 'ensembldb.ensembl.org' (113)

View Replies !
Accessing A Mysql Database On A Remote Server
i would like to know how to connect to a remote mysql server which is on linux from a windows system. I gave the command:

mysql -u root -p redhat -h 192.168.1.132, where the ip is the ip of the linux server. But i got the error message stating that :-

Host 192.168.1.114(which is my system ip) is not allowed to connect to this MySQL server.Sreejith

View Replies !
Connecting To Remote Database Via MySQL Administrator
I have used Sql Server and other databases extensively. I have the following questions.

1. I need to connect / manage a SQL database located on a remote web server runnin Linux. My workstation is running Windows XP. I understand that this is what MySQL Administrator is for. Is this correct?

2. Can I run both MySQL and SQL Server on my Windows XP machine?

3. What one book would be the most helpful to help me get a basic table setup?

View Replies !
Remote Connection To Mysql Database Using JDBC?
I am trying to set up OpenOffice Base to connect to a remote os x server with mysql on it.

It has the default mySQL JDBC driver class set to com.mysql.jdbc.Driver

It also asks for server URL, should this be the ip address?
Port number? Default is set to 3306.

When I set the class it says that the JDBC driver could not be loaded.

View Replies !
Connecting To Remote MySQL Database With CPanel
Is it possible for a remote server or even another account on the same server to access the MySQL Database of an account?

The reason I ask this is a I have a client who wants to set-up a second website but wants to pull a lot of the data from his existing website which is in a MySQL Database.

View Replies !
How Do I Enable Remote Access To MySQL Database Server
I want to connect to my mysql server which is seperate on an external server but i dont know how to enable remote access to MySQL database. The mysql server is on xp and running mysql 5.

View Replies !
Remote Mysql Server Not Recognizing CPanel Configured Database Users
Setup:

Cpanel/WHM Apache server, with Centos

Remote mySQL server running 64 bit LInux and 64 bit mySQL

Configured as a remote mySQL server, though WHM of Apache server.

After moving a few sites, I find that the mySQL server is not recognizing database users configured in cPanel.

View Replies !
Copy/move Mysql Data From Local Machine To Remote Server Database
I have an website that is host on web server and here have a database that have only one table name is "user" Table fields are:
name
Id no
email
phone

And I am using same site in my local machine. I always use my local machine for data entry and everyday end of the day I want to transfer data by clicking one button from my local machine database table to my remote server website database table.

How can I transfer data from my local machine database table to my remote server website database table.

View Replies !
MySQL Remote Backups - No Access To FTP Or Remote Command Line
I have a mySQL database located on a remote host's server. I would
like to schedule a task on my local Windows computer to retrieve a
backup/dump of this remote database.

I have contacted my host, and they indicated that the server is only
open to the Internet via mySQL. Therefore, even if I did have access
to that server's command line (which I don't) to create dumps via
mysqldump, I would not be able to retrieve via FTP.

Does anybody have any ideas as to how I can generate backup files from
my local computer through a local command-line interface? I have done
it through a GUI (DBTools), but I would like to have it done via DOS
batch, so that I can schedule it. Does anyone know of any mysql backup
GUIs with command line switches? Or can somebody recommend an
alternate means of getting a local backup?

View Replies !
I Cannot Connect To The Database Because: Host Server.name.net Is Not Allowed To Connect
I need to access a database on one server from another I get this error message:

I cannot connect to the database because: Host server.name.net is not allowed to connect to this MySQL server

I am guessing there is an allowed file somewhere that I need to add my server to. can anybody tell me where and what this file might be? if it is not a file, how do I accomplish this?

View Replies !
Can't Connect To Mysql 5 Database.
I just installed the latest one but when i try to connect to it with MySQL administrator it sais im connecting to an MySQL 3.x server. and that it can only connect to 4.x ore higher.May it be something wrong in the setttings causing this error?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved