04 2014 档案
摘要:1.Insert Set语句mysql> create table wison_test1(id int,name varchar(10));Query OK, 0 rows affected (0.10 sec)mysql> insert into wison_test1 set id=1,nam...
阅读全文
摘要:Mysql常用命令:--在Mysql中,语句的结尾要么使用;要么使用\g或者\G作为结束符。进入Mysql (---其中Your MySQL connection id is 5表示到当前为止连接到Mysql数据库的次数,Server version: 5.5.37-log Source dist...
阅读全文
摘要:之前有使用yum安装Mysql,执行过程比较简单。今天尝试使用源码编译的方式来安装Mysql。编译器使用cmake。选择的Mysql版本为:mysql-5.5.37,cmake的版本是cmake-2.8.10.2下载地址是:http://mysql.mirror.kangaroot.net/Down...
阅读全文
摘要:1. ENABLE OUTBOUND CONNECTIONS ON THE FIRST SERVER.1.1. Create the SQL service master key.On the master database, create the SQL service master key. T...
阅读全文
摘要:背景:今天检查一个服务器上实例中镜像数据库的状态,发现主库这边所有被镜像的数据库的状态均为:Principal/Disconnected,而从库那边除了镜像数据库DB_A 之外,其他镜像数据库的状态为Mirror/Recovering/Pending.处理方法:第一步:首先检查两边数据库服务器是否可...
阅读全文
摘要:删除4天以前指定文件夹下TRN文件.forfiles /p D:\TempBackup /m *.trn -d -4 /c "cmd /c del /f @path"2:使用robocopy拷贝特定文件到某个目录,并记录对应拷贝日志。robocopy "d:\tempbackup" "d:\back...
阅读全文
摘要:1.环境:E3DDBA11:172.16.13.111 --SlaveE3DDBA12:172.16.13.112 --MasterMysql版本均为mysql Ver 14.14 Distrib 5.1.61, for redhat-linux-gnu (x86_64) using readline 5.1[wh42@e3ddba11 etc]$ uname -aLinux e3ddba11 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux[wh42@e3dd...
阅读全文
摘要:环境:[wh42@e3ddba14 ABS_CORP]$ cat /etc/redhat-releaseCentOS release 6.3 (Final)[wh42@e3ddba14 ABS_CORP]$ uname -aLinux e3ddba14 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux--安装Mysql:首先准备好mysql group和user[wh42@e3ddba12 ~]$ sudo groupadd mysqlgroupadd: cannot
阅读全文