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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:58:57
Original
1005 people have browsed it

Ubuntu

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

  CREATE DATABASE mysqldb


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


  $sudo /etc/init.d/mysql stop


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


  $sudo cp

Related labels:
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template