摘要:
#1251 -- (Client does not support authentication protocol requested by server; consider upgrading MySQL client )修改数据库用户密码格式1)MySQL->SET PASSWORD FOR 'some_user'@'some_host'=OLD_PASSWORD('new_password'); MySQL->FLUSH PRIVILEGES;2)MySQL->UPDATE MySQL.user SET Password= 阅读全文
摘要:
terminate called after throwing an instance of 'std::logic_error'what(): basic_string::_S_construct NULL not valid 已放弃 原因在于没搞清, char *型的变量和指向 c 风格的字符串... 阅读全文
摘要:
今天遇到一个Mysql的问题:执行update时报错:MySQL server has gone away 由于是Linux后台服务程序,需要7*24运行,但程序在初始化时进行了DB的open操作之后,就进入了for(;;),遇到某个异常导致数据库操作句柄断开,却又没有相应的出错处理,导致程序一直报... 阅读全文