Is it possible to connect an existing database with Strapi CMS? - postgresql

I am trying to create an API using Strapi CMS. I have an existing PostgreSQL + postgis database and I would like to connect-use this database in a Strapi project.
Do you know if it is possible to do something like this?

I was looking for an answer for this also, but it seems the only answer is no, because Strapi is not schema-agnostic: you must adopt their database structure to use Strapi.
Now if I could only figure out a way to ask Stack Overflow for a schema-agnostic headless CMS ... without getting it flagged as an invalid/subjective question ...

You can do it while you create a strapi app just choose custom and setup the database there. and to import existing tables from that db just create a mock table using strapi admin panel and in /api folder in your project root folder and copy paste the table data you just created in api folder and chage the name of that folder to the table name and do same for the files in side that folder and,
in the api>(your table folder)>config>routes.json file change the name of table inside I will add a link to help you better understand.
for setup in strapi with existing database>
configure-strapi-postgresql
I couldn't find the tut for setting up exist but this is for mysql setps are smilers.
strapi with sql

The best way is to create a new database with the same structure but created with strapi and after migrate the data.

You are creating an API using Strapi CMS.
There is no reason why your database should be Strapi database.
Just build your API with Strapi.
Or you can use this tutorial to integrate Strapi into your existing database as #Augusto Rodriguez said.

Related

How to share a postgreSQL database?

I'm currently working on a project with some colleagues and a colleague of mine linked a database created in her postgreSQL server to our visual studio project, but we don't know how she can share the database with the rest of us, or how can we modify the database without having it.
We're using postgreSQL 14.
One option is to create your database in a cloud provider such as AWS.
You can take a look at: https://aws.amazon.com/rds/postgresql/
This way all of you will be able to access the database.

MySQL database setup for blog created by ghost CMS

I'm new to Ghost CMS it uses SqlLite db by default and I am using Editorial theme for my blog/ website and I want use MySQL database for my blog/ website which is created by Ghost CMS
I need step by step procedures to change SqlLite db to Mysql db
https://www.fastcomet.com/tutorials/ghost/configure-mysql-database
referred this link but I didn’t get How to setup DB
I need to create a blog/website using GhostCMS which has MySql db
If you want to migrate your contents to MySQL,
Login to ghost dashboard.
Go to Settings -> Labs -> Migration options and click Export. This will export the contents of your blog.
Make a new installation of Ghost with ghost install.
Provide your MySQL connection credentials.
Login to the new installation of ghost and under Settings -> Labs -> Migration
options, click Import and select the export file downloaded in
step 2.
You may need to copy the contents (Contains images and other uploads) folder to the new installation.

Error writing to database

I'm using Moodle 3.2.
Created website in XAMPP server with database type is mariaDB.
Trying to move website in to WAMP server.
Created database in phpmyadmin and imported database.
Placed website folder in WAMP/www/site_folder.
changed configuration in config.php file.
While running the site, getting the following error.
Error writing to database
Try to run a plain moodle install before, to see if your DB configuration is working fine.
I think for MariaDB you need to set some (not standard) settings for moodle 3.2
You seems to have switched from mysql to mariaDB, Please make sure that you have set the dbtype driver right in config.php file.
$CFG->dbtype = 'mariadb';
See for reference https://docs.moodle.org/32/en/MariaDB

how to connect to jasperserver repository database

I need to import some pdf files into jasper server, for this i need to access JICONTENTRESOURCE table of repository database.
But I could not find a way to locate my repository's database (default POSTGRESQL). Can any one explain how to connect to jasperserver repository database using SQL developer/ or any other tool. thanks in advance.
Default repository DB name is 'jasperserver'. Credentials depend on what you specified during installation (default_master.properties file in case WAR file was used).
Although, you should upload resources by interacting with the application. You could use web UI (View/Repository then right-click on folder and select Add resource/File/Content Resource) or REST API web services to design a script/programm to automate the process.

Is it possible to deploy an already built Drupal site?

I'm a Drupal newbie. Is it possible to set up everything and deploy Drupal on the server? I mean things like putting in the content, setting up the modules, etc..., then you put it all up to the production server?
Of course.
copy all the files
edit the database credentials (sites/default/settings.php)
export the database content via mysqldump or phpMyAdmin (supposing you use MySQL)
import the database content at the target server
I've done it several times.