I heard recently about how Planetscale which uses Vitess can be used with Prisma. At the moment I am using Postgres but would like to try out Vitess if possible. Some of my searches found that Prisma is tested against Vitess (https://github.com/prisma/prisma-engines/blob/c28057e8dafb64a3b980d1f816494b183d47cf52/docker-compose.yml) but I can't find any docs saying if its possible and how to get it working. Any help or direction would be greately appreciated.
Thanks
Paul
Related
I'm have a mongodb installed in a droplet in digital ocean.
I was talking with de digital ocean suport right now, but, apparently he cant help me with this.
Checking mongodb logs, i see this:
2017-01-13T12:00:30.396+0000 I COMMAND [conn29429] dropDatabase
MYDBNAME starting 2017-01-13T12:00:30.398+0000 I COMMAND [conn29429]
dropDatabase MYDBNAME finished
And is repeating everyday, apparently.
I have no idea what is the cause, i dont have any cronjobs or any deleting operation in my applications.
Thanks for any help.
Your mongodb instance has been hacked, presumably because you've left it wide-open to the outside world.
There's a couple of articles here on the issue:
http://www.securityweek.com/multiple-attackers-hijacking-mongodb-databases-ransom
http://www.darknet.org.uk/2017/01/mongodb-ransack-33000-databases-hacked/z
You need to secure your mongodb instance
How is your database secured? It looks like you having security issues:
http://www.securityweek.com/multiple-attackers-hijacking-mongodb-databases-ransom
So, i have a database that i've already imported to Postgresql in multiple ways, using either the command line or pgadmin3 directly, but all attempts give me the same problem: i can't query anything when using a simple script such as
select max(velocity) from taxidatabase
because i am greeted with "relation does not exist".
I've already searched high and low and i noticed that error is caused by conflicts in name of databases that use capital letters and such, but you can see i shouldn't have that problem, as i've used nothing than small letters.
So i'm totally lost on what to do. And yes, i'm really still learning the ropes in postgresql so if it is just something really basic like an option i'm missing, pardon me! This image shows the error i'm getting and some more info you might need.
I'm using a virtual machine with
VMware Workstation
Ubuntu 15.04
Postgresql 9.4
pgAdmin3 v1.20
Thanks in advance!
I am trying to run a Postgres function from a ZF1 project, but I was unable ton find any useful tip on Google.
I tried running it via the $db->query() method, to no avail.
Thank you !
Thanks to #a_horse_with_no_name, here is the answer :
SELECT function_name()
We no FROM, or you'll have an error as I had !
I am trying to clone a remote mongo db to a local one. I am attempting to follow these instructions:
http://docs.mongodb.org/manual/reference/command/clone/
In the mongo console I type:
clone: "username#example.com:password#mymongohost.com:10035"
and the console comes back with:
username#example.com:password#mymongohost.com:10035
What am I doing wrong?
Thanks,
Kevin
Have you tried db.cloneDatabase("username#example.com:password#mymongohost.com:10035") or alternatively passing the {clone: "..."} as argument to db.runCommand()?
I think you're just missing how you're supposed to use those commands as the documentation isn't making it very clear. If you followed the 'copydb' link you might've spotted the example using 'db.copyDatabase()' instead and started wondering maybe there's a wrapper function for clone as well.
Having googled it (and looked on the heroku site) - i just can't find a set for instructions for setting a new rails app's database connection to be to a basic db created for a different (earlier) app. I know there's something to do with swapping the "color" of the databases available - but i have no idea how... and links or any simple instructions massively appreciated.
ps - i gave seen this question, but it is a couple of years old, and it seems things have moved on at heroku since then.
Go into the directory you are pushing to Heroku and type the following:
heroku config:set DATABASE_URL=`heroku config:get DATABASE_URL -a other-app`
Where "other-app" is the database from the app you created earlier. For example:
heroku config:set DATABASE_URL=`heroku config:get DATABASE_URL -a running-tree-4822`
More detailed instructions are on Heroku's web site:
https://devcenter.heroku.com/articles/heroku-postgresql#sharing-heroku-postgres-between-applications
I think the answer to the question you reference is still relevant. There's also a blog post with more details here.