通常情況下對于一個全新的MySQL服務器,沒有任何數據供我們測試和使用。對此,MySQL為我們提供了一些樣本數據庫,我們可以基于這些數據庫作基本的操作以及壓力測試等等。本文描述的是安裝sakila數據庫。該數據庫需要安裝在MySQL 5.0以上的版本。以下是其描述。
1、下載種子數據庫
下載位置:http://dev.mysql.com/doc/index-other.html
2、安裝種子數據庫sakila
The sakila.mwb file is a MySQL Workbench data model that you can open within MySQL Workbench to examine the database structure. For more information, see MySQL Workbench.
[root@localhost ~]# ls
anaconda-ks.cfg Desktop install.log install.log.syslog sakila-db sakila-db.zip
[root@localhost ~]# cd sakila-db
[root@localhost sakila-db]# ls
sakila-data.sql sakila.mwb sakila-schema.sql
[root@localhost sakila-db]# mysql -uroot -p <sakila-schema.sql
Enter password:
[root@localhost sakila-db]# mysql -uroot -p <sakila-data.sql
Enter password:
3、驗證安裝結果
新聞熱點
疑難解答