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




Ado Connection String Error Through Vb


I'm using mysql-5.0.1-alpha-snapshot-win & VB 6.0

  I'm having trouble connecting to the database server over a lan.

  When I use the following connection string from the server it works fine. -

adoCon.ConnectionString = "Driver={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=MyDatabase;uid=root;"

  When I use the the following connection string from another computer I get this error -

adoCon.ConnectionString = "Driver={MySQL ODBC 3.51 Driver};SERVER=192.168.0.2;DATABASE=MyDatabase;uid=Tom;pwd=X12;"

Run-time error '-2147467259(80004005)'

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

Also when I try the last connection from the database server and in vb (not compiled) I get the following error -

Run-time error '-2147467259(80004005)'

[MySQL][ODBC 3.51 Driver]Client does not support authentication protocol requested by server; consider upgrading MySQL client

In MySQL CC under users -
Username = Tom
Host = %
Password=X12

Global privileges and MyDatabase are checked with All Privileges




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Connection String
If i'm right, all MySql databases are stored in some subfolders under InstallDir/Data...
This folder can be set using some configuration parameters like 'Datadir' or something like this.

Well, i want to connect to some database stored in some folder outside this one. For example i want to manage one database in drive D:myDatadata1 and a second one stored in drive F:somedatamyDatadata123.

Using Interbase i write my ConnectionString in this way:
'..... DatabaseName=192.168.1.60:C:staffibITI.gdb....'
In MySql this does not work|

Is it possible to connect to a database outside the 'Datadir' settings?

Connection String
I am using the following code in Access 2k to establich a connection to a
MYSQL database

Dim conn As ADODB.Connection

Set conn = New ADODB.Connection

conn.ConnectionString = "DRIVER={MySQL ODBC 3.51 Driver};DESC=;USER=" &
myUsername_
& ";DATABASE=" & mySQLDatabase_
& ";SERVER=" & myServer_
& ";PASSWORD=" & myPassword_
& ";PORT=;OPTION=;STMT=;" ';TABLE=" & myTable
conn.Open

I get a Catostrophic failure error on the conn.Open line.

Connection String
Why this is not working
I'm putting this connection string with the follwing batch file:
mysql --user=root --password=mypassword < batchfile.txt
It never executes the batchfile. How do I have to do it

Connection String
i need to write the connection string in c# for .Net 1.1 with Mysql.

i am new to MySql,can somebody tell me how to do it

Connection String From Db.asp To MySQL DB
I have a project that was originally developed to run on an access db due to it's lack of traffic, now I trying have the same project use MySQL as it's db in anticipation of more traffic.

Below is the connection string for my Dev (local) site.

ConString = "Driver={MySQL ODBC 3.51 Driver}; Server=216.251.43.11; Database=c:/program files/mysql/MySQL Server 4.1/cdi_cdnsys_com; UID=****; PWD=****; Option=3"

Connection String From Windows, Please Help
I have just installed mysql via the new windows installer program on my Windows XP Pro machine, and everything works perfectly. Now I would like to make a connection from an asp page to the database (locally on my computer)

The connection string which I use on my mysql database on my web site (externally) is

<%
set Conn = server.CreateObject("ADODB.connection")
Conn.open "Provider=MySQLProv;Location=mysql.myweb.com;Data Source=lacanela;User Id=myname;Password=mypw;"
%>

and that works perfectly.

Now I would like to use the same string for local connections on my PC.

I have tried:

<%
set Conn = server.CreateObject("ADODB.connection")
Conn.open "Provider=MySQLProv;Location=localhost;Data Source=localhost;User Id=root;Password=pw;"
%>

But I get the following error message:

ADODB.Connection (0x800A0E7A)
Provider cannot be found. It may not be properly installed.

That leads to several questions:

