我有一个MySQL数据库,其中包含一个包含服务(Google,reddit等)和密码的表。我想查询数据库(SELECT * FROM pwds)并将它们添加到Python字典中,以便字典的键是服务,密码是值。例如,密码['google'] ='G4sR0 * KMVC'。这是我到目前为止有: Passwords = {} #Dictionary to store service and passw
我收到以下错误 MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts. ---> System.Net.Sockets.SocketException (0x80004005): A connection attempt failed bec