代码之家  ›  专栏  ›  技术社区  ›  Vijay S KernelPanik

滥用shell内置:mysqldump:Got错误:2004:“无法创建TCP/IP套接字”

  •  0
  • Vijay S KernelPanik  · 技术社区  · 6 年前

    正在启动备份。。。

    备份失败,因为转储进程失败,exitcode为2:滥用shell内置:mysqldump:get错误:2004:尝试连接时:“无法创建TCP/IP套接字(10106“未知错误”)”\r\n

    我在试图

    $output=Artisan::output();

    使用 在命令行上运行良好。 enter image description here

    称之为拉雷维尔的工匠会犯这个错误。

    我正确地分配了 config/database.php配置 倾倒

    'mysql' => [
                ...
                'dump' => [
                   'dump_binary_path' => 'C:\xampp\mysql\bin',
                   'use_single_transaction',
                   'timeout' => 60 * 5, 
                   'exclude_tables' => ['table1', 'table2'],
                ]  
            ],
    

    0 回复  |  直到 6 年前
        1
  •  0
  •   vreedom18    5 年前

    把你的项目文件夹放到 C:\xampp\htdocs 然后在浏览器中打开它:

    yourdomain/PROJECT-NAME/public

    对我来说很好