File tree 1 file changed +2
-0
lines changed
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,7 @@ public function actionExport()
248
248
$ command = new Command ('mysqldump ' );
249
249
250
250
$ command ->addArg ('-h ' , getenv ('DB_PORT_3306_TCP_ADDR ' ));
251
+ $ command ->addArg ('-P ' , getenv ('DB_PORT_3306_TCP_PORT ' ));
251
252
$ command ->addArg ('-u ' , getenv ('DB_ENV_MYSQL_USER ' ));
252
253
$ command ->addArg ('--password= ' , getenv ('DB_ENV_MYSQL_PASSWORD ' ));
253
254
$ command ->addArg ('--no-create-info ' );
@@ -312,6 +313,7 @@ public function actionXDump()
312
313
$ truncateTable = '' ;
313
314
314
315
$ command ->addArg ('-h ' , getenv ('DB_PORT_3306_TCP_ADDR ' ));
316
+ $ command ->addArg ('-P ' , getenv ('DB_PORT_3306_TCP_PORT ' ));
315
317
$ command ->addArg ('-u ' , getenv ('DB_ENV_MYSQL_USER ' ));
316
318
$ command ->addArg ('--password= ' , getenv ('DB_ENV_MYSQL_PASSWORD ' ));
317
319
$ command ->addArg (getenv ('DB_ENV_MYSQL_DATABASE ' ));
You can’t perform that action at this time.
0 commit comments