YoushouldhavereceivedacopyoftheGNUGeneralPublicLicense alongwiththisprogram;ifnot,writetotheFreeSoftware
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
int main (int argc, char **argv)
{
MYSQL conn; int OK __attribute__((unused));
constchar* query4= "INSERT INTO t1 SET Value=54"; constchar* query5= "INSERT INTO t1 SET Value=55";
MY_INIT(argv[0]);
if (argc != 2 || !strcmp(argv[1], "--help"))
{
fprintf(stderr, "This program is a part of the MySQL test suite. " "It is not intended to be executed directly by a user.\n"); return -1;
}
mysql_init(&conn); if (!mysql_real_connect(
&conn, "127.0.0.1", "fed", "def", "federated",
atoi(argv[1]),
NULL,
CLIENT_FOUND_ROWS))
{
fprintf(stderr, "Failed to connect to database: Error: %s\n",
mysql_error(&conn)); return1;
} else {
printf("%s\n", mysql_error(&conn));
}
OK = mysql_real_query (&conn, query4, (uint) strlen(query4));
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.