ray1980
V2EX  ›  问与答

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

  •  
  •   ray1980 · Jul 22, 2013 · 3208 views
    This topic created in 4859 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
    shiny
    Jul 22, 2013❤️1
    1
    你的密码是不是包含了特殊字符?
    ray1980
    ray1980
    OP
    Jul 22, 2013
    2
    确实有特殊字符
    shiny
    shiny
    Jul 22, 2013❤️1
    3
    试试密码两端加上单引号?
    ray1980
    ray1980
    OP
    Jul 22, 2013
    4
    @shiny 感谢,总算正常了,谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2110 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 14:48 · PVG 22:48 · LAX 06:48 · JFK 09:48
    ♥ Do have faith in what you're doing.