u012513463
zeruns
2016-03-11 16:14
采纳率: 33.3%
浏览 1.6k

求大神~ MySQL数据库导入失败

错误
SQL 查询:

-- phpMyAdmin SQL Dump
-- version 4.0.10.7

-- http://www.phpmyadmin.net

-- 涓绘-------------------------------------

-- 琛ㄧdmin', 0, '', 0, 0, 'blank', 'Y-m-d', 0, 'line', 'a:2:{s:5:"style";s:4:"dash";s:5:"items";s:2:"10";}', 10, 0, '', 0, 0, 1444481460, 0, 0),
( 488, 'html_html', 0, '', '', '', '


', 1, 'admin', 0, '', 0, 0, 'blank', '', 0, 'line', 'a:2:{s:5:"style";s:4:"dash";s:5:"items";s:1:"0";}', 10, 0, '', 0, 0, 1444481460, 0, 0 ) , ( 489, 'html_html', 0, '', '', '', '
', 1, 'admin', 0, '', 0, 0, 'blank', '', 0, 'line', 'a:2:{s:5:"style";s:4:"dash";s:5:"items";s:1:"0";}', 10, 0, '', 0, 0, 1444481459, 0, 0 ) ;

MySQL 返回:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '488, 'html_html', 0, '', '', '', '


', 1, 'admin', 0, '', 0, 0,' at line 9
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

5条回答 默认 最新

  • qq423399099
    小灸舞 2016-03-12 02:04
    已采纳

    LZ先选择好数据库名,然后SOURCE导入
    mysql> USE 数据库名;
    mysql> SOURCE d:/test.sql;

    点赞 评论
  • oyljerry
    oyljerry 2016-03-12 01:21

    先选择database 然后再倒入数据到表

    点赞 1 评论
  • qq_25093755
    白若蓝 2016-03-12 03:07

    没选择数据库,No database selected不是写着的

    点赞 评论
  • qq_30408111
    二三三 2016-03-12 09:01

    没有选中数据库,use 数据库名
    然后在进行操作

    点赞 评论
  • u012513463
    zeruns 2016-03-11 16:18

    错误
    SQL 查询:

    -- Table structure for table pre_addon_download_attachment

    DROP TABLE IF EXISTS pre_addon_download_attachment ;

    MySQL 返回:

    #1046 - No database selected

    点赞 评论

相关推荐