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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -