LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-04-2007, 12:55 AM   #1
me4linux
Member
 
Registered: Aug 2006
Distribution: Fedora 7
Posts: 165

Rep: Reputation: 30
Problem with mysql in NetBeans 5.5


Hi everyone

i am using mysql database in linux fedora 7. i am able to start/stop the service from the terminal...

how to connect to it from netbeans 5,5 IDE using a java program .....

i have installed the driver file for mysql...
database url is --- jdbc:mysql://localhost:3306/test
driver is ---- com.mysql.jdbc.Driver

Please see the error message thta i am getting in the follownig link
http://www.Photo-Host.org/view/060634error.png

It is asking for username and the password....?

i have got mysql installed from the fedora dvd.. i didnt give any password for it..?

i tried using root username and password & even normal user passwd also ..
it didnt work...

Please help me to use MySQL in NetBeans 5.5

THANKS IN ADVANCE

bye

Last edited by me4linux; 09-04-2007 at 01:08 AM.
 
Old 09-05-2007, 11:16 AM   #2
hairysocks
Member
 
Registered: May 2002
Location: Thorverton, Near Exeter, Devon, England
Distribution: Ubuntu 10.04 (used to be Red Hat 7.1, then Red Hat 9, then FC 2, FC 5, FC 6, FC 9 and Ubuntu 8.04)
Posts: 105

Rep: Reputation: 16
Yes, it is asking for a password.

You should follow the instructions about setting passwords on the MySQL documentation pages - see http://dev.mysql.com/doc/refman/4.1/...rivileges.html - this shows you should set up passwords for root@localhost and root@% and I suggest you also do one for root@machine_name.

To be safe you should create another account that will be used for accessing your database, and do not use root.
 
  


Reply


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
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 mysql with jsp/servlet in Netbeans me4linux Linux - Software 3 03-13-2007 08:26 AM
LXer: Sun Announces the Latest in Open Source Tools with the Availability of NetBeans Visual Web Pack and NetBeans C/C++ Development Pack LXer Syndicated Linux News 1 12-31-2006 08:37 AM
netbeans installation problem tamtam Slackware 5 09-24-2006 11:31 AM
Software (netbeans) problem presuming_ED Linux - Software 1 11-16-2005 05:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration