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

MYSQL 备忘录

MySQL client programs:
mysql
The command-line tool for interactively entering SQL statements or executing them from a file in batch mode. See Section 4.5.1, “mysql — The MySQL Command-Line Tool”.
mysqladmin
A client that performs administrative operations, such as creating or dropping databases, reloading the grant tables, flushing tables to disk, and reopening log files. mysqladmin can also be used to retrieve version, process, and status information from the server. See Section 4.5.2, “mysqladmin — Client for Administering a MySQL Server”.
mysqlcheck
A table-maintenance client that checks, repairs, analyzes, and optimizes tables. See Section 4.5.3, “mysqlcheck — A Table Maintenance and Repair Program”.
mysqldump
A client that dumps a MySQL database into a file as SQL, text, or XML. See Section 4.5.4, “mysqldump — A Database Backup Program”.
mysqlimport
A client that imports text files into their respective tables using LOAD DATA INFILE. See Section 4.5.5, “mysqlimport — A Data Import Program”.
mysqlshow
A client that displays information about databases, tables, columns, and indexes. See Section 4.5.6, “mysqlshow — Display Database, Table, and Column Information”.
mysqlslap
A client that is designed to emulate client load for a MySQL server and report the timing of each stage. It works as if multiple clients are accessing the server. See Section 4.5.7, “mysqlslap — Load Emulation Client”.


相关文档:

mysql复制(Replication)模式 主从(Master Slave)模式

主从模式的特性就是一台服务器作为主服务器,其余服务器作为从服务器,主服务器接收增删改查的操作,从服务器只能接收查的操作。
主服务器将数据更新至从服务器是异步的,异步的优点是可以在服务器空闲期间进行同步,而不必占用紧缺的资源,缺点就是从服务器的数据很可能不是最新的。
只能应用于对数据同步要求不高的场合 ......

mysql 函数

***function(/*常用函数*/)***
----统计函数----
AVG    --求平均值
COUNT   --统计数目
MAX    --求最大值
MIN    --求最小值
SUM    --求和
--AVG
use pangu
select avg(e_wage) as dept_avgWage
from employee
group by dept_id
--M ......

Linux下安装MySQL数据库攻略

1.MySQL简介
   MySQL是一个广泛使用的结构化查询语言(SQL)数据库服务器。和其他SQL服务器一样,MySQL提供了访问和管理SQL数据库的方法,但是,MySQL同时也提供了创建数据库结构以及在这些结构中添加、修改和删除这些结构的工具。
   MySQL数据库相关的软件包主要有以下几种:
   ......

PHP访问MySQL数据库

PHP手册上提供了以下一些主要的mysql数据库的支持函数:
mysql_affected_rows -- 取得前一次 MySQL 操作所影响的记录行数
mysql_change_user --  改变活动连接中登录的用户
mysql_client_encoding -- 返回字符集的名称
mysql_close -- 关闭 MySQL 连接
mysql_connect -- 打开一个到 MySQL 服务器的连接
mysql_c ......

Mysql中的isolation level

Mysql中的事务可以运行在下面4个isolation level中,影响着select操作的结果:
1. Read Uncommitted
事务可以读到其他事务没有提交的内容
2. Read Committed
事务可以读到其他事务已经提交的内容
3. Repeatable Read
InnoDB的默认level,可以确保,在事务中每次执行的读操作返回的结果都与第一次时的一致
4. Seriali ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号