Flutter MySql1 Realtime data - mysql

I can't make data run in Realtime which mean data that I want display always update if have change in database. right now I just can make data display if I push button to request data from MySQL workbench. I using MySQL1
Please help me almost a month I try to solve this problem T_T

Related

MySQL "No database selected" (Using API)

I'm in the middle of making a React API Spring-boot App with a SQL database (named persons). Everything is launching alright and the database is showing on the react app. But! I made this database days ago and when I go back into Terminal to find it using SELECT * from persons; it is telling me
No database selected".
I also put in 'Describe persons;' ...and nothing. Once you make a database and make a API out of it, can you not change the name of the tables and the content? How can I access this again?

How to render a graph when Mysql data is updated in Vue?

I organized like this,
Back-end: Nodejs - Insert a data to MYSQL periodically.
DB: MYSQL
Front-end: Vue.js - Draw and Re-render a Graph with Mysql Data when data is updated.
In this situation, do I have to check a MYSQL data per seconds whether it is latest or not? and then I have to render a graph again?
Or is there a way like when MYSQL data is updated, triggering a specific methods that is re-render a graph(automatically).
I prefer a second way though, I have no idea it is possible.
Someone can give an advises me plz? or example?
What you could do is using socket.io for this. The moment you update your database in Node.js you then also send a notification or the data over a socket, which tells your Vue.js application that it needs to load new data or gives it the data directly.
I used the following npm packages for my setup with Vue.js and Node.js:
Vue: socket.io-client
Node: socket.io
I followed these 2 sites when I faced a similar problem to get a hang of sockets:
https://socket.io/get-started/chat/#Introduction
https://medium.com/#jaouad_45834/basic-chat-web-app-using-express-js-vue-js-socket-io-429588e841f0

UI Testing (casperjs) with good known status of data (mysql database)

I'm using CasperJS for automated UI tests. I've done the basic UI testing and validation with some random data, kind of POC. I've set up this automation using bash script which kicks to start the web server, load MySQL data from SQL file, start CasperJS test cases, stop the web server, check the log files.
Now, I want to start the testing with some good known status of data which are stored in MySQL. So that I can test the list data and form data with detailed field information with some known database status. How should I know the status of data in the database at a moment?
1) Should I use pre-populated JSON dumped file which has status and details about all data?
2) Should I use web service API? (web service APIs are being used to show/save/delete data from the web page)
Let's take an example. I've 5 users in Users table. Now when I open the home page it shows 5 users with some rough details. When I click on any record from the list of users, it shows a form with detailed information about that user. The webpage is requesting to the web application to get the detail about a user with the help of user_id to show the detailed user data in a form. Now I want to check that all the data in that form is populated correctly. So at the next step, what would be the preferred way, should I read content from JSON dumped file or should I use web service API (like webpage does).
Searching this problem online, I also found MYSQL HTTP plugin. Should I consider this as well? and How safe it is to use? (I know from the docs that this plugin is not for the production, it is just for testing purpose only. :) )
For the main question in cases like this I would change the database connection string to your testing database (this is a clone).
In your case use your bash script to change the connection string (file copy?) automatically before you run the tests. And when completed change back.
Your testing database is a direct clone of your dev/live databsae but with ONLY the test data you want. Downside is you need to keep the schema in sync with DEV/LIVE.
Also another point to take into considertion is if your testing changes state (post). If so your testing data might be out of sync. One way is get around this is to drop foreign keys, truncate the data and load in a dump file.
HTH

unable to refresh data fields in ssrs report

i am trying to update a report. i have stored procedure in my database for getting the fields for data set.i updated the stored procedure for new data fields, and the stored procedure is working properly. but when i try to refresh the fields in the data set it shows the error "Could not update a list of fields for the query. Verify that you can connect to the data source and the query syntax is correct."
i am using a shared data source. and connection to the data source is working. it was worked yesterday but now i am not able to refresh data fields.
please help me
thanks in advance
I solved this problem.
I login to my system using different account. That's why my access credentials are different.i solved this problem by changing my account.
their is one more chance to occur this problem. that is when our credentials to the data source is not correct at that time also we got the same error.

Database Listener (Node.js + Socket.io)

I'm trying to learn Node.js and Socket.io
I'm trying to create a page that will display the values of a database table whenever changes are detected.
For simplicity, I would only be changing the values of the database table via PHPMyAdmin manually.
Would this be possible? If so, could you point me in the right direction so that I can try it out.