Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I use Netbeans and the services that allow me to create a mysql database. My question is, when I finish my project will the database be of use? Or do I have to create a new database?
If you didn't get the question right here is a complete description of my question: Is the inbuilt database only used during the building stage of the project? Or can I still use the data created in the database, with the same code? And not have to create a new database?
No need to create database again. When you configure the database server you are basically creating a client connection for your database server in your IDE. So it's not IDE bound, which means you can use the same database.
I guess you can use the same database you created before.
Netbeans creates the database at first stage when you are creating the model. But once you do it, you can reuse it by just accessing with the own credentials. Perhaps would be great if you can elaborate a bit more.
What kind of databse are you refering to? Mysql, oracle, postgresql?
May you attach an screenshot of what you are doing in netbeans?
Hope this could help so other people can understand in detail.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed yesterday.
Improve this question
I made a french conjugator GUI using Java. I also created a SQL Database which had all the french verbs that users could pick and choose using SQL Workbench and connected it to the project.
When I tried to share it with my friends, they were able to access the Java project and see the various GUI elements, but none of the conjugations came up. I shared the database as well exported in the .sql format.
What can I do to fix this problem?
Probably you are using a data base like MySql or PostgreSQL .., like that all of your friends need to install this data base into their machine and have the same configurations as yours.
The first solution (simple) is to use an internal data base like : JavaDB,
SqlLite .
The second solution is to put a script that will be run within the
first execution of you Desktop application / the installation of your
application, this script will downloed the DB use and configure it,
create the tables and do the Job.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have made an app and now I want to my app to save the name of the users when they enter it on an online server where it can be stored and can be viewed by me.
How can I achieve this?
First of all your question is kind of messy, but I will try to explain it to you as simple as possible.
1) You will need an web server with data base and service API to which you will post the users. Try reading more about this or add other tags as it's not so much in android hands.
2) In the app you will need to connect to the API service and POST the data to the server where you will receive it. For this case try reading more about retrofit as it will reduce your pains, big time.
And in the near future try asking more concrete questions.
You can use a Firebase Realtime Database. It's free of charge for basic projects and has a good documentation. Also it's main platform target is Android.
Install a database to the server to store the names.
Install something like tomcat to run a web service on it.
Create the web service to accept data entries and store them in the database.
Call your web service from your app with the given username as parameter.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
My code is simple, it generates a Data Base to store certain data (obviously), but the problem resides in the fact that it would create an "overflow" of DBs becuase every time the class ran it would generate another Data Base, I heard of a command:
CREATE DATABASE IF NOT EXISTS insertYourFavoriteName;
But some people say that why should I need a DB for each computer, when I could just do a central one when users conect, but correct me if I'm wrong, that would make the app depend on internet, right?
So in resume here are the 2 questions:
Does the command mentioned above works? Or does a better version or way to work around it exists?
Data Bases where all users connect to it mean that you need a server, and as a consecuence your app would depend on internet?
If you want to learn about databases you practice basic CRUD operations on that database. After that do some sample applications on database
If you want to create a database if not exists in mysql simply use this CREATE DATABASE IF NOT EXISTS DBName;
Basically before checking all these things you have to have basic understanding of what is database and how it works, So, please go through some good resources and get good understanding on the concepts.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am working on a program which gets all links from a website to use them later on. I am using the Java library JSoup to get the links form the website.
My problem is that I don't know where to store all links for later use. Every link has some attributes like "used" or "not used" and the date when it was used. It should also be Windows and Mac compatible. The saved data should be updateable, editable and the program should read the file where the data is saved fast.
Does anyone know a way to solve my problem?
Edit:
As my question wasn't clear for everyone here's a simpler question:
Should I store the links with their attributes in a database or in a file?
If you need to store on a single file I'd go for SQLite. It's a SQL database provider that can save a whole database on a single file. SQLite databases are universally portable.
EDIT: As #bigdestroyer commented, Apache Derby is pure Java and may be another interesting option for you. I haven't used it though, but there is a nice comparison here.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Hello people I'm a web developer who wants to write some Android apps. I have some experience in object oriented programming concepts and it won't be difficult to get familiar with Java. Anyways the application I want to write has two parts. One is a mobile client that has read permissions from the database, the other is a desktop client that will update and modify data in database. The database itself shall be contained in a server (just another desktop) proper to the office. Each office will have this configuration and the databases from each office will be collected to update the main database (collection of databases from all offices) which would be stored on a remote server.
My questions are:
Is it possible?
If it is possible, can you provide some guidance for a fellow code writer?
Yes it is possible. What you need is Volley to handle your API calls. Check here to get started.