现在位置: 首页 > 数据库 > 文章
2020年05月02日 数据库 ⁄ 共 774字 评论关闭
今天在安装编译mysql时出现了以下错误: checking for tgetent in -ltermcap… no checking for termcap functions library… configure: error: No curses/termcap library found 说明curses/termcap 库没有安装,去一个ncurses-5.6.tar.gz [root@server src]# wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz [root@server src]# tar zxvf ncurses-5.6.tar.gz [root@server src]# cd nc...
阅读全文
2020年05月02日 数据库 ⁄ 共 1326字 评论关闭
本来mysql运行得好好的,修改了一次root密码,貌似没成功,当时也没在意,mysql也没出问题。到了第二天,启动时报了这个错误“access denied for user 'root'@'localhost' using password yes”。网上解决的方法很多,试了几个都不行,下面就贴出自己实践成功后的方法, 以下内容根据“http://topic.csdn.net/u/20090515/21/2b3c9a12-d8a5-4bb1-9895-6069cef5aef8.html”整理,使得...
阅读全文
2020年05月02日 数据库 ⁄ 共 303字 评论关闭
普通用户备份mysql 报错   无lock tables权限 报Access denied for user 'dbuser'@'localhost' to database 'db' when using LOCK TABLES   主要原因是该用户无lock tables 该权限,处理办法:   1. 给该普通用户赋予lock tables 权限,建议是删除该用户,重新用mysql命令建   2. 加上--skip-lock-tables即可   mysqldump -udbuser -p dbname --skip-lock...
阅读全文
2020年05月02日 数据库 ⁄ 共 1996字 评论关闭
问题描述:   从一台linux远程连接另一台linux上的MySQL, 出现ERROR 2003 (HY000): Can't connect to MySQL server on 'xxx.xxx.xxx.85'(111)错误。   [@vvmvcs0 ~]$ mysql -hxxx.xxx.xxx.85 -uroot -p Enter password:  www.2cto.com   ERROR 2003 (HY000): Can't connect to MySQL server on 'xxx.xxx.xxx.85' (111) [mysql@vvmvcs0 ~]$ perror 111 OS error code 111: ...
阅读全文
2020年05月02日 数据库 ⁄ 共 13684字 评论关闭
问题的原因很简单,可能有的时候一下想不起来。MARK下。   报错信息如下: org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not insert: [com.wondertek.meeting.model.spokesman.Spokesman]; uncategorized SQLException for SQL [insert into Spokesman (mobile, gender, create_time, creator) values (?, ?, ?, ?)]; SQL state [HY000]; error code [1364]; Field 'i...
阅读全文
2020年05月02日 数据库 ⁄ 共 344字 评论关闭
本地或远程连接mysql:Unable to connect to any of the specified MySQL hosts的问题   解决:   1.防火墙开启,并且开启允许远程连接   2.连接字符串问题   因mysql 版本或驱动不同 连接字符串不同, <add key="ConnectionString" value="server=远程数据库IP;database=数据库名;PORT=端口; uid=用户;pwd=密码;charset=gb2312" /> <add key="ConnectionString" ...
阅读全文
2020年05月02日 数据库 ⁄ 共 300字 评论关闭
学习MYSQL过程中,拿 中的user 表来折腾一下,发现mysql中的子查询有些问题,比方说,现在user表的内容如下图:   想把它变成如下图所示:   按说应该很简单的嘛,用个子查询就应该OK了啊,结果却报错:You can't specify target table 'user' for update in FROM clause。   怎么这么简单的东西,还通不过,奇怪,赶紧百度一下,竟然在mysql不能这样用法,faint,修改一下语句,如下,就OK了,...
阅读全文
2020年05月02日 数据库 ⁄ 共 1024字 评论关闭
the security settings could not be applied to the database (error 1045 MySQL)的解决   在装时,总是到最后启动的时候出错,出错内容如下:   就是最后的Apply security setting过不去   提示:   The security settings could not be applied to the database because the connection has failed with the following error.  www.2cto.com     Error Nr. 1045   Ac...
阅读全文
2020年05月02日 数据库 ⁄ 共 573字 评论关闭
 今天在用myEclipse连接时提示:"Communications link failure,Last packet sent to the server was 0 ms ago."出错界面如下图所示:   myeclipse错误提示页面   检查了下,在本机能ping通远程服务器,但是使用telnet命令无法远程连接上远程的mysql端口。而检查了服务器重mysql的服务是已启动滴,服务器中的mysql也能正常运行,在服务器上使用telnet localhost 3306能够正确连接上。出现这个问题百思不得其...
阅读全文
2020年05月02日 数据库 ⁄ 共 451字 评论关闭
linux下启动出现Can't connect to local MySQL server through socket的问题   问题: linux下mysql启动问题! Can't connect to local MySQL server through socket   解决方案:(我的解决方案成功了!其它情况就参照一下吧!嘿嘿。。。)   Ruby代码   <span style="font-size: x-large;">首先:cp /usr/share/doc/MySQL-server-5.5.24/my-medium.cnf /etc/my.cn...
阅读全文