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




Query Log Shows 12+ Attempts To Connect Every Minute


I have mysql-4.0.20a-nt running on windows 2000. I had trouble connecting from a different computer in my home network so I set the following in my.ini:

set-variable=log=mysql.log

At startup I get the mysql.log file in the data directory. Upon inspection it shows a lot of connect commands, at least 12 every minute, with some 10 seconds in between, they come in pairs, first as ODBC@localhost with no password, and second as user@localhost with a password set. Access seems to be denied every time. Here's a snippet from the file:

MySql, Version: 4.0.20a-nt-log, started with:
TCP Port: 3306, Named Pipe: MySQL
Time Id Command Argument
050320 20:38:08 1 Connect Access denied for user: 'user@localhost' (Using password: YES) ....




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Too Many Failed Attempts On The Connect,
I just discovered of that our new Server’s MySQL is too many failed attempts on the connect, anyone know why? It is about 63K and over 40% of that.

Do it is MySQL Server problems or that is the PHP Program have something wrong?

I am using MySQL 5.0.45

Any one can go here to see the phpmyadmin output


Connections ø per hour %
max. concurrent connections 34 --- ---
Failed attempts 63 k 930.86 40.28%
Aborted 0 0.00 0.00%
Total 157 k 2,310.77 100.00%

Date_sub 75 Minute Ok?
I have been using date_sub to update rows older than ƈ hour'. That isn't fast enough but I don't want to drop to an hour.

can i do ྖ min' or ྇ min'. Does date_sub mind that the minutes exceed an hour?


Interval 60 Minute
I'm a php+mysql newbie, but I'm trying to get the following statement working to delete all the records with status 4 and with more than 60 minutes, but I can't get it work, it only deletes records with more than 1 day, anione can help me to understand this?


$result = mysql_query("SELECT orders_id, FROM orders where orders_status= '4' and date_purchased< DATE_SUB(UTC_TIMESTAMP(), INTERVAL 60 MINUTE)")
or die(mysql_error())

7e2 Shows Up As 7.00E+02
I have value that I'm adding to a table via an insert statement. The value is "7e2", but for some reason is being converted to scientific notation on the insert "7.00E+02". I have quotes around the field as well. If you look at the insert statement below, it's "question" field. Anyone know of a way to force it to be a string?


$sql = "INSERT INTO ICI_ANSWERS (session_id, scale_id, question, answer, date_stamp) VALUES ('" . $piece . $data[0] . "', " . $data[1] . ", '" . $data[2] . "', '" . $data[3] . "', '" . $data[4] . "')";

Opened_tables Always Shows Zero
When I log into any of our db servers, go into mysql on the command line, and do a 'show status', the value of Opened_tables is always showing 0.

However, when I log into mysql via the MySQL Administrator and look under Health-->Status Variables it shows a value.

Any idea why it's always showing zero when I do it from within mysql on the command line? It's happening on multiple servers.

MySQL Only Shows Homepage
I have a problem concerning MySQL and Apache. I host a Fedora server with Apache, MySQL and PHP installed. A customer has a webpage that uses MySQL but for some reason I can't get any other pages than the homepage up when I click on other links, I just come back to the homepage. The URL displays the other link but it still stays the same. Code:

'datetime' Shows Only '0000-00-00 00:00:00'
I currently have a form set up on a site to send data entered into a database.
Now, the form submits correctly, the data is stored in the database correctly,
but the 'datetime' shows up as '0000-00-00 00:00:00' in each record.

I set the datetime variable to 'not null' and when I update the table, it sets the
default value to '0000-00-00 00:00:00'. Am I forgetting to set something or
where and how does the form get that date and time info?

Querying Only Shows 3 Columns
I have a mysql database set up with 20 columns but when querying the database only get 3 columns listed. The code i am using is as follows.
// connect to server, database, table.
include ("db_connect.inc");
SQL-query:
$sql = 'SELECT * FROM `signups` ORDER BY `title` ASC LIMIT 0, 30';

Is there a problem with my coding or the database itself? and what are the fixes for this problem?

Error Shows The E-mail @ Sign..?
I am gettin an error msg when trying to enter my newsletter registration details to the database.

function process_nl($id) {
$name=$_POST['txtname'];
$email=$_POST['txtemail'];
$SQL = "INSERT INTO nletter (name, email) VALUES ($name, $email)";
if(mysql_query($SQL,$id)) {
return true;
exit;
}
else
return false;
}

