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

后端 未结 2 1453
既然无缘
既然无缘 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:27

    It is because mysqldump.exe is not found in that location, the right path is given bellow

    1. Open Command Prompt and type this

      cd C:\Program Files (x86)\MySQL\MySQL Server 5.5\bin

    Press Enter

    then type

    mysqldump.exe

    or,

    Directly open this directory "C:\Program Files (x86)\MySQL\MySQL Server 5.5\bin" and Press LEFT SHIFT KEY from keyboard and RIGHT CLICK on the Directory Window. then type

    mysqldump.exe

    It will work 100% correctly

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题