• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SQLException : null

 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic