通常情况下对于一个全新的mysql服务器,没有任何数据供我们测试和使用。对此,mysql为我们提供了一些样本数据库,我们可以基于这些数据库作基本的操作以及压力测试等等。本文描述的是安装sakila数据库。该数据库需要安装在mysql 5.0以上的版本。以下是其描述。
1、下载种子数据库
下载位置:
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、验证安装结果
如对本文有疑问, 点击进行留言回复!!
服务器Centos部署MySql并连接Navicat过程详解
网友评论