随笔分类 -  Mysql

摘要:参考文档:http://dev.mysql.com/downloads/file/?id=463397 下载地址http://dev.mysql.com/doc/refman/5.7/en/ 文档地址准备rpm包yum install -y gcc gcc-c++ gcc-g77 autoconf 阅读全文
posted @ 2017-11-10 10:46 ClarkYu 阅读(292) 评论(0) 推荐(0)
摘要:先给出实验环境/etc/my.cnf文件内容修改内容为:添加了[mysqld_multi]标签和多出来两个数据库的标签[mysqld3307]和[mysqld3308]配置完成后启动方法,举一例:mysqld_multi -defaults-file=/etc/my.cnf start 3307连接 阅读全文
posted @ 2017-11-10 10:46 ClarkYu 阅读(1028) 评论(0) 推荐(0)
摘要:MYSQL 源码安装:修改参数文件:vi /etc/security/limits.confmysql soft nproc 2047mysql hard nproc 16384mysql soft nofile 1024mysql hard nofile 65536下载5.6.37源码解压后用cm 阅读全文
posted @ 2017-11-10 10:45 ClarkYu 阅读(444) 评论(0) 推荐(0)
摘要:[mysql@clark scripts]$ lsmysql_db_shutdown.sh mysql_db_startup.sh mysql_env.ini mysqlplus.sh[mysql@clark scripts]$ more mysql_db_shutdown.sh #/bin/sh# 阅读全文
posted @ 2017-11-10 10:44 ClarkYu 阅读(240) 评论(0) 推荐(0)
摘要:mysql修改管理员密码杀掉mysql进程kill `cat /data/mysqldata/3306/mysql.pid`禁止连接禁止验证方式启动mysqlmysqld_safe --defaults-file=/data/mysqldata/3306/my.cnf --skip-grant-ta 阅读全文
posted @ 2017-11-10 10:43 ClarkYu 阅读(674) 评论(0) 推荐(0)
摘要:今天测试导入csv格式文件,虽然简单但是如果不注意还是会出现错误,而且mysql在某些方面做的确实对新手不是很友好,记录一下:创建一个csv格式文件:[mysql@xxx1 ycrdb]$ more /tmp/loaddata.txt 1,abc,abc@qq.com1,abc,abc@qq.com 阅读全文
posted @ 2017-11-10 10:42 ClarkYu 阅读(403) 评论(0) 推荐(0)
摘要:参考三思老师书中所写,感觉挺好用,记录下来,虽然是抄袭,但是手抄还是很累的,其中用到的其他脚本,在博客中已经记录:mysql_full_backup.sh#!/bin/sh#Created by Clark 201710131716source /data/mysqldata/scripts/mys 阅读全文
posted @ 2017-11-10 10:41 ClarkYu 阅读(245) 评论(0) 推荐(0)
摘要:1 创建一个文本文档:[mysql@xxxycrdb]$ more /tmp/ldcmd1.txt 1,abc,abc@qq.com1,abc,abc@qq.com1,abc,abc@qq.com1,abc,abc@qq.com1,abc,abc@qq.com1,abc,abc@qq.com1,ab 阅读全文
posted @ 2017-11-10 10:41 ClarkYu 阅读(2793) 评论(0) 推荐(0)
摘要:下载地址:https://www.percona.com/downloads/XtraBackup/LATEST/为了方便起见本次安装使用yum源安装方式1 安装yum源:yum install http://www.percona.com/downloads/percona-release/red 阅读全文
posted @ 2017-11-10 10:40 ClarkYu 阅读(155) 评论(0) 推荐(0)
摘要:1 配置perlperl -MCPAN -e shellcpan[1]>install Time:HiRescpan[1]>install File::Tempcpan[1]>install Data::Dumpericpan[1]>install DBIcpan[1]>install Getopt 阅读全文
posted @ 2017-11-10 10:39 ClarkYu 阅读(250) 评论(0) 推荐(0)
摘要:准备工作:1 安装python 3.5,本次使用源码安装。2 安装psutil模块,使用python3.5自带的easy_install包直接运行cd /opt/python3/bin./easy_install-3.5 psuitl安装3 安装mysql_connector模块,同样使用easy_ 阅读全文
posted @ 2017-11-10 10:38 ClarkYu 阅读(1891) 评论(0) 推荐(1)