mysqldump拒绝访问(mysql备份不了数据)

本文目录
mysql备份不了数据
要看不能启动的具体原因,如果是程序部分异常,那么数据是好的,可以打包备份。相反,如果是数据出了问题导致无法启动,备份了也不是完整的。
MYSQL的所有数据库的数据是以文件形式保存在文件夹里面的,例如c:\mysql\data文件夹,直接打包此文件夹下的所有文件就可以达到备份的目的。
mysql5.5如何导出sql文件
进入MySQL目录下的bin文件夹
mysqldump
-u
用户名
-p
数据库名
》
导出的文件名
例如:
C:\Program
Files\MySQL\MySQL
Server
5.5\bin》mysqldump
-u
root
-p
Test
》
test.sql
Enter
password:
********
C:\Program
Files\MySQL\MySQL
Server
5.5\bin》dir
*.sql
驱动器
C
中的卷没有标签。
卷的序列号是
406A-C32E
C:\Program
Files\MySQL\MySQL
Server
5.5\bin
的目录
2013-01-29
16:34
39,574
test.sql
1
个文件
39,574
字节
0
个目录
5,498,294,272
可用字节
导入
C:\Program
Files\MySQL\MySQL
Server
5.5\bin》mysql
-u
root
-p
Enter
password:
********
Welcome
to
the
MySQL
monitor.
Commands
end
with
;
or
\g.
Your
MySQL
connection
id
is
17
Server
version:
5.5.29
MySQL
Community
Server
(GPL)
Copyright
(c)
2000,
2012,
Oracle
and/or
its
affiliates.
All
rights
reserved.
Oracle
is
a
registered
trademark
of
Oracle
Corporation
and/or
its
affiliates.
Other
names
may
be
trademarks
of
their
respective
owners.
Type
’help;’
or
’\h’
for
help.
Type
’\c’
to
clear
the
current
input
statement.
mysql》
create
database
test2;
Query
OK,
1
row
affected
(0.04
sec)
mysql》
use
test2
Database
changed
mysql》
source
test.sql
......
在cmd上执行mysqldump命令提示“拒绝访问”什么原因
原因是命令有问题,建议尝试C:\Program Files\MySQL\MySQL Server 5.1\bin》mysqldump -uroot -p123456 test命令。 cmd命令提示符是在操作系统中,提示进行命令输入的一种工作提示符。在不同的操作系统环境下,命令提示符各不相同。

更多文章:
在from子句中可以出现(如何在from 子句中嵌套查询下面的语句在access中出错!)
2026年10月11日 05:20
countif函数统计个数怎么用(countif函数怎么用 详解Excel中countif函数的使用方法)
2026年10月11日 03:30
正则匹配数字之前的字符(正则表达式如何匹配前面是数字、中间是“/”、后面也是数字,就像2/3专业的模式)
2026年10月11日 03:00
orlnsertbootmediinselected(我电脑开机显示这个是什么意思or insert boot media in select)
2026年10月10日 23:00
display的用法(display是什么意思 详解display的含义和用法)
2026年10月10日 22:00
html全部居中代码(怎么让网页居中显示,html如何让网页居中)
2026年10月10日 21:10




