Discussion:
Database URL for MySQL in Mac OS X
srhcpa
2009-06-22 21:32:03 UTC
Permalink
I am using the tutorial about Netbeans and MySQL at http://www.netbeans.org/kb/60/ide/mysql.html.



When I try to connect to the MySQL server using the database url as :/// I get an error message.



When I try from scratch I have the following to complete:

jdbc:mysql://<HOST>:<PORT>/<DB>



This is where I am getting hung up. I have tried a number of variants such as:



jdbc:mysql://localhost:3306/test



but I keep getting an error message.



Can someone tell me how to set up the database URL and find the needed components?



Thanks,



Steve
Andy Knight
2009-06-23 11:26:33 UTC
Permalink
What's the error message?


Andy Knight
Principal Engineer, Field Assist Support Team
Sun Microsystems, Inc.
Java House, Guillemont Park, Minley Road, Blackwater
Camberley, Surrey GU17 9QG United Kingdom
Home office: +44 1494 462438
Mobile: +44 7775 583415
Skype: aprknight
Email: ***@Sun.COM
Blog: http://blogs.sun.com/andky
Post by srhcpa
I am using the tutorial about Netbeans and MySQL at http://www.netbeans.org/kb/60/ide/mysql.html
.
When I try to connect to the MySQL server using the database url
as :/// I get an error message.
jdbc:mysql://<HOST>:<PORT>/<DB>
This is where I am getting hung up. I have tried a number of
jdbc:mysql://localhost:3306/test
but I keep getting an error message.
Can someone tell me how to set up the database URL and find the needed components?
Thanks,
Steve
troy giunipero
2009-06-23 11:28:50 UTC
Permalink
Post by srhcpa
I am using the tutorial about Netbeans and MySQL at http://www.netbeans.org/kb/60/ide/mysql.html.
When I try to connect to the MySQL server using the database url as :/// I get an error message.
jdbc:mysql://<HOST>:<PORT>/<DB>
jdbc:mysql://localhost:3306/test
This looks correct.
Post by srhcpa
but I keep getting an error message.
What's the error message?
Post by srhcpa
Can someone tell me how to set up the database URL and find the needed components?
What are you using the database for? If for PHP development, the
easiest and quickest solution would be to install MAMP:

http://www.netbeans.org/kb/docs/php/configure-php-environment-mac-os.html

-troy
Post by srhcpa
Thanks,
Steve
Melongo Annabel
2009-06-23 22:00:04 UTC
Permalink
That tutorial has a feedback at the very end. Can you please contact the tutorial author's through that channel? He will surely be in touch with you. Thanks.




________________________________
From: srhcpa <***@debitsandcredits.com>
To: ***@netbeans.org
Sent: Monday, June 22, 2009 4:32:03 PM
Subject: [nbusers] Database URL for MySQL in Mac OS X

I am using the tutorial about Netbeans and MySQL at http://www.netbeans.org/kb/60/ide/mysql.html.



When I try to connect to the MySQL server using the database url as :/// I get an error message.



When I try from scratch I have the following to complete:

jdbc:mysql://<HOST>:<PORT>/<DB>



This is where I am getting hung up. I have tried a number of variants such as:



jdbc:mysql://localhost:3306/test



but I keep getting an error message.



Can someone tell me how to set up the database URL and find the needed components?



Thanks,



Steve

Continue reading on narkive:
Loading...