Home >Database >Mysql Tutorial >在Ubuntu下的MySQL数据库如何更改存储位置_MySQL

在Ubuntu下的MySQL数据库如何更改存储位置_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-01 13:54:48971browse

Ubuntu

  MySQL数据库的文件结构是怎么样的呢,对于这样子创建的数据库命令:

  CREATE DATABASE mysqldb

  在默认的数据库存储位置下就会有个文件夹mysqldb。要操作数据库首先得停止数据库进程:

  $sudo /etc/init.d/mysql stop

  本文以转移到/home/mysql这个位置为例,下面命令将原有数据库转移到新位置:

  $sudo cp

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn