I have a "mega-heavy" SQL file that does not open either in sublime, in notepad or in gedit. I just need to delete the first line Use nome_database;
to be able to import through the workbench or mysql command line in the terminal:
mysql -hmeu_servidor -uroot -psenha banconovo < path/meuarquivo.sql
.
The problem is that the name of the bank is different, so it is giving an error, it does not find the base. Does anyone have an alternative to delete this line without having to open the file?
It can be via script edit.sh
or via PHP edit.php
. Or some better suggestion ...