通常情况下对于一个全新的MySQL服务器,没有任何数据供我们测试和使用。对此,MySQL为我们提供了一些样本数据库,我们可以基于这些数据库作基本的操作以及压力测试等等。本文描述的是安装sakila数据库。该数据库需要安装在MySQL 5.0以上的版本
下载sakila-db.zip http://dev.mysql.com/doc/index-other.html 解压 安装
root
@ubuntu:/tools
root
@ubuntu:/tools/sakila-db
sakila-data.sql sakila.mwb sakila-schema.sql
root
@ubuntu:/tools/sakila-db
Enter password:
root
@ubuntu:/tools/sakila-db
Enter password:
或者登陆到mysql
mysql
>source /tools/sakila
-db/sakila
-schema.sql
mysql
>source /tools/sakila
-db/sakila
-data.sql
转载请注明原文地址: https://ju.6miu.com/read-1312597.html