zoukankan      html  css  js  c++  java
  • ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

    今天命令行安装mysql后运行

     mysql -u root -p

    遇到这个错误:

    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

    主要是因为我安装mysql后,mysql登陆会默认密码为空,意思是出现

    Enter password: 

    时直接回车就可以了,默认密码为空。错误导致呢,就是我以为是输入电脑安装软件密码!!!

  • 相关阅读:
    [CF1198D] Rectangle Painting 1
    [CF696B] Puzzles
    [CF540D] Bad Luck Island
    [P1654] OSU!
    [P6154] 游走
    [CF1265E] Beautiful Mirrors
    [CF920F] SUM and REPLACE
    [CF453B] Little Pony and Harmony Chest
    [CF808D] Array Division
    [CF1155D] Beautiful Array
  • 原文地址:https://www.cnblogs.com/sensen1400/p/8082907.html
Copyright © 2011-2022 走看看