- Are the Location and Data source arguments correct? (I did not specify anything particular when installation windows package, the user root was automatically created.

- Do I have install something extra in order to make MySQLProv work locally on my computer?

Are there any alternatives to MySQLProv (I prefer OLEDB, not OBDC) - already natively available on win XP Pro?

DSN_Less Connection String
I am trying to get a dsn-less connection string to work with MySQL version 4.0.12/ODBC 3.51. What I have is:

driver={MySQL};database=doitquick;server=127.0.0.1;uid=username;pwd=password;option=16386;

Anyone shed some light on this?

Ado Connection String For Tcpip Port
Currently I connect to MySql using the following vbscript:

set conn = createobject("ADODB.Connection")
conn.ConnectionString = "DRIVER={MySQL ODBC 3.51 Driver};"_
& "SERVER=localhost;"_
& "DATABASE=test;"_
& "UID=venu;PWD=venu;OPTION=3"
conn.open()

I would like to change my connection string so that I connect using
TCP/IP and I would like to specify port 3306 inside the string. I
know how to do this with MS SqlServer, but does someone know how to do
this with MySQL?

Connection String Authentication To My Server
I'm having a tough time figuring out the proper connection string to connect to my existing database.

Using:
* MySQL server 4.0 on a remote Linux Server.
* Developing in VS 2005 (VB) on a PC that is apart of our corporate MS domain.
* Downloaded and installed Connector/Net 2.0

Problem:
I'm using the connection string: ("server={0}; user id={1}; password={2}; database=test; pooling=false", server.Text, userid.Text, password.Text)

When executed with userid="sam" the error message that is returned is "Access denied for user: "sam@<mypc>.<corporatedomain>.com"

When executed with the userid="sam@<remotehost> the error message returned is "Access denied for user "sam@<remotehost>@<mypc>.<corporatedomain>.com". No matter what I do, the connector keeps appending my current domain id to the end of the user string.

"sam" is a authorized user for the MySQL on the remote linux host (been using it for years).

Server 2003 Connection String
I am running an sql script as part of an installer and it works fine on an XP machine, however when i run it on Windows Server 2003 it fails when it tries to open a connection.The connection string i am using is:

"DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=mysql;UID=root;PWD=;OPTION=16427"

My question is, does it need to changed for Server 2003?

MYSQL OleDb Connection String
I have this connection string
"Provider=MySQLProv; Location=localhost; Data Source=test_db;User ID=testuser;Password=testpass";
It works fine on the local host. However I need to connect to a data source on a different computer so I put in the host name for location and Im supposed to be able to use PORT=my_port_num for the port but whenver i use this string
"Provider=MySQLProv; Location=localhost; Data Source=test_db;User ID=testuser;Password=testpass; Port = 9999"; it comes up with a dsn box to fill in the port.

Error In String
I'd like to use placeholders but it looks difficult to use with $dbh->do() as I am not particularly familiar with this.

CODE  $dbh->do("INSERT INTO storage (url, altavista, yahoo, msn, teoma, google, alltheweb,Total, lastsearch, totalsearch) values($url, $altavista_results, $yahoo_results, $msn_results, $teoma_results, $google_results, $alltheweb_results, $total,$time, $total)") unless $dbh->do(UPDATE storage SET (url = "$url", altavista = "$altavista_results", yahoo = "$yahoo_results", msn = "$msn_results", teoma = "$teoma_results", google = "$google_results", alltheweb = "$alltheweb_results", total = total +1, time="$time") > 0;

Syntax Error In String In Query Expression '''
The following is my jsp codings:

{//start of readline while
//sb.append(nextLine);
//note: BufferedReader strips the EOL character.
//sb.append(lineSep);

StringTokenizer SToken=new StringTokenizer(br.readLine(),",");
while(SToken.hasMoreTokens())
{
String ADM_NO = SToken.nextToken();
st.executeUpdate ("insert into try (Adm_No) values ('"+ADM_NO+"')");
}

}//end of readline while

There is an error Syntax error in string in query expression ''', is it b'cos of the single or double quotes? What can I do?

MySQL Error: Unterminated String Constant
I have an error "Unterminated string constant" in my SQL request. I guess my syntax is not correct:

mySQL1 = "SELECT * FROM viewTicket where ((TelRes = '" & NoTel & "') OR (TeleTra = '" & NoTel & "')
 OR (TeleCel = '" & NoTel & "') OR (NoClient = '" & NoTel & "')) AND ((ServiceName = 'MODEM')
 OR (ServiceName = 'UBR') OR (ServiceName LIKE '%BASE%')) "

In other words, I fill a form where the variable NoTel is grabbing what was entered in the form. Then, it search for that value in the database in the fields TelRes, TeleTra, Telecel or NoClient. 

And, there is a second criteria that search in the field ServiceName for the value MODEM, UBR or *BASE* (whatever is in the field, as long as it find the word BASE).

String Error - Quotes Changed To Question Marks
I recently converted an asp/access site to an asp/mysql site. Now all my strings are displaying funky. For example if I have the text - Why don't we say "Yipee" - it displays on my site as - Why don?t we say ?Yipee?. The same change is being made when I use a sentence with "..." in it. I like ... baseball is changed to - I like?baseball.

Any thoughts as to why this is happening? Sometimes it is actually being changed somehow in the database, and sometimes it is correct in the database, but then changed when it displays on the web.

Connection Error
I am currently running two servers one with Tomcat and the other with MySQL. They are both in different Windows domains and on different network segments.

I have the following users on the MySQL server:
user@localhost
user@%

I am getting a VERRRY SLOOOW connection between the two machines so I thought I'd add a user just for the Tomcat server. The IP address of the Tomcat server is 172.22.0.1 so naturally the user would be 'user@172.22.0.1' When I added this user I got the following error

Access denied for user: 'user@172.22.0.1' (Using password: YES)

Any ideas on what I can do to remedy the situation?

Error In Connection
2003 - Can't connect to MySQL server on 'localhost' (10061)

I get this error

Connection Error
When I connect to the MySQL server (4.0.16 on Linux) using mysql and let the
tool sit for a couple of minutes, I get the following error.

mysql> use mysql;
No connection. Trying to reconnect...
Connection id: 50791
Current database: *** NONE ***

Database changed
mysql> use mysql;
Database changed
mysql>

The Java programs are displaying a similar error --> "java.sql.SQLException:
Communication link failure: java.io.EOFException, underlying cause: null"
No errors in the MySQL logs.
The max_connections are set to 1000. Why am I losing my connection to the
database?

No Connection Error
When I connect to the MySQL server (4.0.16 on Linux) using mysql and let the
tool sit for a couple of minutes, I get the following error.

mysql> use mysql;
No connection. Trying to reconnect...
Connection id: 50791
Current database: *** NONE ***

Database changed
mysql> use mysql;
Database changed
mysql>

The Java programs are displaying a similar error --> "java.sql.SQLException:
Communication link failure: java.io.EOFException, underlying cause: null"
No errors in the MySQL logs.
The max_connections are set to 1000. Why am I losing my connection to the
database? How can this be fixed?

Connection Error
I've a db named "controlloscatole" on my PC which has IP: 192.168.50.195
I've created a user which hasn't generic privileges but he has
only SELECT privilege to "controlloscatole":

GRANT USAGE ON * . * TO "rep_ammin"@ "%"IDENTIFIED BY "***************"WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 ;

REVOKE ALL PRIVILEGES ON `controlloscatole` . * FROM "rep_ammin"@ "%";
REVOKE GRANT OPTION ON `controlloscatole` . * FROM "rep_ammin"@ "%";
GRANT SELECT ON `controlloscatole` . * TO "rep_ammin"@ "%";

If i try to access to controlloscatole as rep_ammin:
* via MysqlCC
*host: localhostall is ok.
*host: 192.168.50.195ERROR 2003: Can't connect on
192.168.50.195 (10061)
* via phpmyadmin
*http://localhost/mysql/all is ok
*http://192.168.50.195/mysql/ALL IS OK!!

* via ODBC
*host: localhostall is ok.
*host: 192.168.50.195ERROR 2003: Can't connect on
192.168.50.195 (10061)

So if i try to connect to my db as rep_ammin from my PC i've no problem.
On the contrary nobody in my office can do that... via Access (ODBC) or MysqlCC.

Connection Error
There seems to be a problem with the MySQL server, sorry for the inconvenience.
So I start the MYSql server by the command:
mysqld --skip-grant-tables
and I can get in fine from the webside but once i get it out of this mode i can't hit it from the webside BUT i can hit it with MYSql GUI tools to setup users/db/grants/etc.
All idea why and what i need to do?

Connection ERROR
I have been setting up a sever on one of my PC's using Apache and have installed MYSQL to work off it.
Now i am getting error :

CONNECTION FAILES:
2003 - Can't connect to MYSQL server on Localhost (10061)

Now i have previously set this up and it has usually worked but i dont know what i have doen this time for it not to work?
Has anyone got any ideas what i can do?

Connection Error
SQL Error: Can't connect to MySQL server on '10.0.0.3' (10060)

How To Solve This Connection Error?
I have this connection error in my windows application which is using .net connector. The error is "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host" ? Can some one please help me on this?

MySQL Connection Error
I am trying to put together this PHP script using the database for IPB. I just can't get this one part of the script to work. It is supposed to access the members database, and it just can't find the members database.

I get the error
Quote:
Unable to view external table, ipf_members. Table 'username_ipb.ipf_members' doesn't exist.
username would be my MySQL username, but I won't post that. I know the username works, because all other MySQL connections using that same username work.

I took the piece of code that wasn't working out of the file and tried putting it in its own little test file, and it still wouldn't work.

PHP

<?php$wgIPB_MySQL_Host     = 'sql1.byethost7.com'               // ipB MySQL Host Name.$wgIPB_MySQL_Username = 'username'           // ipB MySQL Username.$wgIPB_MySQL_Password = 'k1tens'           // ipB MySQL Password.$wgIPB_MySQL_Database = 'username_ipb'      // ipB MySQL Database Name.$wgIPB_UserTB         = 'ipf_members'        // Name of your IPB user table. (i.e. ipb_members)$wgIPB_UserConvergeTB = 'ibf_members_converge' // Name of your IPB users converge table (i.e. ibp_members_converge)$wgIPB_GroupsTB       = 'ibf_groups'       // Name of your IPB groups table. (i.e. ipb_groups)$wgIPB_User_GroupTB   = 'ibf_groups'   // Name of your IPB user_group table. (i.e. ipb_groups)$username = "chris";        $connection = mysql_connect($GLOBALS['wgIPB_MySQL_Host'],$GLOBALS['wgIPB_MySQL_Username'],$GLOBALS['wgIPB_MySQL_Password'])            or die ("Couldn't connect to server");        $db = mysql_select_db($GLOBALS['wgIPB_MySQL_Database'],$connection)            or die ("Couldn't select database");                  $getuserinfo = "SELECT `name` FROM " . $GLOBALS['wgIPB_UserTB'] .                        " WHERE `name` = "" . $username . """;                                // Query Database.        $userResult = mysql_query($getuserinfo)            or die("Unable to view external table " . $GLOBALS['wgIPB_UserTB'] . " " . mysql_error());                    $userinfo = mysql_fetch_array($userResult);                echo $userinfo['name'];?>


I normally would use the $GLOBAL['variable'] if the variable was defined in the same file like the code above, but I just wanted to see if I could get this block of code to work.

I know for a fact that ibf_members exists. Here is a screenshot from phpMyAdmin.


I just don't know how to fix this problem! The table exists. I have tried repairing the table. I have tried reinstalling IPB. Nothing works!

Connection Error - Errno 4
I have a clients-server application that is using (the server) mysql.

Time to time, I'm getting the error :

Can't connect to MySQL server on 'x.x.x.x' (4) (mysql_errno = 2003).

Mysql is 4.0.18. It's on a debian with 2.4.20.

4 is so the errno, wich here is :
[color=blue]
>Error code 4: Interrupted system call[/color]


Is there a way to prevent mysql from beeing interrupted in its connection phase ?

MySQL Connection Error
I have my web server on a Linux machine.

Apache 2.0, MySQL 5 and PHP 5

I have a utility (phpmaker) that helps me administer my databases. When I went to set it up I get this connection error.

"Error on connect: Host 10.1.1.10 is not allowed to connect to this MySQL Server"

Where do I enable so this ip (host) is allowed?

Connection Error Err Nr 1045
I am trying to set up MySQL 4.1 on windows 2003 web server. I have installed mysql and when configuring i get the Err Nr 1045 Access denied for user root@local host (using password: No) when trying to apply the security settings. I have running a linksys rooter. I have configured the rooter to allow access to port 3306 and forwarded to the web server.

Connection Error (2013) Using TCP/IP
When I try to connect to a remote MySQL server with following command:
>mysql -h myhost.com -u mysql -p

I'll occasionally get an error message saying:
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading authorization packet', system error: 104

This is quite often when I using a remote client, but never happens if I use the local client on the MySQL server. Is this a known bug or anyone knows a solution to this problem? Code:

MySQL Connection Error
Using MySQL server config wizard, I created a database 'polls' and set passwd as 'admin'. I used the following PHP code to connect this db:

$host = "localhost:3036";
$user = "polls";
$pass = "admin";

$conn = mysql_connect($host, $user, $pass) or die ("Unable to connect!");
mysql_select_db($user) or die ("Unable to select database!");

and I got the following error:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'polls'@'localhost' (using password: YES) in C:ServerApache2 htdocsPollsuser.php on line 17 Unable to connect!

and BTW, what is the difference between the user name and db name? when I try to connect the db from DOS, it just prompted for password only, not username.

Dreamweaver Connection Error
I have set ODBC connection up through the data source administrator and get a connection just fine. However, in Dreamweaver I now get the 400 bad request error.

ODBC Connection Error
I am trying to configure an ODBC connection to a MySQL database, 5.0.12 Beta-nt. We testing the connection I get the following error;

[MySQL][ODBC 3.51 Driver]Lost connection to MySQL server during query

If I try to connect via cmd prompt the following message is displayed;

ERROR 2013 (HY000) : Lost connection to MySQL server during query

The strange thing is if I disable Norton Internet Security all works fine. The Windows Xp firewall is turned off and Norton has been configured to allow MySQL.

Host Connection Error
I am getting an error, when I try to connect to the MySQL Administrator, I put in the computer IP and my username/password, but when I try to connect I get an error. The error reads...
Error: Host "X.X.X.X" is not allowed to connect to...
and then the rest of the error i can't read, it's been cut off. I did ping the host and it was fine, so there is not a network problem, or so i think...
If someone could please tell me what is going on that wold be great.

Mysql Tcp Connection Error
The configuration of MySQL on my linux box is somehow set that I cannot use TCP to connect to it
When I try to logon from the CLi/telnet, it says:
Quote: [root@chrislinux chris]# mysql
ERROR 1045 (00000): Access denied for user: 'root@localhost' (Using password: NO)

If I try to use a connection within a program like Zend IDE, it says:
Quote: Server connection failure during transaction. Due to underlying exception: 'null, message from server: "Host chris.linux is not allowed to connect to this MySQL server".
I did have skip-networking uncommented but that just produced a pipe error. I have restarted mysql everytime I have made a change to my.cnf as well.
Can anyone point me where to look to possibly find the cause of this?
Thanks for any help anyone can give.

Remote Connection Error
I have been using a database on localhost for a while succesfuly. I am now, however going to be using this same database remotely. Whenever I attempt to connect to the database remotley I am given the error message:
Warning: mysql_connect(): Can't connect to MySQL server on 'my ip' (10060) in C:OpenSAApache2htdocsindex.php on line 9
I have removed the bind-address line from the my.ini file in C:Windows as I read in a previous post you should do, and restarted mysql, but the error still remains. Does anyone know what i'm doing wrong?

MySQL Connection Error
I am new to remote mySQL connections. I am getting an error when I know the hostname for the connection is correct... please help

ERROR

Warning: Host 'oltws002.gaa.aro.allied.com' is not allowed to connect to this MySQL server in d:platformheader.php on line 231

Warning: MySQL Connection Failed: Host 'hoster.com' is not allowed to connect to this MySQL server in d:platformheader.php on line 231
Connection with MySQL server could not be made! Host 'hoster.com' is not allowed to connect to this MySQL server
Contact Matt at matt@hoster.com if this problem persists.

Error 2003 On Remote Connection
I have a WinXP Home Edition where I have installed MySQL 4.x

I can use MySQL Administrator on my server, but when I try to connect to my server by entering my WAN-IP, I get the error:

"Could not connect to the specified instance.

MySQL Error Number 2003
Can't connect to MySQL server on xx.xx.xx.xx (10061)".

MySQL Start Up And Connection Error
I m new to mysql and recently installed 5.0.24a on my XP SP2 machine. Server ran fine for a coupla days.I then noticed that mysql admin client can't connect (error 10061).

MySQL windows service has stopped for some reason, can't restart from windows services.
Restart fails with the following error (from Windows event viewer)

Event ID - 100

Description - listen() on TCP/IP failed with error 6

Error Establishing A Database Connection
I'm trying to use MySQL on my computer to design and test a WordPress blog locally, but I keep getting the message, "Error establishing a database connection." This isn't limited to WordPress; if I run a simple MySQL test script I get the same problem.

I'm using MySQL 4.0.21 (I installed this old version after getting the same results with a couple of newer versions, so I don't think this is the problem). I'm on OS X 10.4.8.

