Thursday 28 May 2020

Cannot connect to MySQL using shell.exec

I have following code ::const shell = require('shelljs')shell.exec("mysql -umall_stage -p'783452' -h10.258.40.90 testDB");When I run this code I get message :mysql: [Warning] Using a password on the command line interface can be insecure.After this, I get no response it gets stuck here. But when I run the command directly I get the same warning and I get connected to DB. Is there any reason why it's not working through code?

Submitted May 29, 2020 at 06:31AM by GhostFoxGod

No comments:

Post a Comment