summaryrefslogtreecommitdiffstats
path: root/web/attachments/267864-patch.check_mysql.c
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/267864-patch.check_mysql.c')
-rw-r--r--web/attachments/267864-patch.check_mysql.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/web/attachments/267864-patch.check_mysql.c b/web/attachments/267864-patch.check_mysql.c
new file mode 100644
index 0000000..59ef214
--- /dev/null
+++ b/web/attachments/267864-patch.check_mysql.c
@@ -0,0 +1,29 @@
154a55
2> char *defaults_file = NULL;
389a91,94
4> if (defaults_file != NULL) {
5> mysql_options(&mysql,MYSQL_READ_DEFAULT_FILE,defaults_file);
6> }
7>
8249a255
9> {"defaults-file", required_argument, 0, 'f'},
10263c269
11< c = getopt_long (argc, argv, "hvVSP:p:u:d:H:c:w:", longopts, &option);
12---
13> c = getopt_long (argc, argv, "hvVSP:p:u:d:f:H:c:w:", longopts, &option);
14288a295,297
15> case 'f':
16> defaults_file = optarg;
17> break;
18332a342,343
19> else if (defaults_file == NULL)
20> defaults_file = argv[c++];
21355a367
22>
23387a400,401
24> printf (" %s\n", "-f, --defaults-file=FILE");
25> printf (" %s\n", _("Read mysql options from FILE"));
26405c419
27< printf ("%s [-d database] [-H host] [-P port] [-u user] [-p password] [-S]\n",progname);
28---
29> printf ("%s [-d database] [-H host] [-P port] [-u user] [-p password] [-f defaultsfile] [-S]\n",progname);