我试图在宏碁Aspire 3笔记本电脑上安装Ubuntu,但我的HDD (WDC WD10SPZX-21Z10T0)直到暂停操作系统和醒来才被识别。这是挂起前的dmesg | grep ata1输出:
[ 0.604968] ata1: SATA max UDMA/133 abar m2048@0x4fb13000 port 0x4fb13100 irq 125
[ 2.818041] ata1: SATA link down (SStatus 1 SControl 300)
在此之后
[ 123.660687] ata1: SATA link up 6.0 Gbps (SSta
# -*- coding: utf-8 -*-
import MySQLdb
import sitedb
for i in range(5):
print i
cred = sitedb.loadmysqlcredential()
db = MySQLdb.connect(host = cred["host"], user = cred["user"], passwd = cred["passwd"], db = "vg_site_db", charset = 'utf8')
db