![]() |
|
all ep3 editor dont connect to DB - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193) +---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157) +----- Forum: Ep3 Support (https://lckb.dev/forum/forumdisplay.php?fid=150) +------ Forum: Solved topics (https://lckb.dev/forum/forumdisplay.php?fid=151) +------ Thread: all ep3 editor dont connect to DB (/showthread.php?tid=1552) Pages:
1
2
|
- SibaN - 01-26-2015 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 - jeremie - 01-26-2015 maybe try with phpmyadmin another type of authentication (different mysql versions). - Sickness - 01-26-2015 Because the source code on those tools is messed up and not calling on the config file correctly. - Wizatek - 01-26-2015 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. - Tarissuis - 01-27-2015 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. - CDWriter - 01-27-2015 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: BConfig(): m_pStrLocal(NULL) - SibaN - 01-27-2015 ah i fixed it and editor connect to db DBConfig.cpp need to add database and ip password 2 2 - SibaN - 01-27-2015 2 2 - DamonA - 01-27-2015 2 2 ugly as hell, no more to say ^^ - Walletman987 - 01-27-2015 But it works so who cares |