1、下载镜像 docker pull mysql 5.7.29 2. 启动 docker run --restart=always --privileged=true -d -v /root/mysql/data/:/var/lib/mysql -v /root/mysql/conf:/etc/my ...
分类:
数据库 时间:
2020-04-24 01:29:16
阅读次数:
95
最近在Github上整了个Repository来保存打过的比赛的代码,包括Codeforces,Google Code Jam和Google Kick Start等,之后应该也会搞一点刷题的代码。 之后这个博客上可能会只写解题思路,代码就放到这个repo里。 虽然已经退役了,但是还是会经常更新。 " ...
分类:
其他好文 时间:
2020-04-23 12:42:04
阅读次数:
107
1.官网下载.zip格式的MySQL Server的压缩包,选择x86或x64版,并解压。 2. 创建 data文件夹 及 my.ini文件,并编辑 [mysqld] # 设置为自己MYSQL的安装目录 basedir=D:\program-files\mysql-8.0.19-winx64 # 设 ...
分类:
数据库 时间:
2020-04-22 16:08:17
阅读次数:
96
总结:1、查询时用 not in 效率极其低下,因此结合left join改为in查询,效率很快 原语句: select * from my_test_table where id not in (select b.id as id from ( SELECT MAX(a.`ModifyAt`)Mo ...
分类:
数据库 时间:
2020-04-22 13:26:47
阅读次数:
77
一、获取Mysql YUM源 ① 打开网址:https://dev.mysql.com/downloads/repo/yum/,选择对应linux版本(这里为CentOS7,选择Linux7) ② 点击“No thanks, just start my download.”,进行下载 ③ 将下载地址 ...
分类:
数据库 时间:
2020-04-22 09:51:32
阅读次数:
85
1 # The guess API is already defined for you. 2 # @param num, your guess 3 # @return -1 if my number is lower, 1 if my number is higher, otherwise ret ...
分类:
其他好文 时间:
2020-04-22 00:08:18
阅读次数:
75
说点题外的: MySQL当中的 “My” 是什么意思? MySQL的发明者名叫 Michael “Monty” Widenius,MySQL是以他女儿的名字 “My” 来命名的。对这位发明者来说,MySQL数据库就仿佛是他可爱的女儿。 她的二女儿叫什么呢?二女儿叫Maria,MariaDB名字的来源 ...
分类:
数据库 时间:
2020-04-21 18:37:45
阅读次数:
206
MySQL主从同步配置 1.编辑MySQL主上的/etc/my.cnf log-bin=imooc_mysql server-id=1 log-bin :MySQL的bin-log的名字 server-id : MySQL实例中全局唯一,并且大于0。 2.编辑MySQL从上的/etc/my.cnf ...
分类:
数据库 时间:
2020-04-21 13:16:46
阅读次数:
71
So this is what I need to do before my traineeship ends. connect android app with the database from a website store some information into the database ...
分类:
移动开发 时间:
2020-04-21 12:44:23
阅读次数:
105
系统:centos7 mysql版本:5.7 修改 vi /etc/my.cnf 添加 [mysqld] skip-grant-tables 重启mysql service mysqld restart 进入mysql mysql -uroot 进入后修改密码为abc.123 update mysq ...
分类:
数据库 时间:
2020-04-20 16:12:48
阅读次数:
78