sorry for my bad English.
I'm trying to store device data in RDMS. I've changed:
<url>jdbc:h2:repository/database/customdeviceDM_DB;DB_CLOSE_ON_EXIT=FALSE</url>
to
<url>jdbc:mysql://localhost:3306/customdeviceDM_DB</url>
and change user name, password, mysql driver installed too.
but it is not working. I tried to create table manually, but I can't create new device. Please help and thanks.
Related
I have been using aws dynamodb to store the user details (like mail Id, username, etc...) and before it was fine. until today, suddenly few row's data disappeared from the table and the data was empty can't able to figure out why this is happening. we didn't even changed anything and user also not aware of this. is anyone faced this kind of issue before? Kindly give me any suggestion to figure this out.
hello guys so i made this website that intergrate with my router to manage the user inside it,but i have this question i want to ask
so my website only visualise the data that it got from the router and i have this voucher system to give out voucher to the user
to access the network as right now i save this voucher in my database but due to each of the voucher data that it i save to the database and from the database it display to the web, it all from data that it got from the router<-- and here
come the problem is that the data is not valid because if the admin access the router and delete one of the voucher profile it will cause and error,because the voucher in database is been deleted from the router,
is there any way i can do this so that i dont need to use database to save this? thanks
you can try storing it in files. but its not reliable, and not as efficient as storing in database. its also not ass fast. it takes more time to update file than update database. so db is your best and only option.
I never had to deal with database, therefore, sorry in advance!
I was asked to create a database for a project and store data output from a c++ program into the database. I informed on Google about databases, and I came across with MySQL, and in particular database connection. As far as I understood, in the first place a database has to be created (for example with MySQL), and once data are inserted, it’s possible to access to them. However, it’s not totally clear what is possible to achieve with such a connection and how to save data from a c++ program into the database directly.
Based on what I read on the net, these should be related, is it right? I would really need some help, example or clarification about these two questions. Thanks in advance for your time!
First you should create DB and tables.
You can do it in each DB IDE wizards, or you can write it in a script.
So here are scrypt for MySQL
CREATE DATABASE test_db --this create DB called test_db
I guess you should store a message and a timestamp so a possible table (In MySQL) will be:
USE test_db -- from now on the script using test_db unless specified explicit DB
--creating table with id, mmessage and timestamp
CREATE TABLE output_table (
msg_ID INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
msg VARCHAR(max),
msg_TS TIMESTAMP DEFAULT CURRENT_TIMESTAMP)
In the above table you only need to give the message since all the rest are filled automatically. So Insert into the table command may look like this:
INSERT INTO output_table (msg) values ('this is a message')
When you want to check the whole table you run the following:
SELECT * FROM output_table
Now you need to connect this code to your c++ code:
Generally, you'll need to know db name, user name and password in manner to connect to DB.
You can use ODBC + MySQL ODBC Connector. It is better since you are not limitted in your c++ to a specific DB. If you are sure you will use only MySQL you can use also MySQL C++ Connector directly. Anyway, both will give you option to run SQL commands on your DB.
HERE you can fine MySQL c++ connector sample
HERE you can find ODBC sample.
Is there a way to upload and import the Chinook DB into Oracles' APEX. I downloaded the db file from the chinook website (https://chinookdatabase.codeplex.com/) but having trouble finding how to upload it.
I think you got it wrong. Chinook documentation page suggests that - once you download the file and extract ZIP contents into some directory - you have to connect to SQL*Plus in order to perform installation.
It says that you should create a database user (which means that you have to have access to that database as a privileged user, such as SYS). Then you'd create objects and insert data into tables.
Therefore, Apex comes far, far in the future (regarding your current position). Besides, I'd say that it is YOU who should create an Apex application based on Chinook database; you won't get anything Apex-ish during Chinook installation.
I have copy my sqlite DB in icloud and I want to use that icloud sqlite DB as insert/update and delete. I did code for it but it is not working in other device(I have 2 devices). Means when I perform any DB operation it is working for one this other device does not show any change in device. If I Insert one record in iPhone it does not show in iPad. I am useing copyItemAtPath,removeItemAtPath and removeItemAtURL methods from FileMenager class.
It's really urgent.
Thanks
Use CoreData + iCloud. Check out https://devforums.apple.com/thread/126670?tstart=0 you should have Developer acc to access the forum.