简体   繁体   English

mysql数据库

[英]mysql databases

could you guys please explain for me HOW these databases ARE CREATED : 你能为我们解释一下这些数据库是如何创建的:

  • mysql MySQL的
  • phpmyadmin phpMyAdmin的
  • information_schema INFORMATION_SCHEMA
  • performance_schema performance_schema

I know it's a novice question, I might GUESS the answer for some of them, for example "the reason phpmyadmin database is created" IS because I installed phpmyadmin and this database was created alongside . 我知道这是一个新手问题,我可能会为其中一些人提供答案,例如“创建phpmyadmin数据库的原因”是因为我安装了phpmyadmin并且这个数据库是在旁边创建的。 That's not for sure, so I just need some clarification. 这不是确定的,所以我只需要澄清一下。

Thank you ! 谢谢 !

Mysql is a database server. Mysql是一个数据库服务器。 It serves access to databases. 它可以访问数据库。 It runs on a machine as a service. 它作为一项服务在一台机器上运行。

Phpmyadmin is a php based tool you install for managing mysql from a web page. Phpmyadmin是一个基于php的工具,您可以安装它来管理网页中的mysql。

The last two are databases that can be created by an application, such as phpmyadmin, for storing schema information about the rest of the database or tables of a database. 最后两个是可以由应用程序创建的数据库,例如phpmyadmin,用于存储有关数据库其余部分或数据库表的模式信息。

These are the standard set of databases shown when you execute SHOW DATABASES on a clean MySQL install. 这些是在干净的MySQL安装上执行SHOW DATABASES时显示的标准数据库集。

  • mysql - this is created at install of the MySQL server, either by the package management system of your operating system or the script provided as part of the MySQL package mysql - 这是在安装MySQL服务器时创建的,可以是操作系统的软件包管理系统,也可以是MySQL软件包提供的脚本
  • information_schema - meta database, it does not exist on the disk information_schema - 元数据库,它不存在于磁盘上
  • performance_schema - meta database, but it does store some files on the disk performance_schema - 元数据库,但它确实在磁盘上存储了一些文件

Any other databases are user/application created. 任何其他数据库都是用户/应用程序创建

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM