-->

Welcome to our Coding with python Page!!! hier you find various code with PHP, Python, AI, Cyber, etc ... Electricity, Energy, Nuclear Power

Saturday, 31 October 2020

how to create a database from batchfile

this script allow you to Create database and tables from batch file

for this save this content in a text editor 
and save it as .bat file



@echo off

:: This batch allow you to create a database

Title Projet xxxx.

 

Echo Database creation 

Echo starting script ... Please wait...

set /p dbname= "enter the name of the new db:"

createdb -h localhost -p 5432 -U postgres -E UTF-8 -e %dbname%

Echo Database created  ...

 

echo end of the process

xxx

create a postgresql database using a batch file


No comments:

Post a Comment

Thanks for your comments

Rank

seo