【求助】mysql表空间问题

laughing__ 2011-09-28 11:06:14
如题,哪位仁兄写个创建mysql表空间的事例,谢谢啦

Oracle创建表空间的实例如下:

create tablespace zfmi
logging
datafile 'D:\oracle\oradata\zfmi\zfmi.dbf'
size 100m
autoextend on
next 32m maxsize 2048m
extent management local;

mysql创建表空间不会写,size等关键词在mysql里不支持,求解!

最好给一个实例,3Q了

...全文
91 8 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
rucypli 2011-09-28
  • 打赏
  • 举报
回复
刷库是什么意思
WWWWA 2011-09-28
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 laughing__ 的回复:]
引用 1 楼 wwwwa 的回复:
mysql没有表空间


那通过shell脚本进行刷库的操作是没有办法执行了?
[/Quote]
详细说明 进行刷库的操作 是什么?
laughing__ 2011-09-28
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 wwwwa 的回复:]
mysql没有表空间
[/Quote]

那通过shell脚本进行刷库的操作是没有办法执行了?
WWWWA 2011-09-28
  • 打赏
  • 举报
回复
mysql没有表空间
ACMAIN_CHM 2011-09-28
  • 打赏
  • 举报
回复
[Quote]This information is also shown for InnoDB tables (previously, it was in the Comment value). InnoDB tables report the free space of the tablespace to which the table belongs. For a table located in the shared tablespace, this is the free space of the shared tablespace. If you are using multiple tablespaces and the table has its own tablespace, the free space is for only that table. Free space means the number of completely free 1MB extents minus a safety margin. Even if free space displays as 0, it may be possible to insert rows as long as new extents need not be allocated.

[/Quote]
ACMAIN_CHM 2011-09-28
  • 打赏
  • 举报
回复
MYSQL的表空间概念比较单一,仅INNODB有表空间的概论,并且它也只支持一个表空间,即所有的表都放在这一个表空间内,而不象ORACLE那样。 并且你也不能创建表空间,只能在MY。INI文件中指定。
wwwwb 2011-09-28
  • 打赏
  • 举报
回复
在MYSQL中,将SQL语句存入文件中,比如 a.sql
mysql -utoor -p <a.sql
laughing__ 2011-09-28
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 wwwwa 的回复:]
引用 2 楼 laughing__ 的回复:
引用 1 楼 wwwwa 的回复:
mysql没有表空间


那通过shell脚本进行刷库的操作是没有办法执行了?

详细说明 进行刷库的操作 是什么?
[/Quote]

刷库就是通过shell脚本执行写好的数据库脚本(包括建表,初始化数据,表空间),只要shell执行成功了,数据库就在本地安装好了,好像是这样的

56,940

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