Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SQLException : null

 
Enrique Villamizar
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are trying to connect to Mysql.

The url we are using is
url = "jdbc:mysql://LAB112686062/"+bd; Where db is the database's name.
typing hostname in the terminal appears LAB112686062. The Mysql user and password is OK.

We used localhost intead of LAB112686062 and the error is the same.

Our O.S. is Linux Mandrake 10.2
MySql version 4.0.20
Mysql-connector 3.1.11
JDK version 1.5.0
java.sql.SQLException: null, message from server: "Host 'LAB112686062' is not allowed to connect to this MySQL server".
[ November 16, 2005: Message edited by: Bear Bibeault ]
 
Paul Clapham
Sheriff
Posts: 21572
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MySQL has security features that allow it to control what user connects from what computer and what they can do if connected. I think this part of the MySQL documentation covers that:

http://dev.mysql.com/doc/refman/5.0/en/privilege-system.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic