If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > cannot connect to MySQL server, otherthan via root user

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-11-03, 06:33
gfcronin gfcronin is offline
Registered User
 
Join Date: Apr 2002
Posts: 22
cannot connect to MySQL server, otherthan via root user

I have MySQL 3.23 server installed on a Linux system.

My Java application is running on a Windows 2000 system.

I am connecting via the mmSQL 1.2a Type IV JDBC driver.

I can successfully connect to the server by specifying the root username and password.

However, when I try to connect to the server using any other username/password combination I receive the following error message:

Communication link failure: Bad handshake.

I have even added some users to the MySQL server that have superuser privileges set, but still can;t connect using their credentials.

Any ideas what may be causing this?

thanks
- Garry
Reply With Quote
  #2 (permalink)  
Old 12-11-03, 06:35
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
Are you sure that when you added your mysql user you give them the host used by your windows server ?
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
Reply With Quote
  #3 (permalink)  
Old 12-11-03, 06:48
gfcronin gfcronin is offline
Registered User
 
Join Date: Apr 2002
Posts: 22
The syntax I use is as follows:

GRANT ALL ON MYDB.* TO user1 identified by "username1"

I read than ommitting the @ symbol after the username basically means 'allow this user to connect to this server from anywhere'.

Is this correct?

Anyway, when I do specify the host name of the Windows server i.e.

GRANT ALL ON MYDB.* TO user1@winserver identified by "username1"

and subsequently attempt to connect via mysql client I receive the message:

ERROR 1045: Access denied for user: 'user1@<windows IP address>' (Using password: YES)

Any thoughts?

thanks
- Garry
Reply With Quote
  #4 (permalink)  
Old 12-11-03, 07:19
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
you should use the ip instead of the windows name.
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
Reply With Quote
  #5 (permalink)  
Old 12-15-03, 04:25
hitesh2512 hitesh2512 is offline
Registered User
 
Join Date: Jun 2003
Posts: 9
GRANT ALL ON <DB>.* TO <user>@<IP/hostname> IDENTIFIED BY <PASSWD>

You can replace IP/hostname by % to allow access from any IP
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On