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.





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 Complete Forum Thread with Replies

Related Forum Messages:
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 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 !
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 !
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 !
Could Not Connect To The Database, Please Recheck The Settings You Specified. Also Make Sure That A Database With The Name You Specified Already Exists On The Database Server. PhpAdsNew Will Not Create The Database For You, You Must Create It Manually
The error message I get above is the same everytime when trying to install phpAdsnew. I have tried everything. I am hosted through yahoo! and have actually succesfully installed scripts before even though I know nothing about it. Now that I have a "auto-install", it does not work. Yahoo! also offers php-nuke with the auto-install where you just click a few buttons, and I get a similar error stating that it can not conect to the database.

Please can anyone help me and tell me what I am doing wrong?

View Replies !
Slow Database Retrieval
iwhat would be the cause of our problem? i don't thnk it has someting
to do with the way i run my queries from my applications since i do
not encounter such problems on our old machine..Also i tried to
execute queries from my sqlyog :
ex:
select * from db_town
result: 8902 rows() in 2687 ms
where on the old server it should take only about 421 ms

select * from diagnostics_detail
result: 42499 rows() in 27609 ms
where on the old server it should take only about 4375
ms.

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 !
Slow Database Connections Between 2 Different Servers
I have 2 dedicated servers with different hosting companies.

It is taking about 4 seconds to get a database connection, either by using JDBC driver or from the command line.

If I do telnet to port 3306, it is instant.

Any ideas on what might be causing this or where I should be looking?

View Replies !
Can't Connect To Database V 5.0
I have installed the 5.0 version. I can access the Server Instance Configuration but need to access MySQL Administrator to set up access to my database at home for a remote connection. However, I have no idea how to gain access into Administrator. I have read the tutorial but can't gain access into Administrator.

I know my local machine ip address and have used this as the host name but am not clear on the rest. Do I need to be using the same user/pass from the Instance Configuration to log into Administrator? If so, this isn't working.

View Replies !
Connect To My Database
My question is, is there any other way to access my mysql database besides going through my godaddy account? I want someone to take a look at my database but don't want to give them access to my godaddy account.

View Replies !
HOW TO CONNECT TO THE DATABASE
im using vb and trying to connect to sql database using ODBC but error occurred.

Could not connect to specified instance
MySql Error Number 2003
Cant connect to to mysql server LOCALHOST

View Replies !
Cannot Connect To Database
I am using Sql 4.19 and php4 with Apache 2.o55 on Windows XP home. The first time I got the error I was trying to install a PHP script (someone elses)I was setting up the database and I know I was putting in the correct info database, pass, user I got an error saying something like SQL says cannot connect to database at odbc@localhost, something like that I did not pay to much attention I thought it was just the script and blew it off.

Now I am trying to install another script which also asks for this same info, user, database, pass again I know I am putting in the correct info and the script sends me back an error saying cannot connect to database please check your information again. I shut my firewall off briefly to see if that was blocking connection...no. So now I am stumped.

View Replies !
Bad To Connect To Database
Is it a bad practice to connect to the database on every page?
For example, I have 3 connections to the database on one of my page.
1. One connection to check whether a user is logged in
2. Another connection to get result from table 1
3. Another connection to get result from table 2

Is it going to slow down the process a lot?
What is the correct or better way to do this?

View Replies !
Connect Database From Java And Php
I would like to connect mysql from java, i have downloaded MyODBC but
i have a problem.

View Replies !
How To Use Jdbc To Connect To Database?
I have installed MySQL4.1.9 and installed JDBC driver connect J/3.1 I installed MySQL in C:MySQL and I have copied the "mysql-connector-java-3.1.6-bin.jar" file into <java home>jrelibext , <java runtime environment home>libext and <Tomcat Home> commonlib.

I started up MySQL from the commandline client and created a 'books ' database using "CREATE DATABASE books;". I have also added the statement: GRANT ALL PRIVILEGES ON *.* TO '<user>' IDENTIFIED BY '<password>' WITH GRANT OPTION;

The problem is when I try to use java to access the database via jdbc. I typed the code:
Connection con = null;
Class.forName("org.gjt.mm.mysql.Drive").newInstance();
con = DriverManager.getConnection("jdbc:mysql://localhost/books ?user=<user>&password=<password>");

It compiles correctly but when i execute the code,it displays: "SQLException: java.sql.SQLException: Incorrect database name 'books ' "

