I'm using Laravel Valet with Craft 3 (Craft 3.0.0-RC13) and Sequel Pro.
I can't seem to get Craft to update. I just get a warning sign and a message saying that it couldn't back up the database.
When I looked at my log file, it contained the following:
FROM
craft_info
2018-03-27 09:54:43 [127.0.0.1][1][-][error][craft\controllers\UpdaterController::actionBackup] Error backing up the database: The shell command "mysqldump --defaults-extra-file="/Users/richardclark/Sites/lorindafontainefarris/storage/runtime/temp/my.cnf" --add-drop-table --comments --create-options --dump-date --no-autocommit --routines --set-charset --triggers --single-transaction --no-data --result-file="/Users/richardclark/Sites/lorindafontainefarris/storage/backups/lorinda-fontaine-farris_180327_135443_jfivi9ibwf_v3.0.0-rc16.1.sql" lorindafontainefarris && mysqldump --defaults-extra-file="/Users/richardclark/Sites/lorindafontainefarris/storage/runtime/temp/my.cnf" --add-drop-table --comments --create-options --dump-date --no-autocommit --routines --set-charset --triggers --no-create-info --ignore-table=lorindafontainefarris.craft_assetindexdata --ignore-table=lorindafontainefarris.craft_assettransformindex --ignore-table=lorindafontainefarris.craft_cache --ignore-table=lorindafontainefarris.craft_sessions --ignore-table=lorindafontainefarris.craft_templatecaches --ignore-table=lorindafontainefarris.craft_templatecachecriteria --ignore-table=lorindafontainefarris.craft_templatecacheelements lorindafontainefarris >> "/Users/richardclark/Sites/lorindafontainefarris/storage/backups/lorinda-fontaine-farris_180327_135443_jfivi9ibwf_v3.0.0-rc16.1.sql"" failed with exit code 127: sh: mysqldump: command not found 2018-03-27 09:54:43 [127.0.0.1][1][-][info][application] $_GET = [ 'p' => 'admin/actions/updater/backup'
I tried adding a PATH reference to my export PATH=$PATH:~/.local/bin/mysqldump
in the .bash_profile
file, but that didn't seem to do anything. Do I have to add something to the CraftValetDriver
file, or is my PATH reference incorrect?
Any help would be greatly appreciated.
Thanks,
Richard