0
conn = MySQLdb.connect(host= "windows azure url goes here",user="uname",passwd="pwd",db="db")
它給我錯誤,無法連接到SQL Server。有什麼建議嗎?如何使用python從localhost連接到windows azure mysql服務器?
conn = MySQLdb.connect(host= "windows azure url goes here",user="uname",passwd="pwd",db="db")
它給我錯誤,無法連接到SQL Server。有什麼建議嗎?如何使用python從localhost連接到windows azure mysql服務器?
如果「windows azure mysql server」意味着你正在Windows Azure上運行一個mysql實例,那麼這與其他任何mysql服務器都是一樣的。
你需要做三件事情:
GRANT ALL ON SOMEDATABASE.* TO [email protected]% IDENTIFIED BY 'SOMEPASSWORD'