Using MySQL Administrator, I'm able to connect to the server as root. I created my wordpress schema and assigned all available connection privileges to root on localhost, [computername].local, and %.

I'm used to creating a database and assigning a user to it using cPanel. I suspect the solution is simple and I'm overlooking something obvious because of my newbie status when it comes to MySQL.


Client Side Connection Error
I'm getting this error message:

"Cannot connect to database. Client does not support authentication protocol requested by server; consider upgrading MySQL client"

When attempting to connect with:

$mysql = mysql_connect( 'localhost', 'root', 'password' );

MySQL Version: 4.1.8-nt via TCP/IP
Client: 5.0.11
OS: Windows XP

I believe that I have the latest client. What should I do and how should I ensure that none of the visitors to my site has the same problem?

UNION Causes Lost Connection ERROR 2013
I wrote a for loop to build several select statements that are combined with a UNION. When I execute one of the queries separately, it works, but when I execute
the query with a UNION it returns:

ERROR 2013 (HY000): Lost connection to MySQL server during query

I am able to run additional queries after I get the error, so the connection is not lost. I have tried running the query with the union on MySQL Query Browser and also on the command prompt and I get the same results.

Here is my query:

MYSql Windows 2003 - Connection Error
I installed MYSql/PHP/Apache on my Windows 2003 server. I created my database, added users and granted FULL perrmissions to all my uses but when i go to connect i get:

There seems to be a problem with the MySQL server, sorry for the inconvenience.

So I start the MYSql server by the command:
mysqld --skip-grant-tables

and I can get in fine from the webside but once i get it out of this mode i can't hit it from the webside BUT i can hit it with MYSql GUI tools to setup users/db/grants/etc.

Too Many Connections Error, Well How Do I Increase Number Of Connection Limit?
Im always getting a too Many connections error, My website has increased in traffic by 800% this month, Is there anyway to increase the max connection limits on my servers?,
A fast responce will be welcome,
Thanks for reading,

Format Function In SQL String To Return From Numeric Field In Table To String
How would i form a format function in SQL string to return from numeric field in table to string:

1 --> '001'
5 --> '005'
57 --> '057'
125 --> '125'

ERROR 2013: Lost Connection To MySQL Server During Query
I get this error when i try to remotely connect to my mysql server, it has been working until i changed the server's ip and isp, when i re-change the mysql server to the old ip address (first isp), it's working again.

ERROR 2013: Lost Connection To MySQL Server During Query
I get this error when i try to remotely connect to my mysql server, it has been working until i changed the server's ip and isp, when i re-change the mysql server to the old ip address (first isp), it's working again....

ERROR 2013: Lost Connection To MySQL Server During Query
I have recently installed suse 9.0 linux which has MySQL 4.0.15 as part
of the distribution. After I set up my users I was able to use
mysqldump and pipe it into mysql on my windows machine running 4.0.16 to
dump a database to the linux box. However, now when I try to login to
the linux box from another machine on the network I get a query timed
out error immediately after I enter the command line to start the mysql
client.

