
数据库
Xjack2012
这个作者很懒,什么都没留下…
展开
-
mysql导入数据库报错Error Code: 2006
导入数据库的时候 SQLyog 报错了Error Code: 2006 – MySQL server has gone away搜了下,说是max_allowed_packet (MySQL的一个参数)设置的值不够大。那我改下就行了 嘿嘿In Windows:In the MySQL server installation directory,in my转载 2013-11-28 21:35:14 · 2282 阅读 · 0 评论 -
SQL语句汇集
查询表中记录条数select count(1) from [tablename]原创 2013-11-14 20:38:23 · 779 阅读 · 0 评论 -
mysql数据库错误ERROR 1130:Host '' is not allowed to connect to this mysql server
ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server解决方法:1。 改表法。可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localh转载 2014-01-02 18:31:18 · 4022 阅读 · 0 评论 -
mysql查询语句limit限制行数
mysql查询语句,通过limit来限制查询的行数。例如:select name from usertb where age > 20 limit 0, 1; //限制从第一条开始,显示1条select name from usertb where age > 20 limit 1; //同上面的一个效果select name from usertb where age原创 2014-02-06 18:34:18 · 11467 阅读 · 0 评论 -
登录数据库1045错误解决办法
ERROR 1045 (28000): Access denied for user 'root'@'TEST' (using password: NO) 登录数据库,修改密码如下:set password for 'root'@'TEST'=password('');原创 2014-02-28 15:49:43 · 1930 阅读 · 0 评论