Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 413752 Details for
Bug 562272
mysql_init leads to segment fault
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
mysql test program
mysql_test.cpp (text/x-c++src), 654 bytes, created by
Wallance
on 2015-10-05 04:00:16 UTC
(
hide
)
Description:
mysql test program
Filename:
MIME Type:
Creator:
Wallance
Created:
2015-10-05 04:00:16 UTC
Size:
654 bytes
patch
obsolete
>#include <mysql/mysql.h> >#include <stdio.h> > >int main() >{ > MYSQL *mysql_conn; > MYSQL_RES *mysql_res; > MYSQL_ROW mysql_row; > > mysql_init(mysql_conn); > if (!mysql_conn) > printf("mysql_init error!\n"); > mysql_conn = mysql_real_connect(mysql_conn, NULL, "root", "h8kh3eg", "mysql", 0, NULL, 0); > if (!mysql_conn) > printf("mysql_real_connect error!\n"); > mysql_query(mysql_conn, "SELECT * FORM db"); > mysql_res = mysql_use_result(mysql_conn); > while (mysql_row = mysql_fetch_row(mysql_res)) { > printf("%s\n", *mysql_row); > } > mysql_free_result(mysql_res); > mysql_close(mysql_conn); > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 562272
: 413752 |
413754
|
413758