易截截图软件、单文件、免安装、纯绿色、仅160KB

mysql主从数据库操作

主:
show master status;
+-----------------+------------+-------------------+-----------------------+
| File                |
Position     | Binlog_Do_DB   | Binlog_Ignore_DB |
+-----------------+------------+-------------------+-----------------------+
|    log.000003
|           98  | repl                 |
mysql                    |
+-----------------+------------+-------------------+-----------------------+
从:
slave stop;
change master to
master_host='192.168.1.222',master_user='repl',master_password='123456',
master_log_file='log.000003' ,master_log_pos=98;
slave start;
show slave
status\G;
其它基本配置google一片


相关文档:

一个复杂的mysql查询语句(case,when,then,left join )

select `a`.`id` AS `id`,`a`.`UserName` AS `UserName`,
(case when (`a`.`sRegDate` = _utf8'1990-01-01 00:00:00.0') then _utf8'' else cast(date_format(`a`.`sRegDate`,_utf8'%Y-%m-%d %H:%i:%S') as char charset utf8) end) AS `sRegDate`,(case when (`a`.`feeendtime` = _utf8'1990-01-01 00:00:00.0') then _ut ......

MYSQL和ORACLE的一些操作区别

MYSQL和ORACLE的一些操作区别
有很多应用项目, 刚起步的时候用MYSQL数据库基本上能实现各种功能需求,随着应用用户的增多,数据量的增加,MYSQL渐渐地出现不堪重负的情况:连接很慢甚至宕机,于是就有把数据从MYSQL迁到ORACLE的需求,应用程序也要相应做一些修改。本人总结出以下几点注意事项,希望对大家有所帮助。
1.自 ......

MySQL的开源热备份工具Xtrabackup1.2

InnoDB,普通的mysql
dump备份下来,mysql恢复起来慢得要
死.
于是网上找了好久,才找到这么个工具
.
http://launchpad.net/percona-xtrabackup/release-1.2/release-1.2/+download/xtrabackup-1.2.tar.gz
先测试下再说.
可以这么备份:
MyISAM
表:
/usr/local/mysql/bin/mysqldump -uyejr -pyejr
--default-char ......

在mysql数据库中修改root的密码

下面我给大家介绍几种在mysql数据库中修改root密码的方法
方法一:
原始密码是 ckh
mysql -uroot -pckh
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 7 to server version: 5.0.22-community-nt
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
my ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号