OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld

問題:用python + tornado框架做了一個項目,運行主程序時,出現如下錯誤:OperationalError: (2002, 「Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)」) 解決方案: 1、查看是否安裝mysql-serve,並啓動r: service mysq
相關文章
相關標籤/搜索