MySQL
yongfeicao
这个作者很懒,什么都没留下…
展开
-
MySQL中 BIGINT UNSIGNED value is out of range
MYSQL中当两个字段相减时,如果其中一个或两个字段的类型的unsigned无签名类型,如果想减的值小于0则会报错(BIGINT UNSIGNED value is out of range)处理办法:例:select a - b from table解决方案:select if(a >= b, a - b, - (b - a)) from tbl...原创 2020-09-18 21:50:07 · 1684 阅读 · 0 评论 -
MyISAM和InnoDB
原创 2020-04-29 10:52:23 · 113 阅读 · 0 评论 -
MySQL逻辑架构
原创 2020-04-28 18:42:41 · 132 阅读 · 0 评论 -
linux远程连接mysql
1、先 ping 一下数据库服务器的ip 地址确认网络畅通。2、关闭数据库服务的防火墙 service iptables stop3、先执行如下命令给root用户所有权限以及远程连接的权限,并设置密码为111111: grant all privileges on *.* to root@'%' identified by '111111';确认Mysql...原创 2020-04-28 18:38:02 · 311 阅读 · 0 评论 -
MySQL的字符集问题
尝试插入输入:原因是字符集问题1 查看字符集show variables like 'character%';show variables like '%char%';看看出现的结果:默认的服务器用了latin1,所以会乱码。2 修改my-huge.cnf在/usr/share/mysql/ 中找到my-huge.cnf的配置文件,拷贝其中的my-huge...原创 2020-04-28 18:32:26 · 161 阅读 · 0 评论 -
linux安装MySQL
[root@hadoop100 ~]# cd /opt[root@hadoop100 opt]# ll总用量 1588-rw-r--r--. 1 root afei1 71168 4月 24 21:24 redis-3.2.0.gemdrwxrwxr-x. 6 root root 4096 10月 26 2016 redis-3.2.5-rw-r--r--. 1 root a...原创 2020-04-28 18:24:58 · 159 阅读 · 0 评论