Ubuntu – find .SQL files on Ubuntu Server

migrationMySQLUbuntuweb-server

I am migrating web servers. I'm kind of stuck on migrating the MySQL databases. I was wondering where to find the .SQL files, that I need for migration, under Ubuntu Server. I think the .SQL files are the only ones I need. I will be doing the migration with FTP and SSH. Any help would be greatly appreciated.

Best Answer

MySQL doesn't store data as .sql files. It stores data as either MyISAM or InnoDB files, which are usually stored in /var/lib/mysql.

If you need to export to SQL files, you can do so with the mysqldump command.