LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-19-2011, 02:37 PM   #1
Vitus13
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)
Next>
Host: www.example.com
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:
Code:
!cannot establish a connection to jdbc:mysql://www.example.com:3306/university using com.mysql.jdbc.Driver (Access denied for user 'me'@'d-h-c-p.myisp.com' (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':
Code:
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.
 
  


Reply

Tags
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 03: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 02:16 AM
connecting to MYSQL remote database opsraja Linux - Software 1 02-18-2005 06:52 AM
MySQL and remote database inspleak Linux - Networking 3 09-17-2004 02:00 AM
Connecting Mysql Database on remote server akamol Programming 4 10-16-2003 12:46 PM


All times are GMT -5. The time now is 08:09 AM.

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