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 > jdbc syntax problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-19-03, 16:48
ilikeitraw ilikeitraw is offline
Registered User
 
Join Date: Oct 2003
Posts: 13
jdbc syntax problem

When logging into mysql, I can do a:
./mysql -u mysql -p

... then when it prompts me for a password, I just hit enter and it logs me in without a problem.
I can then do a:
use test;

... and I'm in the test database.


I can also do a:
./mysql -u mysql

... and it logs me in fine.
I can then do a:
use test;

... and I'm in the test database.


In thew up a page on my server, and I'm connecting like this:
jdbc:mysql://xxx.xxx.x.xxx/test?user=mysql

... but it gives me this error:
Invalid authorization specification, message from
server: "Access denied for user: 'mysql@xxx.xxx.x.xxx' (Using password:
NO)"


Question is, why won't it let me in ?
Reply With Quote
  #2 (permalink)  
Old 11-19-03, 19:00
ilikeitraw ilikeitraw is offline
Registered User
 
Join Date: Oct 2003
Posts: 13
Exclamation ps

when i say i'm "loggin in", this is straight from the command line.
Reply With Quote
  #3 (permalink)  
Old 11-20-03, 17:22
ilikeitraw ilikeitraw is offline
Registered User
 
Join Date: Oct 2003
Posts: 13
any insight on this database masters ?
using the mysql driver, is the password required ?
Reply With Quote
  #4 (permalink)  
Old 11-21-03, 04:44
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
Perhaps you try to connect from an other computer so it does't work cause MySql identify user by their login and their host name.
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
Reply With Quote
  #5 (permalink)  
Old 11-21-03, 14:27
ilikeitraw ilikeitraw is offline
Registered User
 
Join Date: Oct 2003
Posts: 13
solved

omiossec, you are good
i didn't have the specific user set to be accepted to the correct domain.
i had to do an update to have the user to have permissions from any domain... ie:
grant all prvilidges... etc 'user'@'%'...etc

many thanks !!!
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