You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9d07ac1
Browse filesBrowse the repository at this point in the historyBrowse files
Runs `mysqldump` utility using `DB_HOST`, `DB_NAME`, `DB_USER` and
440
-
`DB_PASSWORD` database credentials specified in wp-config.php. Accepts any valid `mysqldump` flags.
447
+
`DB_PASSWORD` database credentials specified in wp-config.php. Accepts any valid [`mysqldump` flags](https://dev.mysql.com/doc/en/mysqldump.html#mysqldump-option-summary).
441
448
442
449
**OPTIONS**
443
450
@@ -531,7 +538,7 @@ Runs `mysqldump` utility using `DB_HOST`, `DB_NAME`, `DB_USER` and
531
538
Imports a database from a file or from STDIN.
532
539
533
540
~~~
534
-
wp db import [<file>] [--dbuser=<value>] [--dbpass=<value>] [--<field>=<value>] [--skip-optimization] [--defaults]
541
+
wp db import [<file>] [--dbuser=<value>] [--dbpass=<value>] [--<field>=<value>] [--skip-optimization] [--skip-sql-mode-compat] [--defaults]
535
542
~~~
536
543
537
544
Runs SQL queries using `DB_HOST`, `DB_NAME`, `DB_USER` and
@@ -554,7 +561,10 @@ defined in the SQL.
554
561
Extra arguments to pass to mysql. [Refer to mysql binary docs](https://dev.mysql.com/doc/refman/8.0/en/mysql-command-options.html).
555
562
556
563
[--skip-optimization]
557
-
When using an SQL file, do not include speed optimization such as disabling auto-commit and key checks.
564
+
Do not disable unique checks and foreign key checks during import.
565
+
566
+
[--skip-sql-mode-compat]
567
+
Do not adapt the session SQL mode for WordPress compatibility. By default, `wp db import` strips the SQL modes that WordPress Core disables (such as `STRICT_TRANS_TABLES` and `NO_ZERO_DATE`) so that dumps containing legacy values like `0000-00-00` import cleanly. Pass this flag to import under the server's own SQL modes instead.
558
568
559
569
[--defaults]
560
570
Loads the environment's MySQL option files. Default behavior is to skip loading them to avoid failures due to misconfiguration.
@@ -1046,7 +1056,7 @@ This project is licensed under the MIT License. See the [LICENSE](LICENSE) file
1046
1056
1047
1057
## Support
1048
1058
1049
-
GitHub issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support
1059
+
GitHub issues aren't for general support questions. For support resources and next steps, see the WP-CLI Support page: https://make.wordpress.org/cli/handbook/support/
1050
1060
1051
1061
1052
1062
*This README.md is generated dynamically from the project's codebase using `wp scaffold package-readme` ([doc](https://github.com/wp-cli/scaffold-package-command#wp-scaffold-package-readme)). To suggest changes, please submit a pull request against the corresponding part of the codebase.*
0 commit comments