You are on page 1of 9

:

mysqld [OPTIONS]
:
mysqld MySQL.
, . ,
.
--log-isam,
. ,
5-10%. ,
.
--log-isam , . , ISAM
.
UPDATE, DELETE INSERT 13 .
.
, .
,
/ . mysql.
, SELECT.
mysqld safe_mysqld .
mysqld :
-\?, --help

-#, --debug=[options] . 'd:t:o,filename`.


.
-b, --basedir=[path]

-h, --datadir
[homedir]

-l, --log=[filename]

--log-isam=[filename] isam.
-O, --setvariablevar=option

. . .

'english/'. 'swedish/', 'germany/','french/'


-L,
--language=[language] 'czech/'. share/mysql ,
MySQL.
-P, --port=[port]

-T, --debug-info

--skip-new-routines

(, ) .

--skip-grant-tables

.
.

--skip-locking

. ,
isamchk. , .

--skip-name-resolve

mysqld IP ,
mysql. DNS ,
,
.

--skip-networking

localhost.
MIT . ,
.

--skip-unsafe-select

.
- MySQL. MySQL,
MIT .

--socket=[socket]
:
mysqld --socket=/tmp/mysql.sock
.

-V, --version

-h , mysql , = "/my/data/sql/mysql".
[homedir]/[ ] .
-l . , ,
. logfile, -l mysqld
[homedir]/[hostname].log.
-O :

back_log

keybuffer

1048568

max_allowed_packet 65536
net_buffer_length

8192

max_connections

90

table_cache

64

recordbuffer

131072

sortbuffer

2097144

max_sort_length

1024

, , mysqld, .

mysqldump
.
:
mysqldump [OPTIONS] [database [table [field]]]
:
mysqldump MySQL.
SQL . SQL .
MySQL, mysqldump, ,
. mysqldump
...
mysqldump (
):

-#, --debug=[options]

. 'd:t:o,filename`.
.

-?, --help

-c, --compleat-insert

insert ( ,
).

-h, --host=[hostname]

hostname.

-d, --no-data

( ).

-t, --no-create-info

, .
-d.

-p,
--password=[password]

, MySQL. ,
-p .

-q, --quick

, STDOUT.

-u, --user=[username]

. , .

-v, --verbose


mysqldump.

-P, --port=[port]

-V, --version

mysqldump MySQL, .
: , ,
!
:
mysqladmin create foo
mysqldump mysql | mysql foo

mysqlshow
, .
:
mysqlshow [OPTIONS] [database [table [field]]]
:
mysqlshow , , MySQL ,
, .
mysqlshow (
):

-#, --debug=[options]

. 'd:t:o,filename`.
. ...

-?, --help

-h, --host=[hostname]

hostname.

-k, --key

() ().

-p,
--password=[password]

, MySQL. ,
-p .

-u, --user=[username]

. , .

-P, --port=[port]

-V, --version

mysqlshow . mysqlshow
. mysqlshow .
'?' '*', .
:
mysqlshow test 'a*'
test, 'a'.

mysqlshow mSQL msqlshow. MySQL ,


SQLSHOW DESCRIBE .

isamchk
, , MySQL.
:
isamchk [-?adeiqrsvwzIV] [-k #] [-O xxxx=size] [-Si] [-Sr #]
[-O keybuffer=#] [-O readbuffer=#] [-O writebuffer=#]
[-O sortbuffer=#] [-O sort_key_blocks=#] files
:
isamchk ,
. Isamchk , ,
BLOB . ,
.
MySQL isamchk -r.
, -rq , ""
. , ,
isamchk .
, , / .
, $DATADIR/DBNAME.
isamchk:

-#

. 'd:t:o,filename`.
.

-?

-a

. .

-d

-e

. mysqld.

-f

. 'isamchk -r', .

-k#

-i

-q

-r[o]

, B-Tree, MySQL.
, , , .

-s

-u

-v

. ,
. v
(, vv).

-w

, .

-I

-S[ir]# / #. .
-V

-O
var=#

var=#[k][m]

'-q', . -ro
: , -r. -r , ,

. , MYSQLD ,
! -f , .
. . .
:
isamchk -r
[table_name]

, - BLOBS VARCHARS.
.

isamchk -ei
[table_name]

isamchk [table_name]

isamchk -rq
[table_name]

. , .

isamchk -d -v
[table_name]

isamchk -rq -Si


[table_name]

[table_name]. ...

isamlog
, isam-.
:
isamlog [-?iruvIV] [-c #] [-f #] [-p #] [-F filepath/] [-o #]
[-R file recordpos] [-w write_file] [log-filename]
:
--log-isam=file_name mysqld.
file_name . isamlog
.
, , , mysqld
ISAM , ISAM .
-? or -I

-V

-c #

# .

-f #

. # ,
.
ISAM . ,
.

-F [path]

:
-F '/var/mirror/' isamlog /var/mirror, ,
.

-i

-o #

#.

-p #

# .

-r

, .

-R

ISAM, .
:

isamlog -R /usr/local/data/mysql/user.ISM 1234


/usr/local/data/mysql/user, 1234.

, . , ,
isamlog -vvv isamchk.
-1, .
-u

. , .

-v

. v
(, vv).

-w
[filename]

-R [filename].
,
.

safe_mysqld
mysqld.
:
safe_mysqld [options to mysqld]
:
, mysqld. ,
DATADIR MySQL, mysqld,
DATADIR .


comp_err
.
:
comp_err [-?] [-I] [-V] fromfile[s] tofile
:

mysql , mysql.
.
:
comp_err share/english/errmsg.txt share/english/errmsg.sys

msql2mysql
mSQL MySQL.
:
msql2mysql [filename]
:
msql2mysql msql MySQL.
:

msql2mysql something.c >something.mysql.c'


, , , . mSQL-
MySQL .
msql2mysql - , replace,
MySQL, mSQL MySQL
. , .

mysqlbug
.
:
mysqlbug [address]
:
MySQL. ,
, $VISUAL (Vi
).
, OS MySQL . ,
MySQL.
, [].

perror
.
:
$ perror [-?vIV] [errorcodes]

:
perror ,
MySQL.
perror :
-? or -I .
-v

-V

replace
:
replace [-?svIV] from to from to ... -- [files]
:
program msql2mysql. Replace
(), STDOUT.
:
-? .
-s ( ).
-v ( ).
:

replace Apple Orange somefile


Apple Orange somefile.

cat INFILE | replace Apple Orange Blimp Train > OUTFILE


Apple INFILE Orange OUTFILE. ,
Blimp INFILE Train OUTFILE. ,
.
:
\^ .
\$ .
\b

. , , . \b
, . \b .

Replace MySQL.

which1
.
:
which1 [cmd]
:
, , , , which,
, . .

zap
, .
:
zap [-signal] [-?Ift] pattern
:
zap .
:

prompt> zap -t "my"


UID
PID PPID C
STIME TTY
TIME CMD
root 1217
1 1 15:21:30 pts/4
0:00 /bin/sh /usr/local/pkg/mysql3.20.15/bin/safe_mysqld
root 1224 1217 3 15:21:32 pts/4
0:01 /usr/local/pkg/mysql3.20.15/libexec/mysqld -b /usr/local/pkg/mysql-3.20.15 -h
zap :
-I or -? .
-f

-t

, , .

unix. = 9 (