I want to import an .sql file into a database on the server through command line.
I understand that I should use the follow line:
mysql -u username -p database_name < textfilewithsqlstatments.sql
the sql file is currently in my local folder, shall I upload it to the server first? how should I specify the directory for this file?
Thanks