Home Database Mysql Tutorial mysqldump选项之skip-opt

mysqldump选项之skip-opt

Jun 07, 2016 pm 04:34 PM
Options

最近在用mysqldump备份时,想要把数据表和数据分开备份,因此做了2次备份。 执行备份数据库表结构时,指定了 skip-opt 选项,相当于: --add-drop-table, --add-locks,--create-options, --quick, --extended-insert,--lock-tables, --set-charset, and --di


最近在用mysqldump备份时,想要把数据表和数据分开备份,因此做了2次备份。
执行备份数据库表结构时,指定了 –skip-opt 选项,相当于:

--add-drop-table, --add-locks,
--create-options, --quick, --extended-insert,
--lock-tables, --set-charset, and --disable-keys
Copy after login

选项 –create-option 看起来比较不起眼:

  -a, --create-options 
      Include all MySQL specific create options.
Copy after login

事实上,如果把它disable的话,备份出来的表结构,会少了:

AUTO_INCREMENT   --PK字段的AUTO_INCREMENT属性以及数据表的AUTO_INCREMENT属性都会丢掉
ENGINE=InnoDB DEFAULT CHARSET=utf8  --数据表的引擎、字符集属性
Copy after login

等MySQL特有的数据表属性,需要注意下,版本信息见下:

Server version:         5.5.19-55-log Percona Server (GPL), Release rel24.0, Revision 204
mysqldump --version
mysqldump  Ver 10.13 Distrib 5.5.19, for Linux (x86_64)
Copy after login
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Personal hotspot option not found on iPhone [Fixed] Personal hotspot option not found on iPhone [Fixed] Jul 15, 2023 pm 08:45 PM

When there is no Wi-Fi signal around us, what we think of is a personal hotspot on our iPhone, right? Recently, many iPhone users have commented that they cannot find the personal hotspot option on their iPhone and therefore, this creates a big problem for all of them. The main reasons that may cause this particular issue on your iPhone may include one of the following reasons. Small software bugs in iPhone. The iOS software on your iPhone is not updated to the latest version. Changes were made to the network settings on the iPhone. Do not update carrier settings (if any). There is a problem with the mobile network signal on the iPhone. After dealing with these factors we found an easy solution to this problem and used

How to set default camera focus on iPhone 15 Pro How to set default camera focus on iPhone 15 Pro Sep 22, 2023 pm 11:53 PM

On the iPhone 15 Pro model, Apple has introduced three focal length options for shooting with the main camera. This article explains what these options are and how to set your preferred default focal length for taking photos. To take full advantage of the enhanced camera system on iPhone 15 Pro and iPhone 15 Pro Max, Apple has added three different focal length options to the main camera’s optical zoom. In addition to the standard default 1x (24mm) mode, Apple has added 1.2x (28mm) and 1.5x (35mm) settings. iPhone 15 Pro users can choose from these focal lengths when taking photos by simply tapping the 1x button in the Camera app. However, due to technical reasons, these focal

How to use block quotes in Apple Notes How to use block quotes in Apple Notes Oct 12, 2023 pm 11:49 PM

In iOS 17 and macOS Sonoma, Apple has added new formatting options for Apple Notes, including block quotes and a new Monostyle style. Here's how to use them. With additional formatting options in Apple Notes, you can now add block quotes to your notes. The block quote format makes it easy to visually offset sections of writing using the quote bar to the left of the text. Just tap/click the "Aa" format button and select the block quote option before typing or when you are on the line you want to convert to a block quote. This option applies to all text types, style options, and lists, including checklists. In the same Format menu you can find the new Single Style option. This is a revision of the previous "equal-width"

How to check iPhone model country How to check iPhone model country Jul 09, 2023 pm 11:33 PM

Did you know that Apple outsources certain parts of its products to different countries? Yes. They are specifically intended for sale in these countries and are therefore manufactured there. You may have purchased a second-hand iPhone/iPad from someone else and may be wondering if it is possible to know which country your iPhone came from. Yes, there is a way to find out, and we will talk more about it now in this article. In this article, you will find an explanation of how to find out the country of origin of your iPhone using simple steps. How to Know the Country of Origin of iPhone Step 1: First, you should tap on the Settings icon from the home screen. Step 2: This is to open the Settings app, once opened, click on it to go to the General option as shown below.

How to Default 'Show More Options' in Windows 11's Right-Click Menu How to Default 'Show More Options' in Windows 11's Right-Click Menu Jul 10, 2023 pm 12:33 PM

One of the most annoying changes that we users never want is the inclusion of "Show more options" in the right-click context menu. However, you can remove it and get back the classic context menu in Windows 11. No more multiple clicks and looking for these ZIP shortcuts in context menus. Follow this guide to return to a full-blown right-click context menu on Windows 11. Fix 1 – Manually adjust the CLSID This is the only manual method on our list. You will adjust specific keys or values ​​in Registry Editor to resolve this issue. NOTE – Registry edits like this are very safe and will work without any issues. Therefore, you should create a registry backup before trying this on your system. Step 1 – Try it

Fix: Dock in taskbar option is grayed out on Windows 11 Fix: Dock in taskbar option is grayed out on Windows 11 Sep 15, 2023 pm 05:35 PM

The language bar is an important feature in Windows that allows users to quickly switch inputs instead of using the + keyboard shortcut. But in some cases, the dock option in the taskbar appears gray in Windows 11. This problem with WindowsSpacebar seems to be very common and there is no solution. We tried changing the language settings and reconfiguring the content, but to no avail. Although we finally managed to find the root cause and solution. Why can't I dock the language bar in the taskbar in Windows 11? You only have one language installed, and the language bar only works with multiple languages. The language is not installed correctly. A bug in Windows 11. Corrupted system files or user profiles. If in W

How to open Internet options in Edge browser How to open Internet options in Edge browser Jan 03, 2024 pm 12:49 PM

Friends who use IE browser will definitely use Internet options to set it up, but they can’t be found on edge browser, so how to open it? In fact, you only need to open the IE browser in the edge browser to set it up. Where are the internet options of the edge browser: 1. Enter the edge browser and click the three dots in the upper right corner. 2. Select "More Tools" in the taskbar. 3. Select "Open with Internet Explorer" in the new interface. 4. Click "Gear Settings" in the upper right corner of the new browser. 5. You can find "Internet Options" in the taskbar. 6. Click to enter settings.

How to deal with checkboxes and radiobuttons in PHP forms How to deal with checkboxes and radiobuttons in PHP forms Aug 11, 2023 am 08:39 AM

How to handle checkboxes and radio buttons in PHP forms In web development, forms are one of the main ways of data interaction between applications and users. In forms, sometimes we need to use checkboxes and radiobuttons to select options. This article will explain how to handle checkboxes and radio buttons in PHP. 1. Checkbox processing In HTML, we can use <inputtype="checkbox&qu

See all articles