Skip to content

secgin/mariadbdump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MariaDBDump

MariaDb veritabanı için sql scripti oluşturur.

Veritabanı scripti oluşturulan veritabanı nesneleri

  • Table
  • Table Index(primary key, unique key, plan, fulltext)
  • Table Constraints (foreign key, check constraint)
  • View
  • Procedure
$options = [
    'database' => [
        'host' => '',
        'dbname' => '',
        'user' => '',
        'password' => ''
    ]
];

$mariadbdump = new Mariadbdump($options);

try
{
    echo $mariadbdump->dump(__DIR__ . '/backup/');
}
catch (SaveFileException $e)
{
    echo 'Veritabanı scripti dosyaya kaydedilemedi!';
}
catch (Exception $e)
{
    echo $e->getMessage();
}

About

Create a Backup From MariaDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages