Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-19-2011, 01:37 PM   #1
LQ Newbie
Registered: Oct 2011
Posts: 14

Rep: Reputation: Disabled
NetBeans 7 connection to remote MySQL database

I swear I had this working 3am last night, today I woke up and it wasn't working.

In Netbeans 7.0.1 (which I am not fond of, but have to use for this project), I goto the 'Services' pane and right click on 'Databases'. I select "New Connections..." and in the dialog that opens I fill in the following information:

Driver: MySQL (Connector/J driver)
Port: 3306
Database: university
User: me
Password: XXXXXXXX

Then I test the connection. I know it was working last night (early this morning), however currently I get this error:
!cannot establish a connection to jdbc:mysql:// using com.mysql.jdbc.Driver (Access denied for user 'me'@'' (using password: YES))
I can connect to the server via putty and log into the mysql database. Below are the permissions set for the user 'me':
mysql> select user, host, db, select_priv SEL,insert_priv INS, update_priv
 UPD, delete_priv DEL,create_priv CRT, drop_priv DRP,index_priv IDX, alter_priv 
 ALT, show_view_priv SHW from mysql.db where user='me';
| user | host | db         | SEL | INS | UPD | DEL | CRT | DRP | IDX | ALT | SHW |
| me   | %    | university | Y   | Y   | Y   | Y   | Y   | Y   | Y   | Y   | N   |
1 row in set (0.00 sec)
I don't think it's a permissions issue, since I was creating tables in that database from netbeans last night.


mysql, netbeans, remote, remotely, user

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Connection to MySQL Database archerofthemoon Linux - Server 13 07-29-2010 02:54 PM
LXer: Deployment Seam Application against MySQL 5 database to Jboss 4.0.5 utilizing Seam Plugin for NetBeans 5.5.1 LXer Syndicated Linux News 0 06-30-2007 01:16 AM
connecting to MYSQL remote database opsraja Linux - Software 1 02-18-2005 05:52 AM
MySQL and remote database inspleak Linux - Networking 3 09-17-2004 01:00 AM
Connecting Mysql Database on remote server akamol Programming 4 10-16-2003 11:46 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration