Visual export from administrative panel (without code)
An excellent alternative that I use for this type of task is the free plugin All-in -One WP Migration , which allows you to export and import the SQL database (or all site files, if you prefer), from the WordPress panel itself, without having to deal with with FTP and file permissions, totally visually .
The installation of the plugin is done by the WordPress panel itself in " Plugins > Adicionar Novo
". Search for "All-in-One WP Migration".
Aftertheinstallationtheoperationissimple:
InsiteA:GotomenuSiteMigration>Export
exportthedatabase(orthewholesite)withtheplugin.Atsomepointitwillgenerateafilewiththe.zip
extension;OnsiteB:GototheSiteMigration>Import
menuanddragthe.zip
filegeneratedinstep1intotheimportarea.Andthat'sit!
Thepluginworksverywellandcanevenbeusedbyclients,foraquickbackupofthewholesiteorjustthedatabase,justbytriggeringsomeverysimpleoptions.
Anotherimportantfunctionofthepluginisthefullyvisualsearchandreplaceofthesiteaddressandotherinformation(suchastheserverpath)thatneedtobechangedinthedatabasedatatoallowthesitetofunctionproperlyafterexporting.
I use the plugin frequently in my projects and recommend it to everyone.