I'm fairly new to databases. I want to upload a .sql file to a mysql server. However the database I want to update contains many .frm .myi .myd files. Should I delete those files and replace with the .sql?
Any suggestions/tips would be greatly appreciated.
Best Answer
Back up the old database files to a dump using
mysqldump -u username -p database_name > dump.sql
then import the new sql file usingmysql -u username -p database_name < new_sql_file.sql
.