Use of the initial execution file at MySQL startup

Source: Internet
Author: User
You can specify the SQL file that is initially executed after mysql is started in the configuration file. The syntax is as follows: [mysqld] or [server:

You can specify the SQL file that is initially executed after mysql is started in the configuration file. The syntax is as follows: [mysqld] or [server:

You can specify the SQL file initially executed after mysql is started in the configuration file. Its syntax is:

In [mysqld] or [server], specify:

Init-file = D: \ mysql-5.5.28-winx64 \ abc. SQL, followed by the specific SQL file value

For example:

Abc. SQL:

After mysql is started, query:

After the second startup, the following result is displayed:

Of course, we should note that the content of this init_file is required:

1. Make sure that the -- disable-grant-options switch is not added during mysqld compilation.
2. Make sure that each line of the script specified by init-file is a specific executable statement.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.