I used this mtcars example Shiny app guide to connect to my tables in MySQL in order to do data entry. However, when I publish the same code to the ShinyApp.io, whatever changes that I made to the table when using the ShinyApp reflects on the MySQL tables and databases, but it is not showing in the ShinyApp. I want the ShinyApp table to reflect the changes I made in previous sessions. How do I fix this?
I've tried using dbExecute instead of dbSendQuery, but it gives the same results.
Related
We're 2 people working with Mysql in Datagrip and both of us have the problem that when trying to apply changes to our local database after a simple SELECT statement it's read only: "This view is read-only".
It hasn't been a problem until 2 weeks ago.
In same tab we are able to apply changes to our test and production database.
We've tried everything that's been mentioned in this question:
datagrip Cannot apply changes This table is read only. Cell editor changes cannot be applied
We've also tried to reinstall mysql and datagrip. If we double click any table in the local database we can make changes that way, or through update statements.
Does anyone have any suggestions to what might be the problem? It's getting really painful.
I have databases in my system and also put database on web server also, so when I update my system database data I ll have to then replace or add data into web database.
but
problem is that I am doing changes in database to some specific record frequently for testing purpose.
So I want some mechanism that will used to export some specific records to sql file with insert statement.
Suppose I have made change in table tbl1 and added 10 records to it.
So right now I am manually adding or replacing whole table on web database.
So is there any mechanism in MySql or in Workbench using that I can export specific records.
Any Help for that.
The only automatic solution is to use replication, but that is probably not a good solution for your scenario. So what remains is some manual process. Here are some ideas:
Write a script that writes specific records into a dump file.
Then use a different script to load this dump file into your
target server.
If you frequently change the same records you could create a script
with insert statements that you edit for each new value and run
against both your local and your remote (web) server.
I have an .sql script that contains inserts and creates tables. I used the "Create EER Model From Script"
It created the tables but I can't see the data inside these tables.
I went to the query menu and tried to make a query but it gives me an error about not being able to connect to localhost.
Am I doing it right?
As documented under Create EER Model from SQL Script:
Clicking this action item launches the Reverse Engineer SQL Script wizard. This is a multi-stage wizard that enables you to select the script you want to create your model from.
For further information, see Section 7.7.9.1, “Reverse Engineering Using a Create Script”.
Following that link:
However, if you are working with a script that also contains DML statements you need not remove them; they will be ignored.
Instead, you want the Manage Data Import/Export option under Server Administration (within the Workspace section of the Home window).
You are confusing things here. Creating a model from a script is a process where meta data is examined and a model is created that you can then use to modify your schema structure, further design your db objects and all that. Modeling is a design process for the structure of your schema/db so it only deals with meta data. It's also used for documentation (e.g. in teams).
On the other hand there's normal sql work with existing db objects and/or actually creating/deleting/modifying db objects. In order to do the latter you must have an understanding of the design of the schema (which you could get by using the modeling part of MySQL Workbench, but not only by that). This is also the place to load a script, run it to insert data and such.
The error you mentioned regarding the connection is yet another problem and you need to solve this first to be able to even access your server. And yes, you have to install a server first somewhere. MySQL Workbench is a tool to visually work with your server(s) in opposition to the MySQL command line client which is a pure text interface (but still also a client application for your MySQL servers).
If you are on Windows and want a MySQL server installed locally (e.g. for testing) your best option is to download the MySQL Installer which greatly simplifies installing any of the tools from the MySQL family (server, client tools, connectors, documentation and more).
I have an application for iPad that needs to be able to connect to a MySQL database to populate a table with information. The database is already set up however I do not know how to make the application populate the table view with the data from the MySQL Server. Do the cells in the table view have to be dynamic or can they be static? Im pretty new to iOS development so any help would be appreciated. Im starting fresh with a project so lets assume that i am starting with a View Controller that has a button, when pressed, goes through a navigation controller to display the table view controller.
I understand that the application cannot connect directly to the MySQL (information gathered from posts on this website) so a PHP file has been generated that updates as the data on the MySQL server updates.
Thanks
I used the following tutorial to learn how to parse data from my xml files into tables. It needed minor tweaking for XCode 4.2, but simple to do. I use XML files hosted on our site that are populated from our SQL servers daily. If you need more specific guidance, I'll be glad to provide it.
http://www.lonhosford.com/lonblog/2011/05/11/xcode-4-iphone-mountains-of-the-usa-tutorial-lesson-1-setup-the-app/
I have a mysql db with 10 tables. Each table drives a website where users can look at or submit data to that table.
Now the more popular tables have stopped displaying new data (checking through phpmyadmin).
The smaller tables are still working fine.
I don't get any errors when submitting. The data just doesn't show up in the database.
It's all on one shared hosting server. How can it be that only certain tables in a database have problems?
This kind of question comes up from time to time. Every time I've seen this type of question, it turns out that the app displaying the data is connecting to a different database than the one you're updating through phpMyAdmin.
So my recommendation is to assume nothing, and double-check every database connection in both your apps and your phpMyAdmin sessions.
Try to insert data with phpmyadmin in those tables were you have problems.
I have occasionally had trouble with MySQL not updating tables if I have multiple server processes running using the same data files.
I had these problems with MySQL 4.1 where one server was running standalone and the other was running embedded. MySQL did not generate any error messages on start-up. I have not tried to reproduce my problems with newer versions of MySQL.