I opened the entire file through an editor. I am unable to copy and paste the whole content to execute the sql file. What is correct method to execute such a large sql file?
If you re using phpmyadmin its default is using myisam engine that use data lower than 2 gb, if you want to use it for more than 2 gb you just have to change the engine to innodb.
You need to identify also what is the source of dbms in th file is it mysql or oracle or sql because each one have its differentiation such as store procedure or tsql syntaks.
If its mysql with such big file maybe you can try sqlyog for importing the file.