So not sure it this is stupid to ask, but I'm running a neo4j database server (using Apollo server) from my React Application. Currently, I run it using node in a separate terminal (and I can navigate to it on localhost), then run npm start in a different terminal to get my application going. How can I get the database just up and running always, so if customers use the product they can always access the database? Or, if this isn't good practice, how can I establish the database connection while I run my client code?
Technologies being used: ReactJS, Neo4j Database, GraphQL + urql
I tried moving the Apollo server code into the App.tsx file of my application to run it from there directly when my app is launched, but this was giving me errors. I'm not sure if this is the proper way to do it, as I think it should be abstracted out of the client code?
If you want to run your server in the cloud so that customers can access your React application you need two things:
one server/service to run your database, e.g. Neo4j AuraDB (Free/Pro) or other Cloud Marketplaces https://neo4j.com/docs/operations-manual/current/cloud-deployments/
A service to run your react application, e.g. netlify, vercel or one of the cloud providers (GCP, AWS, Azure) that you then have to configure with the server URL + credentials of your Neo4j server
You can run neo4j-admin dump --to database.dump on your local instance to create a copy of your database content and upload it to the cloud service. For 5.x the syntax is different, I think neo4j-admin database dump --path folder.
Related
I have a local GeoServer running on tomcat which using a PostGIS store to get layers from the PostgreSQL database. There is a production server that runs the same version of my local GeoServer and PostgreSQL database. In order to apply changes in layers and layer groups of my local GeoServer, I copied and replaced the data directory to production GeoServer. After restarting the tomcat on the production server, Geoserver unable to load Layers and Layer Preview pages on the web interface. Trying to change the host address of the store or creating a new one, it gives me this error:
Error creating data store with the provided parameters: Failed to upgrade lock from read to write state, please re-try the configuration operation
You don't say which OS you are using or how you made the copy, but the most likely error is a permissions or ownership one.
Make sure that the user which is running GeoServer has permission to read, write and execute on the data dir. On linux machines I've seen issues with uid and gid differences between machines depending on how the copy id carried out. On Windows I've seen issues just because windows and the virus scanner feel like it.
When using the community function jdbcconfig, the same issues.
It seems that an error occurs because file locking of catalog is performed.
Since the data directory is not used by using JDBCconfig, the file lock has been improved by setting it to Lock Disable.
https://docs.geoserver.org/stable/en/user/configuration/globalsettings.html#file-locking
i'm working on a vb application that uses a sql server database in a desktop module(windows form) which is supposed to export this database to a web application(in vb.net).
so my question is : is there a way i can export this database from my desktop app to the web app and vice versa(from the web abck to the desktop app)
thnx in advance
Most Database servers have the possibility to Replicate their Database even over the Internet. That would be the simplest solution and you can find some very good articles. If you have differnet Databases types, this can be tricky or even impossible.
Second possibility: make a database dump, ftp the dump to your server, and the a program imports that dump. You must read if the "Web database" cann import that dump
Otherwise you have to have a server component that can Receive Data from your windos app and save that in the "Web Database".
Your windws Program is the client who opens a connection to the web app, opens the dDatabse and sends the database, for example as sql statement text to the wep app.
The cpnnection should be encrypted, and your wep app as server also shold include a login procedure, with very good passwort. You know that every Ip gets scanned permanently.
for such client server combination, you will find also lots of examples.
Good luck
I am working through the Laracasts db tutorial to learn how to work with databases in a properly 'Laravel' way. I have set up a local MySql instance and I have run the migrations to set up my tables and fields and also for the built in Laravel user authentication/login/register functions. It all works perfectly on the command line. My user 'root' and password allow me to browse my new db, select and add records as you might expect. However, when I run the app through my browser I get 'Access denied for user root'.
Is this because I'm running my app under 'Homestead/Vagrant'? Do I need to copy my MySQL database to the vagrant box somehow - maybe setting it up with the homestead yaml file? I'm confused!
IF you are hosting your MySQL database on your host but your app inside the vagrant box it won't work. Instead let homestead/vagrant run the MySQL database inside the box and connect into it.
We have been trying to set up a CI process for SQL server database, and have successful imported the remote (DEV) db into our local database as a VS project. So we are able to make changes to the local db, run unit tests and then commit/push changes to the remote repo. The CI server (TFS) triggers the process on the remote DEV server, making the build and running the unit tests.
Everything is nearly working apart from the connection string to be made before running the test. We are not able to differentiate the app.config file based on the running environment. It is fixed and (it seems) can contain only one reference (local or remote) therefore the connection to the database can only work locally or remotely.
Is there any possible way to adjust the connection string in the app.config on the fly connecting it against local db (on the user laptop) while working locally and using the remote DEV database while the CI process is triggered by the TFS ?
Is it a good practice to use two different files (i.e. local.app.config and remote.app.config) ? if yes, how ?
or would you rather change its content based on the running env ? or maybe there is an easier way in VS which I don't truly know!
We really appreciate any advice/suggestion.
Thanks!
While configuring the SQL Server 2012 Master Data Services, I am having following problem
The required .svc handler mappings are not installed in IIS.
What I want to do is that, I want to query my database using a URL so that I can retrieve data directly using the URL it self just like we can store the querystring parameters into SQL Server
How do I deal with it, I followed several documents but not any ideas.
To fix this issue, open a command prompt and go to the .NET directory
(for example %windir%\Microsoft.NET\Framework64\v4.0.30319).
Run the command: aspnet_regiis –i
For further details check:SVC Handler mapping error in MDS Configuration Manager
I've come across these types of errors a few times when installing MDS, the problem usually comes about because just having IIS installed is not enough, there are loads of other role services and features that you need to enable and install as well which the setup program doesn't tell you about.
Thankfully they are all documented here:
Web Application Requirements (Master Data Services)
And, if you've missed any, you can go back, install them and then re-launch the configuration tool to complete the setup without having to re-install MDS from scratch.