MySQL安裝樣本employee資料庫

來源:互聯網
上載者:User

標籤:mysql employee

伺服器作業系統:CentOS release 6.8 (Final)

資料庫系統:MySQL 5.5.52

任務:安裝employee樣本資料庫

操作步驟:

[[email protected] ~]# wget https://launchpadlibrarian.net/24493586/employees_db-full-1.0.6.tar.bz2

[[email protected] ~]#tar jxf employees_db-full-1.0.6.tar.bz2

[[email protected] ~]# cd employees_db

[[email protected] employees_db]# mysql -uroot  -p  -t <employees.sql    #匯入資料庫

Enter password: 

+-----------------------------+

| INFO                        |

+-----------------------------+

| CREATING DATABASE STRUCTURE |

+-----------------------------+

+------------------------+

| INFO                   |

+------------------------+

| storage engine: InnoDB |

+------------------------+

+---------------------+

| INFO                |

+---------------------+

| LOADING departments |

+---------------------+

+-------------------+

| INFO              |

+-------------------+

| LOADING employees |

+-------------------+

+------------------+

| INFO             |

+------------------+

| LOADING dept_emp |

+------------------+

+----------------------+

| INFO                 |

+----------------------+

| LOADING dept_manager |

+----------------------+

+----------------+

| INFO           |

+----------------+

| LOADING titles |

+----------------+

+------------------+

| INFO             |

+------------------+

| LOADING salaries |

+------------------+

[[email protected] employees_db]# time mysql -uroot  -p  -t < test_employees_sha.sql   #驗證資料庫

Enter password: 

+----------------------+

| INFO                 |

+----------------------+

| TESTING INSTALLATION |

+----------------------+

+--------------+------------------+------------------------------------------+

| table_name   | expected_records | expected_crc                             |

+--------------+------------------+------------------------------------------+

| employees    |           300024 | 4d4aa689914d8fd41db7e45c2168e7dcb9697359 |

| departments  |                9 | 4b315afa0e35ca6649df897b958345bcb3d2b764 |

| dept_manager |               24 | 9687a7d6f93ca8847388a42a6d8d93982a841c6c |

| dept_emp     |           331603 | d95ab9fe07df0865f592574b3b33b9c741d9fd1b |

| titles       |           443308 | d12d5f746b88f07e69b9e36675b6067abb01b60e |

| salaries     |          2844047 | b5a1785c27d75e33a4173aaa22ccf41ebd7d4a9f |

+--------------+------------------+------------------------------------------+

+--------------+------------------+------------------------------------------+

| table_name   | found_records    | found_crc                                |

+--------------+------------------+------------------------------------------+

| employees    |           300024 | 4d4aa689914d8fd41db7e45c2168e7dcb9697359 |

| departments  |                9 | 4b315afa0e35ca6649df897b958345bcb3d2b764 |

| dept_manager |               24 | 9687a7d6f93ca8847388a42a6d8d93982a841c6c |

| dept_emp     |           331603 | d95ab9fe07df0865f592574b3b33b9c741d9fd1b |

| titles       |           443308 | d12d5f746b88f07e69b9e36675b6067abb01b60e |

| salaries     |          2844047 | b5a1785c27d75e33a4173aaa22ccf41ebd7d4a9f |

+--------------+------------------+------------------------------------------+

+--------------+---------------+-----------+

| table_name   | records_match | crc_match |

+--------------+---------------+-----------+

| employees    | OK            | ok        |

| departments  | OK            | ok        |

| dept_manager | OK            | ok        |

| dept_emp     | OK            | ok        |

| titles       | OK            | ok        |

| salaries     | OK            | ok        |

+--------------+---------------+-----------+

real    0m19.958s

user    0m0.005s

sys     0m0.009s


本文出自 “sky9890” 部落格,請務必保留此出處http://sky9896.blog.51cto.com/2330653/1953898

MySQL安裝樣本employee資料庫

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.