Skip to content

flaviooo/mySQLnodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mySQLnodejs

Install

cd C:\wrkNodeJS
git clone https://github.com/flaviooo/mySQLnodejs
cd mySQLnodejs
mkdir dumps
npm init -y
npm install dotenv --save 
node dump.js 

Tool import/export DB mySQL Nodejs

  • Configure .env file
  • Usage: for export: node dump.js --export
  • Usage: for import: node dump.js --import -->default value DUMPFILE_IMPORT .env');
  • Usage: for import: node dump.js --import dump.sql -->Path file dumps/');

launch.json

{
"version": "0.2.0",
"configurations": [

    {
        "type": "node",
        "request": "launch",
        "name": "Launch Program",
        "program": "${workspaceFolder}\\etc\\mySQLtool\\dump.js",
        "args": [
            "--import",  
          //"--import", "${workspaceFolder}\\etc\\mySQLtool\\dumps\\dump.sql"
          // "--export"
        ],
        "runtimeArgs": [

        ],
        "envFile": "${workspaceFolder}\\etc\\mySQLtool\\.env"
    }
]

}

About

Tool import/export DB mySQL Nodejs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published