V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
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 · Aug 20, 2014 · 2902 views
    This topic created in 4281 days ago, the information mentioned may be changed or developed.
    输入命令
    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 replies    2014-08-20 20:18:14 +08:00
    sandtears
        1
    sandtears  
       Aug 20, 2014 via Android
    你都不看报错吗?
    2232588429
        2
    2232588429  
    OP
       Aug 20, 2014
    @sandtears 不好意思,看了但是不太理解,这是说radius权限不够的意思吗?
    sandtears
        3
    sandtears  
       Aug 20, 2014
    @2232588429 不,是 mysql 中已经已经存在你要添加的那个用户了,在你 sql 文件 14 行前面加一个 drop user xxxxx;
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1233 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 17:28 · PVG 01:28 · LAX 10:28 · JFK 13:28
    ♥ Do have faith in what you're doing.