Import MySQL test database employee error

Source: Internet
Author: User
Tags mysql version mysql command line

Import MySQL Test Database employee Error

: https://launchpad.net/test-db/

Upload unzip:

[Email protected] ~]# Tar XF employees_db-full-1.0.6.tar.bz2

[Email protected] ~]# CD employees_db

Using the MySQL command line tool, import the build table statements and data

Employee.sql is a built-in database statement, the default is to use the InnoDB engine, you can modify your own

[email protected] employees_db]# Mysql-uroot-p123456-t < Employees.sql # There will be an error:

ERROR 1193 (HY000) at line : Unknown systemvariable' storage_engine '

This is because the downloaded data does not follow the MySQL version upgrade changes, after the mysql5.7.5, this variable was removed, instead of default_storage_engine can be, modified as follows:

Set default_storage_engine = InnoDB;

--Set storage_engine = MyISAM;

--Set storage_engine = Falcon;

--Set storage_engine = PBXT;

--Set storage_engine = Maria;

Select CONCAT (' Storage Engine: ', @ @default_storage_engine) as INFO;

[Email protected] employees_db]# Mysql-uroot-p123456-t < Employees.sql

Import MySQL test database employee error

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.