数据库
Ian_安安
不要去追一匹马,用追马的时间种草,待到春暖花开时,就会有一批骏马任你挑选;不要去刻意巴结一个人,用暂时没有朋友的时间,去提升自己的能力,待到时机成熟时,就会有一批的朋友与你同行;用人情做出来的朋友只是暂时的,用人格吸引来的朋友才是长久的。所以,丰富自己比取悦他人更有力量。
展开
-
浅谈MySQL:延迟的主从复制(Delayed Replication)
myslq使用 MASTER_DELAY 可以设置mysql主从复制延迟语法:CHANGE MASTER TO MASTER_DELAY = 30; #备注:设置备节点延迟的时间,单位秒。具体使用:root@localhost:mysql>stop slave;Query OK, 0 rows affected (0.21 sec)root@localhost:mysql&...原创 2018-08-01 12:01:26 · 947 阅读 · 0 评论 -
mysql8学习心得
一:安装mysqlrpm安装wget 'https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.3-0.1.rc.el7.x86_64.rpm-bundle.tar'tar xvf mysql-8.0.3-0.1.rc.el7.x86_64.rpm-bundle.tarsudo rpm -i mysql-community-{se...原创 2018-10-26 17:15:11 · 349 阅读 · 0 评论 -
mysql8学习手册第三部分查询和子查询
Selecting data into a file and tableTo save the output into a file, you need the FILE privilege. FILE is a global privilege, which means you cannot restrict it for a particular database. However, y...原创 2018-10-31 14:21:19 · 391 阅读 · 0 评论 -
mysql8学习手册第二部分用户管理
create userscreate user if not exists ‘anan’@‘localhost’ identified with mysql_native_passwd by ‘Zja1540774503_’ with max_queries_per_hour 500 max_updates_per_hour 100;Granting and revoking access t...原创 2018-10-30 09:26:38 · 218 阅读 · 0 评论 -
mysql 自定义函数的使用
查看函数功能是否开启:show variables like '%func%'//mysql8 默认为关闭打开函数功能:SET GLOBAL log_bin_trust_function_creators=1;关闭函数功能:SET GLOBAL log_bin_trust_function_creators=1;函数的创建:语法:create function 函数名([参数列表]) r...原创 2018-11-01 09:33:36 · 1881 阅读 · 0 评论 -
mysql8学习手册第三章mysql高级使用
',‘$.address.line2’,‘兴江街道’);update emp_details setdetails=JSON_INSERT(details,’.phone′,′154077′,′.phone','154077','.phone′,′154077′,′.address.line2’原创 2018-11-21 10:38:32 · 392 阅读 · 1 评论 -
mysql8学习手册第四部分:mysql配置文件的使用和高级配置
第四章:Configuring MysqlUsing config fileUsing global and session variablesUsing parameters with startup scriptConfiguring the parametersChanging the data directorymysql有两种参数:Static(重启生效)和Dynami...原创 2018-11-21 10:39:35 · 498 阅读 · 0 评论 -
mysql8学习手册第五部分 Transactions 事务以及Binlog日志的使用
第五章:TransactionsPerforming transactionsUsing savepointsIsolation levelsLockingTransactions should also satisfy Atomicity, Consistency, Isolation, and Durability(ACID) properties.事务应该保持原子性、一致性、...原创 2018-11-21 10:41:20 · 285 阅读 · 0 评论 -
mysql8学习手册第七部分备份
第七章:BackupsTaking backups using mysqldumpTaking backups using mysqlpumpTaking backups using mydumperTaking backups using flat filesTaking backups using XtraBackupLocking instances for backupBi...原创 2018-11-21 10:42:40 · 468 阅读 · 0 评论