mysqldump -uroot -p test 可以連接上
mysqldump -uroot -p test_db > D:\backup 拒絕訪問
backup 檔案夾屬性已經調整為 everyone完全控制了
uj5u.com熱心網友回復:
這不是拒絕訪問吧,是你的引數沒有寫全,uj5u.com熱心網友回復:
你在服務里看看你的mysql服務的啟動賬號是什么?
uj5u.com熱心網友回復:
這個是我最近用的命令,你可以參考一下:
C:\Users\Administrator>cd C:\Program Files\MySQL\MySQL Server 5.6\bin
C:\Program Files\MySQL\MySQL Server 5.6\bin>mysqldump -uroot -pwww -P3306 world > c:\tb2.txt
Warning: Using a password on the command line interface can be insecure.
C:\Program Files\MySQL\MySQL Server 5.6\bin>cd c:\
c:\>more tb2.txt
-- MySQL dump 10.13 Distrib 5.6.25, for Win64 (x86_64)
--
-- Host: localhost Database: world
-- ------------------------------------------------------
-- Server version 5.6.25-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0
*/;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `author`
--
DROP TABLE IF EXISTS `author`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
-- More (0%) --
--匯出world資料庫的tb2表的結構和資料
c:\>mysqldump -uroot -pwin@channel -P3306 world tb2 > c:\tb2.txt
Warning: Using a password on the command line interface can be insecure.
c:\>
uj5u.com熱心網友回復:
樓主你好首先嘗試
c:> mysql -uroot -p123456
如果可以正常進入
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 5.1.58-community MySQL Community Server (GPL)
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
可以正常進入!
嘗試資料庫連接
mysqldump -uroot -p123456 test
如果這個也可以 大部分的問題 可能是你對你要輸出檔案夾沒有寫的權限
uj5u.com熱心網友回復:
跪求樓主結貼給分uj5u.com熱心網友回復:
我的做法是換一個目錄。uj5u.com熱心網友回復:
你還應該指定檔案名。uj5u.com熱心網友回復:
匯出要指定檔案名的,你指定的是個目錄轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/59398.html
標籤:MySQL
