標題: 確認MySQL Using Connector/Python連線成功 [打印本頁] 作者: heavenweaver 時間: 2014-3-6 01:17 標題: 確認MySQL Using Connector/Python連線成功
有關 Connecting to MySQL 5.6 Using Connector/Python可以參考MySQL Connector/Python Developer Guide,在Chapter 5 Connector/Python Coding Examples有:
5.1 Connecting to MySQL Using Connector/Python
5.2 Creating Tables Using Connector/Python
5.3 Inserting Data Using Connector/Python
5.4 Querying Data Using Connector/Python
就5.1 Connecting to MySQL Using Connector/Python部份,說明文件雖有提供範例,但我還是依照自己的需要作些修改,或可供後續的人參考,連線測試範例程式如下: