V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
MySQL 5.5 Community Server
MySQL 5.6 Community Server
Percona Configuration Wizard
XtraBackup 搭建主从复制
Great Sites on MySQL
Percona
MySQL Performance Blog
Severalnines
推荐管理工具
Sequel Pro
phpMyAdmin
推荐书目
MySQL Cookbook
MySQL 相关项目
MariaDB
Drizzle
参考文档
http://mysql-python.sourceforge.net/MySQLdb.html
2232588429
V2EX  ›  MySQL

新手请教一个导入 SQL 报错问题

  •  
  •   2232588429 · 2014-08-20 20:08:11 +08:00 · 2364 次点击
    这是一个创建于 3551 天前的主题,其中的信息可能已经有所发展或是发生改变。
    输入命令
    mysql -uUSERNAME -pPASSWD radius < admin.sql
    提示
    Warning: Using a password on the command line interface can be insecure.
    ERROR 1396 (HY000) at line 14: Operation CREATE USER failed for 'radius'@'localhost'
    请问原因?谢谢!
    3 条回复    2014-08-20 20:18:14 +08:00
    sandtears
        1
    sandtears  
       2014-08-20 20:13:06 +08:00 via Android
    你都不看报错吗?
    2232588429
        2
    2232588429  
    OP
       2014-08-20 20:14:44 +08:00
    @sandtears 不好意思,看了但是不太理解,这是说radius权限不够的意思吗?
    sandtears
        3
    sandtears  
       2014-08-20 20:18:14 +08:00
    @2232588429 不,是 mysql 中已经已经存在你要添加的那个用户了,在你 sql 文件 14 行前面加一个 drop user xxxxx;
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1648 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 16:55 · PVG 00:55 · LAX 09:55 · JFK 12:55
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.