Jump to content

Newbie Going Out Of His Mind


Recommended Posts

I am using a windows pc with xampp and I am trying to import a sql file into a mysql database through the terminal and I have looked through various forums and have came up with nothing this is what I have been using, I have tried log in the terminal and while logged out and it dosen't work , it say syntax error while I am logged in and when I try it when I am logged out it says It can't find the file even through I put in the full path name C:\mysql\data\query_file.sql

mysql -u username -ppassword < query_file.sql
Hope someone can help
Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...