| Précédent | Table des matière | Suivant |
![]() | ![]() |
All MySQL clients that communicate with the server using the
mysqlclient library use the following environment variables:
| Name | Description |
MYSQL_UNIX_PORT | The default socket; used for connections to localhost
|
MYSQL_TCP_PORT | The default TCP/IP port |
MYSQL_PWD | The default password |
MYSQL_DEBUG | Debug-trace options when debugging |
TMPDIR | The directory where temporary tables/files are created |
Use of MYSQL_PWD is insecure.
Confère section 6.3 Connection au serveur MySQL.
The `mysql' client uses the file named in the MYSQL_HISTFILE
environment variable to save the command line history. The default value for
the history file is `$HOME/.mysql_history', where $HOME is the
value of the HOME environment variable.
All MySQL programs take many different options. However, every
MySQL program provides a --help option that you can use
to get a full description of the program's different options. For example, try
mysql --help.
You can override default options for all standard client programs with an option file. section 4.15.4 Fichier d'options.
The list below briefly describes the MySQL programs:
isamchk
isamchk has many functions, it is described in its own
chapter.
Confère section 13 Maintenance d'un serveur MySQL.
make_binary_release
ftp.tcx.se for the
convenience of other MySQL users.
msql2mysql
mSQL programs to MySQL. It doesn't
handle all cases, but it gives a good start when converting.
mysql
mysql is a simple SQL shell (with GNU readline capabilities).
It supports interactive and non-interactive use. When used interactively,
query results are presented in an ASCII-table format. When used
non-interactively (e.g., as a filter), the result is presented in
tab-separated format. (The output format can be changed using command-line
options.) You can run scripts simply like this:
shell> mysql database < script.sql > output.tabIf you have problems due to insufficient memory in the client, use the
--quick option! This forces mysql to use
mysql_use_result() rather than mysql_store_result() to retrieve
the result set.
mysqlaccess
mysqladmin
mysqladmin can also be used to retrieve version,
process and status information from the server.
Confère section 12.2 Administrer un serveur MySQL.
mysqlbug
mysqld
mysqldump
mysqlimport
LOAD DATA
INFILE. Confère section 12.4 Importer des données depuis un fichier texte.
mysqlshow
mysql_install_db
replace
msql2mysql, but that has more
general applicability as well. replace changes strings in place in
files or on the standard input. Uses a finite state machine to match longer
strings first. Can be used to swap strings. For example, this command
swaps a and b in the given files:
shell> replace a b b a -- file1 file2 ...
safe_mysqld
mysqld daemon with some safety features, such
as restarting the server when an error occurs and logging runtime information
to a log file.
![]() | Table des matières | ![]() |
| Précédent | ![]() | Suivant |