【发布时间】:2021-08-23 21:07:36
【问题描述】:
我使用https://spatie.be/docs/laravel-backup/v7/introduction 进行备份,我尝试使用php artisan backup:run 备份数据库,但出现以下错误:
Backup failed because The dump process failed with exitcode 2 : Misuse of shell builtins : sh: 1: /opt/lampp/bin/mysql/mysqldump: not found
Sending notification failed
Backup failed because: The dump process failed with exitcode 2 : Misuse of shell builtins : sh: 1: /opt/lampp/bin/mysql/mysqldump: not found
.
Swift_RfcComplianceException
Address in mailbox given [] does not comply with RFC 2822, 3.6.2.
at vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php:355
351▕ */
352▕ private function assertValidAddress($address)
353▕ {
354▕ if (!$this->emailValidator->isValid($address, new RFCValidation())) {
➜ 355▕ throw new Swift_RfcComplianceException('Address in mailbox given ['.$address.'] does not comply with RFC 2822, 3.6.2.');
356▕ }
357▕ }
358▕ }
359▕
+38 vendor frames
39 artisan:37
Illuminate\Foundation\Console\Kernel::handle()
我该怎么办?
我认为问题出在此代码中的 database.php 中
'dump' => [
'dump_binary_path' => '/opt/lampp/bin/mysql', // only the path, so without `mysqldump` or `pg_dump`
'use_single_transaction',
'timeout' => 60 * 5, // 5 minute timeout
],
在 lampp Ubuntu 上哪里可以找到 mysqldump?
PS:我在 Ubuntu 上使用 laravel 8
【问题讨论】:
-
你安装包了吗?
-
哪个包?
-
composer 需要 spatie/laravel-backup 我安装了这个