I want to import an .sql file into a database on my local WAMP environment on Win7 64bit. I used this command before already, and it worked then - now, it just seems to fail without an error. Instead, MySQL simply returns the help/usage file.
My import command: mysql.exe -u root -p password database_name < db.sql
MySQL returns:
mysql.exe Ver 14.14 Distrib 5.1.53, for Win64 (unknown) Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL v2 license Usage: mysql.exe [OPTIONS] [database]
(followed by the long list of possible commands).
When I type a different command such as:
mysql.exe use database_name
, the exact same thing happens. This leads me to believe there is something wrong with my setup.
What am I doing wrong? Thanks!