Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UserName = ""
- PassWard = ""
- DataBase = ""
- def LoginDB(self):
- self.UserName = input("Username: ")
- os.system("cls")
- self.PassWard = getpass.getpass("Passward")
- os.system("cls")
- self.DataBase = input("DataBase:")
- self.ConectDB()
- def ConectDB(self):
- os.system("cls")
- conexao = mysql.connector.connect(user = self.Username, password = self.Passward, host = "127.0.0.1", database = self.DataBase )
- os.system("pause")
Add Comment
Please, Sign In to add comment