I changed the statement to:
con = DriverManager.getConnection("jdbc:mysql:books ?user=<user>&password=<password>");
but when executing,the message now is: SQLException: java.sql.SQLException: No suitable driver

I have tried checked the jdbc manuel online but the con statement given is about the same. It seems that somehow jdbc cannot find the database and the driver is not recognised also.

View Replies !
PHP Applications Can't Connect To Database
I'm using WinXP and I've installed MySQL 4.1.14 and PHP 4.4.0 on it recently so I could test some PHP applications (shopping carts, CMS etc.). I've also installed a GUI (SQLyog) and I can access my
DBs fine through that - add & delete tables - and I can add usernames/passwords through the MySQL command line client. So that's all fine.

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 !
Could Not Connect To The Database "
My setup is: WIN2003, IIS6, PHP 5.2.1, MySQL 5.0.24a

I don't know what is wrong with my server.

I have 3 different php forums on my server, they were working fine with MySQL untill I updated php.

Not I only get the "phpBB : Critical Error

Could not connect to the database "

Nothing else.

What I do know is that php works, I have tested it with the php test file. But I can't get it to work with MySQL.
To get php work again took more that 6 hours for me.

I have found one thing that might be wrong. In "System variables" there is a "function" called "PATH". I did not have any information at all under the "PATH", form what I understood there should be several paths there to exe and similar files? Maybe there should be something there pointing to the MySQL directory or something.
That is just a guess from me.

Do anybody here know how I should write a test from phpmyadmin to see if I could connect to MySQL. In another forum they answerd that I should test if I could connect to the database from phpmyadmin, but not how.

View Replies !
How To Connect To MySQL Database
I have a program run in mysql database flatform (note that this program run and creat some mysql talble- i must not install mysql server). Now i want to connect to this database to view these table. I have tried to use mysql control center but it doesn't work (i think it because my program not have mysql server)

View Replies !
Connect One MySQL Database To Another
I need to connect a MySQL database on one server to another MySQL database on another server. The situation is similar to DBlinks in Oracle.

I know if you want to connect to another DB on the same server, you can use something like:

select a.cola, b.colc from thisdb.tablename as a, thatdb.tablename as b where a.colb = b.colb;

I need something similar but both databases reside on different servers altogether. Is it possible in MySQL and how can it be done?

View Replies !
Can't Connect To MySQL Database
I have searched all over for a resolution. I have exported the database structure and saved as SQL Server Query File. I uploaded the file to a new server with all php pages from the web site and I can't connect to the database. The only error I get is a generic from the original programmer that the username/password can not be found. However, when I create a sql statement from MyPhpAdmin I get the user result.

Does anyone have any suggestions why I can't get my results while using a login form from the website.

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 !
Unable To Connect To Database
im geting this error in really big text

iLogin Error:Unable to connect to database. Please check your iLogin MySQL server, username and password configuration options.

i was told it may have somthing to do with enable mysql in php.ini ???

View Replies !
PHPBB Can't Connect To Database
So i'm running Apache, PHP, and MySQL 4.x/5.x (i've attempted both) on Win2k.
When i try to install phpBB2 it says it can't connect to the database

Connection to database
You have not established a connection to MySQL 4.x.
ERROR: Access denied for user 'ODBC'@'localhost' (using password: NO)

Your database was not found.
ERROR: Access denied for user 'ODBC'@'localhost' (using password: NO)

View Replies !
Cannot Connect To Mysql Database
I am creating a html page to allow user submit their inputs in the text fields and the inputs they inserted will be submitted into the table "account" which is in "myfyp" database. I created the database using the PHPMyAdmin and I am using localhost as the webserver.

The problem now is I cannot connect into the database which I received the connection error message as I have set in the codes. The PHP file which is linked with the HTML form i created is namely "register.php", while the connection file is "connect.php", and the HTML form is "register.html". Code:

View Replies !
Connect To Database Without Socket ?
I'm in the process of migrating a website to a new host and found to my horror that all of my database connections stopped working.

This is my old code...

mysql_connect(localhost,$username,$password);
mysql_select_db($database)or die("Unable to select database");
...which I'm accustomed using and it worked just fine on my old host.

But this code on the new host is giving my the following error message...

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Unfortunately, you cannot make connection through socket, please use MySQL settings to establish connection. The correct MySQL database settings are:

• DB Host: See your MySQL Database Manager section under DB Host column;
• DB Port: 3306
• DB Name: The database name you have assigned, listed inside Database Manager section of your Control Panel;
• DB Username: The database username you have assigned, listed inside Database Manager section of your Control Panel;
• DB Password: The database password you have assigned;

