gpt4 book ai didi

mysql - 用户创建的对象存储在哪里?

转载 作者:搜寻专家 更新时间:2023-10-30 20:28:08 25 4
gpt4 key购买 nike

在 Oracle 中,每个用户都是一个模式,默认情况下,每个用户创建的对象都创建到他们的模式中。

在 MySQL 中,用户和他们的权限存储在 mysql.user 中,但是当他们创建对象时,他们在哪里创建?

是否有针对每个用户的架构概念?

我们可以像 MySQL 中的 Oracle 一样为表和索引创建一个单独的模式吗?

最佳答案

MySQL Glossary 中所定义:

In MySQL, physically, a schema is synonymous with a database. 
You can substitute the keyword SCHEMA instead of DATABASE in MySQL SQL syntax,
for example using CREATE SCHEMA instead of CREATE DATABASE.

Some other database products draw a distinction. For example, in the Oracle
Database product, a schema represents only a part of a database: the tables
and other objects owned by a single user.

关于mysql - 用户创建的对象存储在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20794961/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com