-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue on example site in main.cpp #21
Comments
open the feather.cfg file, you will see some configurations, you should config the database items, for example: "db_ip": "127.0.0.1", you should fill the right database ip, user_name, pwd and database name. please check it |
Hi i created a mysql db before calling init in main.cpp which compiles but it still throws 'std::invalid_argument'. I appreciate your help. dbng mysql; mysql.commit(); init(cfg); cfg/feather.cfg: |
make sure your database has already run, the error shows that feather can't connet to your databse |
in main.cpp
bool ret = config_manager::from_file(cfg, "./cfg/feather.cfg");
returns false. I have to use a absolute path to the file or ../cfg/feather.cfg then it succeeds
after that the "init" function throws:
terminate called after throwing an instance of 'std::invalid_argument'
what(): init failed
Aborted (core dumped)
when calling
dao_t<dbng>::init(cfg.db_conn_num, cfg.db_ip.data(), cfg.user_name.data(), cfg.pwd.data(),
cfg.db_name.data(), cfg.timeout);
what could fix this issue?
compiler g++ 7.3.0
operating system ubuntu
The text was updated successfully, but these errors were encountered: