[英]Amazon EC2: MySql Database storage?
I do have a Linux instance in Amazon EC2. 我在Amazon EC2中确实有一个Linux实例。 After installing the Linux instance, I simply installed
apache
and set up a MySQL
database inside it via console. 安装Linux实例后,我只需安装
apache
并通过控制台在其中建立一个MySQL
数据库。 Now I do have questions. 现在我有问题。
Where is my database is located exactly? 我的数据库到底在哪里? I can simply access it via
phpMyAdmin
like in the same way we do in desktop PCs. 我可以像在台式机中一样通过
phpMyAdmin
访问。 Is my database in Amazon EBS
? 我的数据库在
Amazon EBS
吗?
How do I know the storage price for the information stored inside my mysql database? 我如何知道存储在mysql数据库中的信息的存储价格?
/etc/mysql/my.cnf
file, then find datadir
path inside the file. /etc/mysql/my.cnf
文件,然后在文件内部找到datadir
路径。 You can read the file using cat
command. cat
命令读取文件。 The result will be like this 结果将是这样
$ cat /etc/mysql/my.cnf
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
[mysqld]
#
# * Basic Settings
#
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
language = /usr/share/mysql/english
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.