error:
You have an error in your SQL syntax near '@yahoo.com)' at line 1

Phpmyadmin Shows ???? Of Korean Data
My machine is windows xp sp2 with Apache HTTPD 2.2.0, MySQL 5.0.18, PHP 4.4.1 pl1 phpMyAdmin 2.7.0-pl1.

And the settings of apm is;

1) httpd.conf
DefaultLanguage ko

2) php.ini
default_mimetype = "text/html"
;default_charset = "iso-8859-1"
;default_charset ="utf-8"
;efault_charset = "euc-kr"

3) my.inf
[mysqld]
character-set-server = utf8
collation-server = utf8_general_ci

On my test site, I can see right Korean data.
But on phpmyadmin I can see only ???? for Korean data.

Musql Dump Shows Error
I am trying to backing up a databse .

I open the command promt form start > run;
i wrote the command "mysqldump --opt kimberly > backup.sql"
kimberly = database name;

the error comes out :

mysqldump: Got error: 1045: Access denied for user 'ODBC'@'localhost' (using password: NO) when trying to connect

Arabic Character Encoding Problem (shows Just ????????)
i have a problem and i did not found a solution untill now and i hope i found it here.
when i try to enter the arabic characters throw the browser to the mysql DB using phpmyadmin it does not enter the arabic characters but strange characters
but when i fetch the data to the browsers it shows the characters in arabic.
(the is the first problem)

the other problem is ...
when i write directly to the phpmyadmin in arabic it shows me the arabic characters inside phpmyadmin and when i fetch dhe data to the browsers it shows to me only question marks ??????????????????.
#########################
inserting throw browsers = displaying ok in browsers but not ok in phpmyadmin
inserting throw phpmyadmin = displaying ok in phpmyadmin but ???????? in browsers
##########################


Date Field In Database Shows 0000-00-00 00:00:00
i have the following in my list of variables (partial list):

$id = $_POST['id'];
$name = $_POST['name'];
$date = date("D, d M yyyy, h:ia T");

and my connection includes:
$sqlquery = "INSERT INTO $table VALUES('$id','$name','$date')";

all other values are posting except the date.

in the mysql database, the date field is set up as follows:

Field Type Null Default
date timestamp Yes CURRENT_TIMESTAMP

my objective is simply to add a date field with the current date and time. i want mysql to insert the date for me in the format resulting in this type of output:

Fri, 19 Aug 2005, 10:23am CST. i just wasn't sure whether i was supposed to
include the date variable or not.

MYSQL Date Entry Shows 0000-00-00
i want the user to type in the date. Everything works fine and the form submits. When i open the database and query the results, the date field shows only 0000-00-00. It doesn't show the date entered (ex 05/23/07). What am i doing wrong?

I'm thinking it has to do something with converting the string to a date? If so, how do i do that in PHP.

Command SHOW SLAVE STATUS G, Shows That SLAVE_IO_RUNNING
I am trying to set up a master/slave replication.. I followed the instructions in the mysql manual.. I am using mysql 4.0.12 installed in windows xp... I have found out that the replication is not working ...

when i make the command SHOW SLAVE STATUS G, it shows that SLAVE_IO_RUNNING : No.
How can I make this run? What could have I done wrong?

Mysqld Shows High Cpu Usage Over Extended Time, Restart = Normal
Occasionally in checking one of the servers, I noticed that mysql shows 85% + of
cpu usage essentially leaving the server at 0% idle. After monitoring it for a
few hours, the status did not change. After a stop and start of mysql, things
progessed normally. Checking back a few days later I noticed it was once again
sitting up there at 95% (or thereabouts) and doing nothing of value from what i
could tell.

Have restarted MySQL during peak usage times for that server and its database,
and it has showed normal loads and CPU usage (approx 20% CPU with .1 to .3
load). Is there a known issue (running on FreeBSD 4.8, MySQL 3.23.55 MyISAM)?
Is there something I should check when next I notice the high CPU usage?

Can't Connect Using MySQL Query Browser
I'm having a little problem connecting remotely to my MySql database. First a little background on my setup. All machines are on my home LAN behind a router. Linux Machine; Ubuntu Linux with MySql installed and running without a problem, command line. Windows XP machine with MySql query browser client installed.

