波神

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

随笔分类 -  MySql

MySql的一些简单使用
mysql主从复制(收藏)
摘要:http://www.cnblogs.com/gl-developer/p/6170423.html 阅读全文

posted @ 2018-12-26 15:05 波神 阅读(162) 评论(0) 推荐(0) 编辑

mysql only_full_group_by报错的问题(转)
摘要:原文:https://www.cnblogs.com/jim2016/p/6322703.html 在mysql 工具 搜索或者插入数据时报下面错误: ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause 阅读全文

posted @ 2018-09-18 15:21 波神 阅读(553) 评论(0) 推荐(0) 编辑

mysql CONCAT用法
摘要:1、全表查询 由于上面时间是按year,month,day三个数值字段来存时间的,现在想通过时间段查询,可以用concat将三个字段拼接 阅读全文

posted @ 2018-05-19 16:34 波神 阅读(470) 评论(0) 推荐(0) 编辑

mysql date_sub用法
摘要:查询一天: select * from table where to_days(column_time) = to_days(now()); select * from table where date(column_time) = curdate(); 查询一周: select * from table where DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= ... 阅读全文

posted @ 2018-05-19 14:35 波神 阅读(401) 评论(0) 推荐(0) 编辑

win7安装mysql
摘要:1、下载安装包 地址:https://dev.mysql.com/downloads/mysql/ 2、将解压后的目录放到某一目录下,这里为:D:\Program Files (x86)\mysql-5.7.21-winx64 3、在D:\Program Files (x86)\mysql-5.7. 阅读全文

posted @ 2018-04-02 13:13 波神 阅读(451) 评论(0) 推荐(0) 编辑

sql join用法(转)
摘要:left join(左联接) 返回包括左表中的所有记录和右表中联结字段相等的记录 right join(右联接) 返回包括右表中的所有记录和左表中联结字段相等的记录inner join(等值连接) 只返回两个表中联结字段相等的行 举例如下: 表A记录如下:aID aNum1 a200501112 a 阅读全文

posted @ 2018-03-06 11:37 波神 阅读(195) 评论(0) 推荐(0) 编辑

mysql的事务隔离级别
摘要:原文地址:http://www.cnblogs.com/snsdzjlz320/p/5761387.html [Mysql]——通过例子理解事务的4种隔离级别 一、查看事务隔离级别 mysql> select @@global.tx_isolation,@@tx_isolation; + + + | 阅读全文

posted @ 2017-05-04 17:14 波神 阅读(364) 评论(0) 推荐(0) 编辑

mysql的.sql文件头部 /*!32312 IF NOT EXISTS*/;
摘要:注解里有很多!40101 !40014 !32312 之类的代码号其表示mysql版本号。其使用方法: 注解里!后紧跟版本号表示只有当前mysql版本高于这个版本号时才执行注解里的命令。 If you add a version number after the “!” character, the 阅读全文

posted @ 2017-02-21 14:49 波神 阅读(1233) 评论(0) 推荐(0) 编辑

linux安装mysql后root无法登录
摘要:[root@localhost mysql]# mysql -u root -pEnter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)解决方法:方法一: # 阅读全文

posted @ 2017-02-15 09:29 波神 阅读(421) 评论(0) 推荐(0) 编辑

给mysql的root用户
摘要:grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option; 阅读全文

posted @ 2016-12-06 15:04 波神 阅读(152) 评论(0) 推荐(0) 编辑

mysql基本命令(转)
摘要:连接到本机上的MYSQL。首先打开DOS窗口,然后进入目录mysql\bin,再键入命令mysql -u root -p,回车后提示你输密码.注意用户名前可以有空格也可以没有空格,但是密码前必须没有空格,否则让你重新输入密码。如果刚安装好MYSQL,超级用户root是没有密码的,故直接回车即可进入到 阅读全文

posted @ 2016-11-25 10:12 波神 阅读(233) 评论(0) 推荐(0) 编辑

Linux(Ubuntu)下MySQL的安装与配置
摘要:1)首先检查系统中是否已经安装了MySQL 在终端里面输入 sudo netstat -tap | grep mysql 若没有反映,没有显示已安装结果,则没有安装。若如下显示,则表示已经安装 2)如果没有安装,则安装MySQL. 在终端输入 sudo apt-get install mysql-s 阅读全文

posted @ 2016-09-20 17:19 波神 阅读(27714) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示