从mysql workbench导入到phpmyadmin时出错

时间:2013-09-08 07:49:35

标签: mysql database phpmyadmin mysql-workbench

我正在使用mysql workbench导出我的数据库转储文件,将其上传到我的phpmyadmin数据库,但是我得到了empaty数据库,其次我显示了这个错误:

1044 - 用户'hesham'@'mocha6004.mochahost.com'拒绝访问数据库'sams'

我的数据库帐户已全部提前

我的数据库文件代码:

CREATE DATABASE  IF NOT EXISTS `sams` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `sams`;
-- MySQL dump 10.13  Distrib 5.6.11, for Win32 (x86)
--
-- Host: 127.0.0.1    Database: sams
-- ------------------------------------------------------
-- Server version   5.6.13-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 `class`
--

DROP TABLE IF EXISTS `class`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `class` (
  `CLASS_ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `CLASS_NAME` varchar(45) NOT NULL,
  `GRAdE_ID` varchar(45) NOT NULL,
  `STAGE_ID` varchar(45) NOT NULL,
  `school_id` int(10) unsigned NOT NULL,
  PRIMARY KEY (`CLASS_ID`)
    ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
    /*!40101 SET character_set_client = @saved_cs_client */;

    --
    -- Dumping data for table `class`
    --

    LOCK TABLES `class` WRITE;
    /*!40000 ALTER TABLE `class` DISABLE KEYS */;
    INSERT INTO `class` (`CLASS_ID`, `CLASS_NAME`, `GRAdE_ID`, `STAGE_ID`,     `school_id`) VALUES     (1,'1-10','1','1',1),(3,'2-20','1','1',1);
    /*!40000 ALTER TABLE `class` ENABLE KEYS */;
    UNLOCK TABLES;

0 个答案:

没有答案