The problem comes in with trying to connect the XP machine to the Linux box to access the sql tables. It mainly says it can't connect to my database/schema. I know the database is fine(or at least it seems) because I can SSH over to it and run queries without a problem. I've tried using the IP address, the machine name to connect but nothing works. I've investigated the .sock files, ports and for some reason I can't get a good connection with the Windows client software to my database.

Connect/ Join Query Multiple Dbs Multiple Servers
Struggling to connect simultaneously to remotehost@my_ip_address
AND localhost@my_field_db FROM my_field_tablet_pc to affect
a custom sycnchronization that SQLyog will not allow.

Both remotehost and localhost are built on WAMP stacks.

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).

&quot;Connect By&quot; / Connect By Prior Clause
One thing that very annoying me in SQL SERVER is the lack of the "connect by" support. The other thing is that in order to take advantage of multi-processors/cores system, you have to pay a good deal of money.

Therefore, I'm examining MySQL now & wanted to know if there is a "Connect by" support in MySQL? It's not just syntax issue, but also performance issue. Anyhow, it's far more comfortable.

How Can I Make A Query Like Microsoft Access, And A Query From A Query
I am new to MYSQL and am trying to understand how to make queries... I am moving from Microsoft Access where it is GUI driven and easy!

I can make a simple single query using MYSQL Query Browser, say:

qry1: SELECT ID, Area FROM data GROUP BY Area

How can I store this as a query inside MYSQL, rather than having to code it each time?

In Microsoft Access I could enter a variable ($VARIABLE) and then pass by code to the query:

qry2: SELECT ID, $VARIABLE FROM data GROUP BY $VARIABLE

How can I store this as a query and then pass the variable from code?

In Microsoft Access I could base a query on the results of another query, so following example above:

qry3: SELECT qry1.Area, data.ID FROM qry1 INNER JOIN data ON qry1.Area = data.Area;

How can I store this as a query in MYSQL.

Connect From Www.1.com To Www.2.com
PHP

<? /*--------- DATABASE CONNECTION INFO---------*/ $hostname="www.1.com"; $mysql_login="myusername"; $mysql_password="mypassword"; $database="mydatabase"; // connect to the database server if (!($db = mysql_pconnect($hostname, $mysql_login , $mysql_password))){   die("Can't connect to database server.");     }else{   // select a database     if (!(mysql_select_db("$database",$db))){       die("Can't connect to database.");     } } ?>

CONNECT Or USE ?
We have a shell script where the mysql query occasionally hangs. I notice that the query uses CONNECT instead of the more usual USE. Can't actually find any info on the CONNECT command but it seems to work.

e.g.
TITLE=`mysql -u$DBUSER -p$DBPWD -h$DBSERVER -N -e "connect orinfo;select title from task where taskid='${TASKID}';"`

what to use, CONNECT or USE in this case?

Also, the taskid column is an integer. Could where taskid='${TASKID}' be confusing mysql because I have single quotes indicating a string?

See Once ! &amp; Help Me , Can Connect ! After I Can't Do ....... ?
the older thread goeing on, so i started new one,

Now i can get a connection, but i can't do anything with this connection
whenever i attempt to select a database or tables,
it saying permission denied, see my code once Plz

$con=@mysql_pconnect("localhost","root","abcd");
if (!$con)
echo "<br>Unable to connect",mysql_error();
else
echo "<br>connected",mysql_error();

$dbcon=@mysql_select_db("project",$con);
if ($dbcon)
echo "<Br>Database Selected";
else
echo "<br>Database not selected",mysql_error();

I got this as a result
connected
Database not selectedAccess denied for user: 'root@localhost' to database 'project'

the same thing happens in console also

Can't Connect
I was using Mysql-front to connect to a server running linux. I swapped
out my old desktop machine for a new one and now I can't connect. What
could I be missing on the new machine? They were both running windows 2000.

How To Connect To A SQL DB?
I have a MySql Database with some information which I would like to display on a screen! It sounds quite simple, but seems to be a big issue for me!

I stored the following script in a index.php file and open it in my browser over http://localhost/index.php. However I only get an empty page back without any error msg.
If I delete everything apart from <?php print("Hello"); ?> It works fine

PS: If I open the DB directly with Webmin the path is https://localhost.localdomain:10000/mysql/ and not local host? Does this make any difference? Code:

How To Connect
i using NetBeans 5.0 to connect to MySQL 5.0 database. the connection can work in the server computer but cannot work if i use different computer to connect. how to i set for remote connection.?

Cannot Connect
I am trying to install Textpattern - after correct upload, I have entered the correct MySQL username, password, and database. It's linked to the right path - I click next during installation and get the following:
Checking database connection…


Warning: mysql_connect(): Can't connect to MySQL server on 'localhost' (10061) in D:hshomesimplymysimplymysims.com extpatternsetupindex.php on line 195

Can’t connect to database.

Can Connect To My Db
just installed php 4, mysql server 4.1 and apache 2.0 on my winxp machine. i can connect to my db and create tables using mysql administrator program with the root login, but i can't connect to my db using php for some wierd reason...

Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:Program FilesApache GroupApache2htdocsswordsOfTwilightinsert.php on line 13
Unable to select database

<?
$user="root";
$password="----------";
$database="swordsoftwilight";
mysql_connect(localhost,$user,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query=$query = "INSERT INTO members VALUES ('','Sinstone','--------','Paul Georges','20','Quebec, Canada','sinstone@gmail.com','')";
mysql_query($query);
mysql_close();
?>

Connect Using Asp
I have downloaded MySql 4.1.9 v and also the administrator zip which i found i mysql.com ,the odbc driver for mysql and the query browser.I have installed them and works fine.I can connect and also i have created a new database with a table inside.I have some questions and need to be answered.

1.How can i connect to mysql using ASP .I don't want to use odbc because i have found some examples for this.I want to use OleDb.Is it possible from an asp page to do that?Meanning with this that connect using oledb?

2.Where can i define the length of the database?Where can i find how many rows can accept?And how can i change that?Meaning with this what is the size of the database and how many rows the tables can accept.

3.For now i 'll test the database using the localhost or 127.0.0.1.I'm planning to be hosted from an ISP which is offering me a MySql database.Which are the files needed to deploy the database i have created on my machine?What else is needed to upload and fully function mysql database?

4.In most of the examples i looked at I saw that the passwords and the user name are written inside the asp page.How can i encrypt the password and the user name in Asp?

5.Is there an example using Myssql with Asp?

Can't Connect
I'm very new at this,to my understandig mysql supposed to be a built in db ,when i'm trying to connect i'm getting " error 1044: Access denied for user :@lolocalhost to database 'mysql'


when i'm trying to open DB the database i'm suuposed to be working on iget the same error. I didn't created it.
It saved in mysql/data.
I can query it from "mysqlmanager" but can't connect from the command line!!

The target is to connect to it from PHP file but I get no response there.

Cant Connect
Ive been digging far and wide and im using the old password option, like its mentioned here
http://forums.mysql.com/read.php?38,2511,5323

Ive also downloaded and installed the mysqli extension
http://dev.mysql.com/downloads/connector/php/

But I still get the same error. What could I be missing ?

Connect To DB
I have an application built for science students to design lab reports and the teacher and student information is all stored in a mysql database. Some schools have no trouble connecting, but others are behind a firewall and their schools won't open a port in their firewall.

Is there anyway they can connect to, get data from, and send data to my DB without using an open port in a firewall?

Can't Connect
I've just started trying to setup MySQL, PHP and Apache for the first time.
When i open the Command Prompt and try to connect to MySQL it says:
'cannot connect to MYSQL server on 'localhost' <10061>'
any ideas where i have gone wrong or what i can do to fix this? I'm learning how to use it from 'Build your own database driven website using PHP and MySQL'. I'm trying to change the root password with:

mysql -u root mysql

But i keep getting this can't connect to 'localhost', '10061'. Could this be that i need to configure it differently when i install it or something?

Cannot Connect
But when i was trying to install phpnuke onto my 000k server using fantastico this error on step 2/3 came up. It is a different laguage to me. can anyone help me becuase my wsp isnt replying to me i cant tell if its what ive done or if it really is the server.
Install PHP-Nuke (2/3)

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /tmp/cpanel.hellsa1.1103044263.22926 on line 4963
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
I did delete all the stuff out of my public_html folder. A folder cg_bin was recreated but like i said i have no idea.

Can't Connect From PHP
I installed mysql 5 on a MS-XP machine running apache 1.3 and php 4.

When a php script attempts to connect to mysql using
mysql_connect($host, $user, $pass)
the following error appears:
mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL ...

When I use the same hostname, username and password via the commandline or from a GUI frontend, the connection works.

Connect From
how to connect from home host to my hosted msql
from phpnuke config its sayes localhost how do i get the real
ip of the host idont want the localhost

Connect To DB
I would like to connect to my database using the command line prompt. My database is on a remote server. This is part of a hosting package that I have purchased for my website.
I currently use phpMyAdmin to access my database. However I would like to use the command line.
I found this page on this site:

http://dev.mysql.com/doc/mysql/en/connecting-disconnecting.html

However I still have no idea how to connect to my database. I don't know where to start. Do I just bring up the command prompt? Do I have to start in a specific directory?I am running Win XP Pro

Could Not Connect To The Specified Instance.
Trying to login but mysql query browser adds my ISP IP/Name after the username and I get this error: Could not connect to the specified instance. MySQL Error Number 1045 Access denied for user.....

Cannot Connect To MySQL
there is an error when I try to open my page

Can't connect to MySQL server on 'localhost' (10061)

I deleted on of the database that came with MySQL and now I can't connect to it.

Cannot Connect Using Password
I'm having problems connecting to mysql when using a password. If I do

mysql -u richard

then it connects fine. When I supply the password

mysql -u richard -ppassword

then I get then error message

Access denied for user 'richard'@'localhost' (using password: YES)

I've reset the password a few times and even recreated the user. Does anyone know what I need to do to allow password authentication?

Can't Connect Over Network
I have mysql 4.0.16 on my windows machine and have just installed suse
linux on another machine. It comes with mysql 4.0.15. After I got the
user setup I was able to use the mysql client on the windows machine to
connect to mysql on the linux machine I even used mysqldump piped to
mysql to dump a database to the new server. But now I can't seem to
login anymore. I don't think I changed any settings on the linux
machine so I am at a loss as to why I am getting this error.

ERROR 2013: Lost connection to MySQL server during query

That happens immediately after I type in mysql -h 192.168.1.2 -u cdw
-pxxxxxx and hit enter

Can't Connect To Server
I am trying to connect to my server but keep getting a "cannot connect to server" error. When I ping it it says, "request timed out."

I've allowed port 3306 in both windows firewall and in my linksys wireless router. I've even tried to disable the firewall.

MySQL Connect With Ssl
I was wondering if anyone knew when it is appropriate to use ssl to connect to a mysql database, as I do understand the need for it. Currently, I have a dedicated server that uses ssl to transmit a webpage securely. But I don't see why information should be encrypted from the mysql server to apache and then encrypted again as the page is served to someone.

How Do I Connect To Mysql-5.0.16
I have with help manage to install and to start mysql-5.0.16 on FC3.

With "ps -ef | grep mysql" I have about 8-10 mysqld process running, which I guess is fine.

Command "mysql" does not exist!
How do I connect to mysql?
Has it change to some other command or been moved to some special location that is not in my PATH?

Can Not Connect To Host
I am now using mysql 5.0 beta, and I am using Navicat 2004. When I start up Navicat and is about to connect, I get the following message: can't connect to MYSQL server on 'localhost'(10061) My OS is win XP.

Can't Connect Over Network
I have mysql 4.0.16 on my windows machine and have just installed suse
linux on another machine. It comes with mysql 4.0.15. After I got the
user setup I was able to use the mysql client on the windows machine to
connect to mysql on the linux machine I even used mysqldump piped to
mysql to dump a database to the new server. But now I can't seem to
login anymore. I don't think I changed any settings on the linux
machine so I am at a loss as to why I am getting this error.

ERROR 2013: Lost connection to MySQL server during query

That happens immediately after I type in mysql -h 192.168.1.2 -u cdw
-pxxxxxx and hit enter.

Can't Get Perl To Connect
I am just trying to connect and it wont give real errors like PHP it just says internal server error.

#!/usr/bin/perl
use warnings;
use strict;
use DBI;

$dsn = 'dbi:mysql:dbname=Location_Test';
$user = 'lmayer';
$password = '*******';
$dbh = DBI->connect($dsn, $user, $password,
{ RaiseError => 1, AutoCommit => 0 })

I can't make this work at all. I know its configured correctly since all the other pages work. I connect fine at the command line so I know the username and password work.

Can't Connect Via Mysql_connect In PHP
Here is my Server Information.

Operating system - Linux
Apache version1.3.33 (Unix)
PHP version4.3.11
MySQL version4.0.25-standard

This is what I am trying to create...

An "IP Hit Counter"

This counter tags the IP address and records it and adds a hit to the counter. By doing this reloads are not counted. The counter turns for each unique address. Code:


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