begynn fjerning av yacc o.l. for lesing av mysql-admutils-config
This commit is contained in:
parent
2063a81c94
commit
6a8a460164
|
@ -619,7 +619,7 @@ main(int argc, char *argv[])
|
|||
if ((command != c_show) && (argc < 3))
|
||||
return wrong_use(NULL);
|
||||
|
||||
read_config_file();
|
||||
/* read_config_file(); */
|
||||
|
||||
/* connect to the database server and select the mysql database */
|
||||
if (!mysql_real_connect(&mysql, db_server, db_user, db_passwd, db_name, 0, NULL, 0))
|
||||
|
|
|
@ -277,7 +277,7 @@ main(int argc, char *argv[])
|
|||
if ((command != c_show) && (argc < 3))
|
||||
return wrong_use(NULL);
|
||||
|
||||
read_config_file();
|
||||
/* read_config_file(); */
|
||||
|
||||
/* connect to the database server and select the mysql database */
|
||||
if (!mysql_real_connect(&mysql, db_server, db_user, db_passwd, db_name, 0, NULL, 0))
|
||||
|
|
4
pwfile.c
4
pwfile.c
|
@ -19,8 +19,8 @@
|
|||
|
||||
/* defaults for configurable values */
|
||||
const char* db_user = "root";
|
||||
const char* db_server = "localhost";
|
||||
const char* db_passwd = NULL;
|
||||
const char* db_server = "mysql.stud.ntnu.no";
|
||||
const char* db_passwd = MYSQLPW ;
|
||||
const char* db_name = "mysql";
|
||||
|
||||
extern int yyparse(void);
|
||||
|
|
Loading…
Reference in New Issue