mysql -h 192.168.1.2 -u cdw -pxxxxxx
ERROR 2013: Lost connection to MySQL server during query

The error happens with in a small fraction of a second after I type in
the command. I can login from the linux machine just fine though.

Error 2013: Lost Connection To MySQL Server During Query
I have MySQL 4.1.10 running successfully on an office XP machine, but
when I try to set up similar XP box at home I continually get this
error: "Error 2013: Lost connection to MySQL server during query".
The install went fine, and Windows XP is recognizing it as a running
service. But whenever I try to connect via one of my GUI applications
(e.g., MySQLFront), the error appears.

I have scoured this forum and Google looking for this error, but
haven't found anything helpful so far. This post ...
(http://forums.mysql.com/read.php?11,10684,10684) seemed similar, but
my service does not stop when I hit the error.

I've lost a couple days to this problem, and I've uninstalled and
reinstalled the app several times. I don't know where to go next. I
need to have 4.1 running because we need the Unions and Subqueries.

Network Problem - ERROR 2013 (HY000): Lost Connection ....
I'm having problems with my MySQL server when I do queries that return a lot of data over the network.

It's fine if I connect via the local UNIX socket

> mysql -u root -p

> SELECT * FROM users limit 100;
returns 100 rows in a few seconds

>SELECT * FROM users limit 1000;
returns 1000 rows in a few seconds

But when I try the same thing but connecting to the network port I get

> mysql -u root -p -h 127.0.0.1 -P 3306

> SELECT * FROM users limit 100;
returns 100 rows in a few seconds

> SELECT * FROM users limit 1000;
sits there for about 15 minutes and then I get the following message
ERROR 2013 (HY000): Lost connection to MySQL server during query

If I watch the traffic with tcpdump it sends a few packets right at the start and then doesn't appear to be sending anything for the next 15 minutes until the error appears.

I'm using 5.0.27-standard-log community edition.


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