ADO通过ODBC直接连接: S:=Format('Provider=MSDASQL.1;Password=%s;Persist Security Info=True;User ID=%s;Data Source=%s',[PassWord,UserName,ODBCName]);ADO不通过ODBC,直接访问数据库 S:=Format('Provider=MSDASQL.1;Persist Security Info=False;Extended Properti' + 'es="DATABASE=%s;DRIVER={MySQL ODBC 3.51 Driver};OPTION=3;PO' + 'RT=0;SERVER=%s;UID=%s;password=%s"',[DataBaseName,DataBaseIP,UserName,PassWord]);