Re: Error 1043 Bad handshake

2004-11-17 Thread Gleb Paharenko
Hello.



Did you use mysql client program from 4.1.7 installation? When you use

it from 4.1.0 or older (on another machine) there some differences in 

authentication handshake.







[EMAIL PROTECTED] wrote:

 

 I have done some looking in the archive for this but can't seem to find 
 anything recent that seems to apply.

 

 I have a brand new install of 4.1.7 on a Redhat 9 box.  I compiled it with:

 CFLAGS=-O3 -mcpu=pentiumpro CXX=gcc CXXFLAGS=-O3 -mpentiumpro 
 -felide-constructors -fno-exceptions -fno-rtti ./configure --prefix 
 /usr/local/mysql --enable-assembler --with-mysqld-ldflags=-all-static 
 --datadir /web/data

 

 It starts just fine.  This is a new install and I haven't put any data in it 
 so I don't think that I need to do any sort of permission fixing (Isn't that 
 just for migrated data?) I can connect to it via local host just fine but if 
 I try to connect from another machine running 4.1.? I get:

 bash-2.05$ mysql landfill -u root -p -h 192.168.1.100

 Enter password: 

 ERROR 1043: Bad handshake

 bash-2.05$ 

 

 Any idea what I am doing wrong?  

 

 --ja



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
   ___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Error 1043 Bad handshake

2004-11-17 Thread jabbott

An answer to my own question.  I have solved this problem which seems to be due 
to the way mysql 4.1.7 stores it's passwords.  I used the mysql function 
OLD_PASSWORD to make mysql store it's passwords in the pre 4.1.x method.  
Basically the syntax is:
mysql UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd') WHERE Host = 
'some_host' AND User = 'some_user';
mysql FLUSH PRIVILEGES;

Now I seem to be able to connect.

--ja

On Wed, 17 Nov 2004, Gleb Paharenko wrote:

 Hello.
 
 Did you use mysql client program from 4.1.7 installation? When you use
 it from 4.1.0 or older (on another machine) there some differences in 
 authentication handshake.
 
 
 
 [EMAIL PROTECTED] wrote:
  
  I have done some looking in the archive for this but can't seem to find 
  anything recent that seems to apply.
  
  I have a brand new install of 4.1.7 on a Redhat 9 box.  I compiled it with:
  CFLAGS=-O3 -mcpu=pentiumpro CXX=gcc CXXFLAGS=-O3 -mpentiumpro 
  -felide-constructors -fno-exceptions -fno-rtti ./configure --prefix 
  /usr/local/mysql --enable-assembler --with-mysqld-ldflags=-all-static 
  --datadir /web/data
  
  It starts just fine.  This is a new install and I haven't put any data in 
  it so I don't think that I need to do any sort of permission fixing (Isn't 
  that just for migrated data?) I can connect to it via local host just fine 
  but if I try to connect from another machine running 4.1.? I get:
  bash-2.05$ mysql landfill -u root -p -h 192.168.1.100
  Enter password: 
  ERROR 1043: Bad handshake
  bash-2.05$ 
  
  Any idea what I am doing wrong?  
  
  --ja
 
 
 

-- 


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Error 1043 Bad handshake

2004-11-17 Thread Gleb Paharenko
Hello.



A very comprehensive answer posted by Shawn Green you may read at:

  http://lists.mysql.com/mysql/173657

Aslo see:

  http://dev.mysql.com/doc/mysql/en/Programs_Known_to_Work_With_MyODBC.html

May be you should really carefully read topics of documentation related to

MyODBC. See:

  http://dev.mysql.com/doc/mysql/en/ODBC_Connector.html







Any idea how that is going to effect odbc connections?  My real application 

is to use coldfusion 

to connect to this database but I seem to be getting error messages there 

too.  Will the change in authentication change the way odbc connections happen 
too?













[EMAIL PROTECTED] wrote:

 

 I have done some looking in the archive for this but can't seem to find 
 anything recent that seems to apply.

 

 I have a brand new install of 4.1.7 on a Redhat 9 box.  I compiled it with:

 CFLAGS=-O3 -mcpu=pentiumpro CXX=gcc CXXFLAGS=-O3 -mpentiumpro 
 -felide-constructors -fno-exceptions -fno-rtti ./configure --prefix 
 /usr/local/mysql --enable-assembler --with-mysqld-ldflags=-all-static 
 --datadir /web/data

 

 It starts just fine.  This is a new install and I haven't put any data in it 
 so I don't think that I need to do any sort of permission fixing (Isn't that 
 just for migrated data?) I can connect to it via local host just fine but if 
 I try to connect from another machine running 4.1.? I get:

 bash-2.05$ mysql landfill -u root -p -h 192.168.1.100

 Enter password: 

 ERROR 1043: Bad handshake

 bash-2.05$ 

 

 Any idea what I am doing wrong?  

 

 --ja



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
   ___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Error 1043 Bad handshake [In MySQL Administrator]

2004-11-17 Thread Chris Bailey
I have just installed MySQL Administrator on FreeBSD 5.2.1. I am trying to use the Connect to MySQL Server Instance 
dialog to establish a connection to a version: 4.0.22 MySQL server. I can establish a remote connection using:

mysql -h hostname -p -u username databasename
However, using MySQL Administrator, I get the following error:
Could not connect to host 'hostname'.
MySQL Error Nr. 1043
Bad handshake
I have UPDATED the database password as suggested using the OLD_PASSWORD() 
function. Still not able to establish a connection.
Any suggestions?
Thanks for your time,
cb
An answer to my own question.  I have solved this problem which seems to be 
due to the way
mysql 4.1.7 stores it's passwords.  I used the mysql function OLD_PASSWORD to 
make mysql
store it's passwords in the pre 4.1.x method.  Basically the syntax is:
mysql UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd') WHERE Host = 
'some_host'
AND User = 'some_user';
mysql FLUSH PRIVILEGES;
Now I seem to be able to connect.
--ja
On Wed, 17 Nov 2004, Gleb Paharenko wrote:
Hello.
Did you use mysql client program from 4.1.7 installation? When you use
it from 4.1.0 or older (on another machine) there some differences in 
authentication handshake.


jabbott@/stripped/ wrote:
 
 I have done some looking in the archive for this but can't seem to find anything
recent that seems to apply.
 
 I have a brand new install of 4.1.7 on a Redhat 9 box.  I compiled it with:
 CFLAGS=-O3 -mcpu=pentiumpro CXX=gcc CXXFLAGS=-O3 -mpentiumpro
-felide-constructors -fno-exceptions -fno-rtti ./configure --prefix /usr/local/mysql
--enable-assembler --with-mysqld-ldflags=-all-static --datadir /web/data
 
 It starts just fine.  This is a new install and I haven't put any data in it so
I don't think that I need to do any sort of permission fixing (Isn't that just for
migrated data?) I can connect to it via local host just fine but if I try to connect from
another machine running 4.1.? I get:
 bash-2.05$ mysql landfill -u root -p -h 192.168.1.100
 Enter password: 
 ERROR 1043: Bad handshake
 bash-2.05$ 
 
 Any idea what I am doing wrong?  
 
 --ja


--
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Error 1043 Bad handshake

2004-11-16 Thread jabbott

I have done some looking in the archive for this but can't seem to find 
anything recent that seems to apply.

I have a brand new install of 4.1.7 on a Redhat 9 box.  I compiled it with:
CFLAGS=-O3 -mcpu=pentiumpro CXX=gcc CXXFLAGS=-O3 -mpentiumpro 
-felide-constructors -fno-exceptions -fno-rtti ./configure --prefix 
/usr/local/mysql --enable-assembler --with-mysqld-ldflags=-all-static --datadir 
/web/data

It starts just fine.  This is a new install and I haven't put any data in it so 
I don't think that I need to do any sort of permission fixing (Isn't that just 
for migrated data?) I can connect to it via local host just fine but if I try 
to connect from another machine running 4.1.? I get:
bash-2.05$ mysql landfill -u root -p -h 192.168.1.100
Enter password: 
ERROR 1043: Bad handshake
bash-2.05$ 

Any idea what I am doing wrong?  

--ja
-- 


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]