'mysqldump' is not recognized as an internal or external command

后端 未结 2 1469
既然无缘
既然无缘 2021-01-04 09:52

currently im trying to make backup and restore mysql database in my laravel project. I am using this laravel package https://github.com/backup-manager/laravel for backup pac

2条回答
  •  [愿得一人]
    2021-01-04 10:48

    If you are using Xamp then:

    1. Open your Xamp folder
    2. Go to \mysql\bin find the mysqldump.exe
    3. Go to your environment variables under System variable click on 'New'.
    4. As 'variable name' put 'mysqldump'(without the quotes) and as 'variable value' put the path to your xamp\mysql\bin\mysqldump.exe this will make 'mysqldump' available as a global system alias.

    Reminder: Make sure to restart your command-line interface.

提交回复
热议问题