View Replies !
Connect To A External Sql Database
iam letting users download free php scripts. On the footer of my scripts i have a place for all my ads, users can pay to get rid of the footer, to pay they have to register, then they can delete the footer, the config.php file is on my server which has my database connections, but wont let me connect, this is the config file

$dbuser = "user_test";
$dbhost = "www.mysite.com";
$dbpass = "password";
$dbname = "database_test";

View Replies !
Cannot Connect To MySQL Database Using An Applet
I have a database I created in mySQL. I've been entering data every day
into the database using a Java application that I wrote. The database
and the Java program are on the same Win 98 SE machine.

I've been working on another program (an applet) to send and receive
data over the internet. I got the applet to connect with the database
and receive data. All the while I was developing the applet, I would
tell it to find the database at 127.0.0.1 if I wasn't connected to the
internet, or I'd give it the current IP address of my connection if I
was. This seemed to work fine all along.

Now that the program is nearing completion, I uploaded a copy of it to
my personal web space to give it a "real-life" try. Code:

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 !
Steps To Connect Network Database
help me to connect to MYSQL Network Database. IN my webserver, phpadmin is installed. What and how i need to configure my local machine to connect the database. I 've installed mysql 4.1 and MY ODBC 3.51 in my machine but i was not able to connect it.

View Replies !
Connect To MySQL Database Remotely
Im trying to connect to my MySQL database from a remote server. Im using the below asp srcipt but im having no luck. Im getting this error:

[MySQL][ODBC 3.51 Driver]Can't connect to MySQL server on '83.146.35.143' (10060)

Can anyone tell me what i need to download to get the connection working or what settings i need to change? Im happy to change the driver im using. Im using Unbunu Server with MySQL 4.1.1 . Code:

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 !
Can Connect Mysql Database Through Router?
i have already used mysql server with many application done for testing for personal purposes, but i have found a issue that i cannot solve yet.

I installed a mysql server in a computer far away from where I stand, the thing is the ip address of this computer is given by a router and it is impossible to me to make a good communication to that server.

Is there any application, software o a possible way that i can communicate to this server?.

View Replies !
Can't Connect To Database After MySQL 4.1.10 Upgrade
I using Apache 1.3.31, PHP 4.3.8 and MySQL 4.1.10 on Win XP home edition. Prior to MySQL 4.1.10, I was using MySQL 4.0.18. The PHP scripts were able to connect to the database. After the upgrade, PHP scripts can't connect to the database.

Are there any specifications for MySQL 4.1.10 to work with PHP/Apache??? I would like to try to solve this before using the "System Restore" option.

View Replies !
Connect A FTP Server With A MySQL Database
I want to connect a FTP server with a MySQL database but I don't know if it possible...
In fact, I have a FTP server with some documents and I want to store these documents in my database... Is it possible?

View Replies !
Connect To MSSQL Server Database
I have situation where need to connect MSSQL Server 2000 database as need data from SQL Server 2000 DB. This connectivity will be using in the Store Procedure.
can we use Linked server in MySQL? I have searched but couldn't find any article or literature on it.

View Replies !
Client Can't Connect To Database Anymore
I am experiencing some difficulties on a computer on which a mysql 4.1 server is running.

I myself, am an complete newbie to the mysql-world. I know practically nothing about it. All I want to achieve is fixing the following problem:

A couple of days ago I installed a test server to run drupal (a CMS) on this computer (using the following tutorial: http://drupal.org/node/161975). Unfortunately, the other client used on this computer, can't connect to its database anymore. The server doesn't seem to be online. I suppose I also did something wrong with the user-settings.

When I start up the program, I get the following error message:
-2147467259 [MySQL][ODBC 3.51 Driver] Access denied for user '....'@'localhost' (using password: YES) Retry?
(... being the username).

When i try to connect to the server in the windows shell, I get error 2003: Can't connect to MySQL server on 'localhost' (10061).

View Replies !
Unable To Connect To Database Manager
id 'root' and the password I set during the configuration process.
I have had php connectivity issues and when I run the php document below, I get the error, <p>Unable to connect to database manager.</p>Could not connect: Access denied for user 'root'@'localhost' (using password: YES)," displayed in the browser.
This is the php that I run:

<?PHP
//remember to change the password to whatever you set
//it to in mysql instance configuration

//first parameter is server name, 2nd username 'root', 3rd is password
$rst = @mysql_connect("localhost","root","root");

if (!$rst){
echo( "<p>Unable to connect to database manager.</p>");
die('Could not connect: ' . mysql_error());
exit();
} else {
echo("<p>Successfully Connected to MySQL Database Manager!</p>");
}...

View Replies !
Can't Remotely Connect To MySQL Database
I am trying to connect to a MySQL database remotely.

I have two ubuntu machines 192.168.0.3 (ubuntu 8.10) and 192.168.0.6 (ubuntu 8.04). I have edited each of their /etc/mysql/my.cnf and changed them to include bind-address = 192.168.0.3 and bind-address = 192.168.0.6 respectively. Neither has the line skip-networking.

I have logged into mysql locally on each machine and entered the following command:
grant all on mythconverg.* to 'mythtv'@'%' identified by 'mythtv';

When I run
mysql -u mythtv -h 192.168.0.3 -p
on the 192.168.0.6 machine I get the following error:
glen@glen-desktop:~$ mysql -u mythtv -h 192.168.0.3 -p
Enter password:
ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.0.3' (113)

When I run
mysql -u mythtv -h 192.168.0.6 -p
on the 192.168.0.6 machine I get the following error:
glen@glen-desktop:~$ mysql -u mythtv -h 192.168.0.6 -p
Enter password:
ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.0.6' (111)

View Replies !
Connect To Database With Passworded Accounts
I am migrating my databases from mysql 4.0.x to 4.1.7 and i'm having the following problem:
When i create accounts with passwords, i can't connect to databases with them. It only works with non-passworded accounts. I tried to put old_passwords=yes in my my.ini file, but it didn't work.

View Replies !
Even Root Cannot Connect To Database 'mysql'
The version of my mysql server is 3.23.58. Before hand, everything works fine. However, when I connect to the data server sit in host 'A' from host 'B' by jdbc. As mysql's user table denied the access from host 'B', I know when attribute 'host' in table 'user' is set to '%' will fix the problem, However, I set it graphically from phpmyadmin.

After setting, the direct result is I cannot connect to any databases in this server@A even from A the error msg is: ERROR 1044: Access denied for user: '@localhost' to database 'mysql'. By googling, I copied the 'user.frm', 'user.MYD', 'user.MYI' from another host to the corresponding path in host A and restart mysqld.

It doesn't work. Then, I tried 'mysql_install_db', gone in vain either. It cost me nearly 2 whole days . I have many important databases stored in this server, I am afraind the install of a new one will bring more problems. Any suggestions, or ideas?

View Replies !
Connect Table Content To Database
Is it possible to store the content of a table to a database just by clicking a button?
If so, plz give the exact coding of that.

View Replies !
Connect To MySQL Database From Another Host
I am trying to connect to MySQL database at on host (DBhost) from another host (PROGRAMhost).

While I try to connect to the database at DBhost from DBhost itself the next is working fine for me: mysql_connect("localhost","dbname","dbpassword")

Now I am trying to find out what to use instead of localhost? I tried to replace localhost with host's url : port (I tried number of ports) but this is not working (even when I am connecting from DBhost itself). How can I find out what is the proper value to use instead of localhost?

View Replies !
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 !
Connect To Database On My Free Server From Home
I have my website hosted on a free server and I want it to connect to the database on my home computer, how do I do that?

View Replies !
ERROR 1044 (42000) :: Can't Connect To Database
I created a database that is over 2GB in size and I have been using it all day with no problem until I ran a command that was taking forever. Because the database is so large, I terminated the mysqld-nt process. (I can't get any ctrl-break to work. Is there something like that I should know about?)

Anyway, I restarted mysqld-nt. Then I started mysql and ran SHOW DATABASES. The new database is not in the result. The files are there where I can see them, but I don't know how to have them show up on the list.

When I run the command "USE <databasename>" that doesn't work. I get the message

ERROR 1044 (42000): Access denied for user ''@'localhost' to database '<databasename>'

Is there a way to get connected?

View Replies !
Connect Database To Make It Work In Another Computer
i have been working on this Visual basic 2008 project for quite awhile now, the program has all sort of menus e.g add customer, delete customer, amende customer etc..."thats only one database but for other forms like pre-order will have another database" it is now almost done what i would like to know is that how do i have the application installed in two different computers and be able to amende customers, delete customers, add customers etc.. from both PC's? bassicly connect all my databases so they can work in 2 PC's over the internet!

How do i go about this guys? all my databases were created with access do i have to use SQL?

View Replies !

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