Results 1 to 4 of 4
  1. #1
    smacker is offline Member
    Join Date
    Jan 2011
    Posts
    44
    Rep Power
    0

    Default Problem connecting netbeans to mysql

    hello all ,
    i'm trying to connect the two together ,
    the sql server is running and it's all good but when i try to connect on
    netbeans-serveices-databases - new connection wizard
    it gives me an error :
    "cannot establish a connection to jdbc:mysql://localhost:3306/lib using com.mysql.jdbc.driver (access denied for user'root'@'localhost'

    in mysql everything running smothly
    any ideas ??
    thanks to all the helpers

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,792
    Rep Power
    19

    Default Re: Problem connecting netbeans to mysql

    Look to me like your MySQL is locked down.
    I'd look in the MySQL docs for allowing connections for a certain user/location.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    smacker is offline Member
    Join Date
    Jan 2011
    Posts
    44
    Rep Power
    0

    Default Re: Problem connecting netbeans to mysql

    well i don't know what happend but i reinstalled mysql completly and it works i think when i did a reset something happend
    not sure what it's very weird

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,792
    Rep Power
    19

    Default Re: Problem connecting netbeans to mysql

    MySQL can be setup to not allow any connections except for those in a list of exceptions, which would map usernames and location (address).
    Attempting to login to such a setup will fail if you are not a valid user, or are a valid user, but not connecting from a valid location.
    It's quite easy to install it with this switched on, by accident.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. connecting to a mysql db
    By droidus in forum Networking
    Replies: 3
    Last Post: 10-30-2011, 12:43 AM
  2. connecting mysql with netbeans
    By angelia in forum New To Java
    Replies: 3
    Last Post: 05-15-2011, 11:30 AM
  3. Problem Connecting to remote MySQL DB
    By Twistx77 in forum JDBC
    Replies: 2
    Last Post: 01-02-2011, 02:25 PM
  4. Problem connecting to mysql database
    By Kelly in forum JDBC
    Replies: 18
    Last Post: 07-22-2010, 06:40 AM
  5. problem in connecting to mysql database
    By nancyv in forum Java Servlet
    Replies: 6
    Last Post: 04-02-2008, 11:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •