all ep3 editor dont connect to DB
#1

hello guys

 

any one know why all editor after compile it dont connect to db 

 

2

 

i creat config.ini local.ini  config.txt local.txt

 

 

but dont connect 

2
2
#2
maybe try with phpmyadmin another type of authentication (different mysql versions).

#3
Because the source code on those tools is messed up and not calling on the config file correctly.

#4
Because the config.ini and Config.bin file is no longer used, if you would actually read the source instead of just compile and done then you would have known that.

#5
The config is read, but the Mysql connection string is missing, you gotta hardcode it into the tool or rewrite the readconfig function to get this information as well.

#6

you need to edit your DBConfig.cpp file to connect

#include "StdAfx.h"
#include "DBConfig.h"

#define DEF_APP_DB "DB_ACCESS"
#define DEF_APP_LOCAL "LOCAL"
#define DEF_APP_PREFIX "DB_PREFIX"
#define DEF_APP_VERSION "VERSION"
#define DEF_APP_LANG "LANGUAGE"
#define DEF_APP_DB_FIELD "FIELD"
#define DEF_KEY_COUNT "Count"
#define DEF_KEY_DEFAULT "Default"

#define DEF_DB_IP "192.168.1.xx"
#define DEF_DB_ACCOUNT "steves"
#define DEF_DB_PASSWD "test"
#define DEF_DB_TABLE "new_data_ep4"

DBConfig:Big GrinBConfig()
: m_pStrLocal(NULL)

#7

ah i fixed it and editor connect to db

 

DBConfig.cpp

 

need to add database and ip password

 

2

 

2

#8

2

2

#9


 

2
2
 

 

ugly as hell, no more to say ^^

#10
But it works so who cares



Forum Jump:


Users browsing this thread: 1 Guest(s)