-
>>> import amysql; >>> c=amysql.Con(); >>> c.connect(
'localhost', # server host
3306, # server port
'xweb', # username
'xweb123', # password
'xweb') # database
);
>>> c.query("select * from sys_usr")
>>> c.query("call sys_usr_list()")
>>> c.rows >>> c.fields
>>> c.sock