Strapi with new Postgres DB - strapi

ive just setup a Strapi on my local Mac with Postgres. all is okay in dev/prod modes.
The next step - I trying to push my Strapi code to the server and connect to new database. So I make Postgres sql dump - then import one into server’s db. Import shows no errors and db looks fine.
When I starting Strapi I get errors:
[2022-07-17 23:28:25.288] debug: ⛔️ Server wasn't able to start properly.
[2022-07-17 23:28:25.290] error: create table "strapi_database_schema" ("id" serial primary key, "schema" json, "time" timestamp, "hash" varchar(255)) - relation "strapi_database_schema" already exists
on every table. May be problem with dump or/and import process?

Related

how do i import my oracle database to oracle cloud website?

I want to import my oracle database from local server to oracle cloud Autonomous database , i have already exported dump file by using expdb and i need to import the database to oracle cloud ,
i created the database on the oracle cloud website , and i read details in the following link :
https://docs.oracle.com/en/cloud/paas/autonomous-data-warehouse-cloud/user/load-data-data-pump.html#GUID-30DB1EEA-DB45-49EA-9E97-DF49A9968E24
they wrote the steps after export :
Store your Cloud Object Storage credential using DBMS_CLOUD.CREATE_CREDENTIAL. For example:
BEGIN
DBMS_CLOUD.CREATE_CREDENTIAL(
credential_name => 'DEF_CRED_NAME',
username => 'adwc_user#example.com',
password => 'password'
);
END;
/
where i will execute this command in which platform or software , in command prompt or SQL developer , also after create credential import the database , where to import no full details in oracle website ?
There is another ways to import database to oracle cloud like golden gate SQL loader and SQL developer import wizard but this way data pump the recommended way by oracle and easiest one.
Also i have suggestion to admins to add new tag Oracle-Cloud.
Once you have the credential created in the db as shown, if you want, you can use SQL Developer (while connected to your Autonomous Database) use the Import Wizard to run your Data Pump Scenario.
View > DBA
Add your connection
Open Data Pump, right click on Import Jobs, and select the wizard
using the credential, pull up your DMP file in OSS
I share steps here

Create mongodb database using Laravel command [duplicate]

I'm using a book to learn MongoDB. It says that in order to create a db in Mongo, I just need to 'use' it.
show dbs
admin 0.000GB
local 0.000GB
When I do, use someDBName
It says switched to db someDBName
But when I do show dbs
I just see admin and local again. I don't see the someDBName database.
It will not show until your database is empty.
To have your database shown you can use
create collection command to insert collection then it will be shown to you by using
show dbs
Per the MongoDB documentation:
If a database does not exist, MongoDB creates the database when you first store data for that database. As such, you can switch to a non-existent database and perform the following operation in the mongo shell:
use myNewDB
db.myNewCollection1.insertOne( { x: 1 } )
The insertOne() operation creates both the database myNewDB and the collection myNewCollection1 if they do not already exist.

Oracle : How to export the database?

So I am using oracle 11g and I am unable to figure out how to export my tables and all.. I am able to export forms but i don't know how to do the same with everything else.. What I did was I went on Application Builder - Export - Workspace - Export workspace. It downloaded an sql file but whenever I try exporting that file on a different account, I always get the following error
File is not a valid Application Express application export file.
What I do to import the file is go to application Builder - Import - browse the file - Next - and then I get that error message. What do I do?
If you export the whole schema (and that's what you're looking for, isn't it? You have to give everything to your professor), you shouldn't worry about import because data is imported first. After that, Oracle creates ("imports") foreign key constraints.

What happens to existing tables during import using impdp

I want to export and import an entire schema from Prod to Dev, but Dev has already existing tables (that are not there in Prod) which I don't want to be affected.
So, the question is during import (impdp) what happens to those existing tables?
thanks.
if you have backuped full database including create database and create tables queries in backup then there occurs error.
To solve the problem you needs to remove each line that is intented to create database and new table.
if you have dumped data only data is added to existing table with no errors. (if contains no syntax error)
if You don't need data in dev database Then login to database server and delete all tables that are in prod and then import your database file.
if You don't want to delete data in dev database Then create entirely different database import file to that database and modify your connection string.

Parse.com sync data from an account to another

I'm trying to sync the data between parse.com account (which is production) to another parse.com (which is development). Any ideas? I have found a way to export the production into CSV, but I can't import it with the relations and pointers.
Due to import function seems not supported, you should try to duplicate your mongodb from prod to dev.
First, following the migration guide(db part) point the db by your uri. Second, duplicate the prod db to another db, and get another uri. Third, create new Parse APP with this uri.

Resources