begynn fjerning av yacc o.l. for lesing av mysql-admutils-config

This commit is contained in:
Aslak Raanes 2018-10-25 13:52:19 +02:00
parent 2063a81c94
commit 6a8a460164
3 changed files with 4 additions and 4 deletions

View File

@ -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))

View File

@ -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))

View File

@ -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);