I logged into the mysql from the command line using the following command and in addition to that I was trying to import the sql file into the database as follows in the same line:
[username@abc-xyz web_app]$ mysql -u root -pmypassword -Dtestdb < TestDB.sql
Where, testdb is the name of the database.
Note: web_app is the folder where I have my TestDB.sql file present which I want to import it into the database.
After running the above command, nothing happens but I see a warning :
Warning: Using a password on the command line interface can be insecure.
Please let me know what am I doing wrong?
[username@abc-xyz web_app]$ mysql -u root -pmypassword -Dtestdb < TestDB.sql– John Jan 12 '17 at 16:51-pswitch in cleartext apparently with the version of mysql you are using. If you look at the answers on the post I provided rather than the question title only, etc. then you will see why and how to fix. I provided the post so you could look through it all (not just the question which I did not even pay attention too). – IT Thug Ninja Jan 12 '17 at 16:54mysql -u root -pmypasswordso I don't thing it's password related issue. – John Jan 12 '17 at 17:00