ray1980
V2EX  ›  问与答

mysql加上-p密码就不能登陆是什么原因?

  •  
  •   ray1980 · Jul 22, 2013 · 2911 views
    This topic created in 4688 days ago, the information mentioned may be changed or developed.
    mysql -uroot -p,然后输入密码是可以的,
    mysql -uroot -p密码,这样就不能登陆

    Access denied for user 'root'@'localhost' (using password: YES) when trying to connect
    4 replies    1970-01-01 08:00:00 +08:00
    shiny
        1
    shiny  
    PRO
       Jul 22, 2013   ❤️ 1
    你的密码是不是包含了特殊字符?
    ray1980
        2
    ray1980  
    OP
       Jul 22, 2013
    确实有特殊字符
    shiny
        3
    shiny  
    PRO
       Jul 22, 2013   ❤️ 1
    试试密码两端加上单引号?
    ray1980
        4
    ray1980  
    OP
       Jul 22, 2013
    @shiny 感谢,总算正常了,谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2213 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 00:33 · PVG 08:33 · LAX 17:33 · JFK 20:33
    ♥ Do have faith in what you're doing.