Home > Database > Mysql Tutorial > mysql的数据库简单回复_MySQL

mysql的数据库简单回复_MySQL

WBOY
Release: 2016-06-01 13:44:38
Original
1086 people have browsed it

bitsCN.com

bin/mysql -uroot -hlocalhost -p db53418_teamone

1、如果是table engine是MyISAM的话.只要修改DATA目录下面的那个库名的文件夹的名字就OK了
2、如果你的table engine是innodb的话,就不能通过只更改库名的文件夹来解决了!不过也很简单,3步就可 以搞定,例如我要更改test数据库名更改成zhang,
   1)、create database zhang;
   2)、mysqldump -uroot -p'password' test > test.sql
   3)、mysql -uroot -p'password' zhang 通过以上三步就搞定了!简单吧!

作者“cabbage”

bitsCN.com
Related labels:
source:php.cn
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