I had .sql file in D:/xxx/User.sql file, and mysql home in c drive. Now i want to import this .sql file in Pr Schema Till now what i tried is msql -u root -p<d:/xxx/User.sql file . I am trying to dump in this way by following one on link. can any 1 please let me know the exact procedure for executing sql file in mysql
I had .sql file in D:/xxx/User.sql file, and mysql home in c drive. Now
Share
Well, this has several mistakes.
The command is
mysqlnotmsql.There needs to be a whitespace between
-pand<d:/xxx/User.sql fileWhat is the
fileat the end of this command? This shouldn’t be there.Note, there should only not be a whitespace after -p when you actually specify a password.
You haven’t specified a database, in which your script should be running.
The correct way should be
Flo Doe’s answer is also fine.