Import SQL file into mysql -
i have database `nitm`. haven't created tables there. have sql file contains necessary data database. file `nitm.sql` in `c:\ drive`. file has size of 103m. using wamp server.
i have used following syntax in mysql console import file.
mysql>c:/nitm.sql;
but didn't work.
from mysql console:
mysql> use database_name;
mysql> source path/to/file.sql;
make sure there no slash before path if referring relative path... took me while realize that! lol
Comments
Post a Comment