User-friendly tool to edit databases in Eclipse - java

Is there any tool in Eclipse comparable with phpMyAdmin? The project is in Java and I want to use H2 database. I have installed DTP but it is not as much user-friendly as phpMyAdmin. I did not find the way to create a table without typing sql query.

Check Quantum plugin for Eclipse. Is a friendly interface to manipulate databases.
Another option is Eclipse SQL Explorer.

you can use squirrel or dbvisualizer. both are two software that use the jdbc to connect on a database, and for dbvisualizer should be an eclipse plugin...

Related

using Eclipse for JDBC and MySQL

I'm trying to install a couple of things so I can practice querying DB's with JDBC. But even with the copious amount of info I found through Google I'm not convinced I'm clear on what I need. It seems I need the Eclipse SQL Explorer plugin and MySQL 5.6 for Windows. Have I got that correct? And what about the JDBC Driver for MySQL (Connector/J) on the MySQL website?
Do I not need to worry about that when I'm using Eclipse?
you need the following things
mysql database
eclipse IDE
mysql.jar
jdk/jre

Is it possible to use derby from apache in Eclipse now that they stopped developing the derby plugin for Eclipse?

I would like to use Derby from apache in order to include database management on a desktop application that I'm currently developing.
Unfortunately I figured out that they have stopped developing this plugin and all the tutorials I've read online refer to this plugin.
So my question is, how can I use the latest version of Derby on eclipse? What steps should I follow? I would like my application to be standalone and easily transferable.
thanks in advance
Apache Derby is just like other databases that provide interface through JDBC. You don't need a specific plugin to connect with Derby. Just use the usual JDBC routines.
Basic steps:
If you want to use the latest Derby version, first you need to download it from here
You need to include the jar in your classpath.
You just need to make connections and perform queries using JDBC, as better explained at the Oracle JDBC Tutorial.
Ditto pram.
I'm using Derby in a Java app I'm developing with Eclipse, and I didn't know there was a plug-in. I connect to Derby like I would to any other database. I use the Derby command-line interface to manage the tables. \
(One feature of other db's I would have liked to see in Derby: having SQL extensions to display db metadata, like MySql's "show" and "describe" commands. Derby has these in the command-line interface, but they're apparently implemented there rather than in the SQL engine itself, so you can't use them outside of the CLI. Bummer. When I'm developing, I often build an ad hoc query screen into the app that lets me type in and execute arbitrary queries. (And no, I don't deploy this to public websites.) But I digress.)
I don't know what the plug-in does for you. I've never used an Eclipse plug-in for any database.
The plug-in is still available in source form, and instructions for building it are available on the Derby website: http://svn.apache.org/viewvc/db/derby/code/trunk/plugins/eclipse/Readme.txt?view=markup
From time to time the instructions for building the plug-in change; you might wish to check into the status of this issue for further updates: https://issues.apache.org/jira/browse/DERBY-5272

Ideal data source for Standalone Applications?

Suppose I created a standalone application in java and distributed it through my website.
What I need to know is what is the ideal Database solution I can use so that all the users can use the application without installing anything extra.
For example, if I use SQL server or MySql database, the downloader will need those installed so that I can dump my database on it. Another solution I see is to use Database file like Microsoft Access .mdb file. But that too will need Microsoft Office installed on the client. XML files are platform independent but anyone can open and change them.
What is the solution used by most of the applications?
H2 is a very potent candidate for your need. We use it as a default RDBMS in all our demo applications and also for db-driven unit testing.
You could use an embedded database. There are hundreds for Java some which use SQL and many which don't. Any database you use, you may want the users to be able to maintain, so users editing the data may be a good thing.
You could consider Derby as it ships with Java.
I would use plain flat files which are CSV formatted unless you have a more specific requirement. e.g. you can load and edit them in excel/spreadsheet editor/text editor.
H2 is the successor of HSQLDB (same developer). It is not only one of the finest embedded DBs for JAVA, it is also free, even for commercial use. It's great with hibernate and comes with with a powerful web-interface (you can start it by running the h2 jar file). Additionally there is the possibility to encrypt you database (AES). We use that feature for getting some security aspects right with some of our projects.
check javadb. it is easy and can be redistributed
Firebird can do this : there is an embedded version.
There is some good java drivers
Using MDB files on Windows doesn't require any additional installation requirements such as Microsoft Office. DAO and ADO have come with the Windows OS since Windows 2000.

when developing using eclipse or netbeans, do you use phpmyadmin to admin mysql?

When developing using eclipse or NetBeans, do you use phpmyadmin to admin MySQL, or is there a plugin that makes things more integrated?
I don't think that this "integration" is so important. What are you integrating? It's just another perspective rather than ALT+TAB.
For MySQL I use MySQL Administrator and MySQL Query Browser. It's just a matter of UI and provided functionality preference. It's not a matter of being a plugin or not.
NetBeans has very good database support, including MySQL. So there is no need for an external admin tool if you are using NetBeans IMO.
In Eclipse, the database support that you get with the Eclipse Data Tools Platform (DTP) is more "Query" oriented, not really "admin" oriented and you won't get wizards to create tables and so on. If this is what you're looking for, then you may need an external tool when using Eclipse (phpmyadmin, Toad, MySQL admin tool, whatever).
I use the Netbeans database integration, it has several useful features:
completion
insert/delete/edit tables in the IDE
connect any database (I use it with MySQL, Oracle and hsqldb)
For Eclipse you may use DBViewer.
It's the best DB plugin for Eclipse (IMHO)
I use MySQL-Front
The first thing i did was learn to use the native CLI tools for mysql. There are quite a few, mysql itself, mysladmin, mysqldump, mysqlimport etc. These are very powerful and have many more options than any GUI i have ever seen. You do not need to learn all the commands but running, say, mysqladmin and looking at the options will give you an overview of what is there.
The second thing to do is to write some scripts at the CLI to do the normal everyday things you want. These are like a set of tools that you can carry around and adapt as circumstances dictate.
The beauty of doing the two above items means you can work on any system with MySQL on it regardless of OS or GUI's. It means you can work remotely over slow networks and still get stuff done.
After that GUI's and integrated tool are OK and often quicker in visual terms for looking at details. phpmyadmin is good as it will go on most systems. Never really tried the plugins with Eclipse, used the MySQL GUI tools but find them flaky, however i use a Mac so that might be a factor. If you use Mac then Sequel Pro is a usefull tool.

Choosing between Firebird and HSQLDB in Java

I want to write a small (5-6 table) desktop app in Java. I want to use Firebird 2.1. database. But I googled and see HSQLDB. I want to make a decision between Firebird and hsqldb.
So which database I have to use?
Firebird runs in a process of its own and your java app needs to communicate with it. The advantage HSQLDB has that it is written in java, and can run in the same process, which simplifies your installation and runtime check ups (Is the db running, connection errors, etc.). It can persist the data to the disk as well. AN additional option is the H2 database db, which also can run in process.
I'd go with the HSQLDB or H2.
For a desktop application an embedded database should be enough. hsqldb or h2 are very well suited for this. You just have to add the JAR file to you applications classpath. Firebird looks more complex.
Actually, H2 is more advanced than hsqldb.
Firebird is very good embedded database and just win an award at SouceForge this year
SQLite have good press for embedded Database too.
I recomend HSQLDB because it's implemented in Java (so you have the same platform as the application) and I guess that you don't need any of the feature for the project of that size that could FireBird provide.
Don't forget that Java 6 comes with JavaDB, and that may be a useful implementation for a first solution. It's a repackaged Apache Derby, and consequently quite powerful.

Categories

Resources