B / Y / U / S
HOME À¥ È£½ºÆà µµ¸ÞÀÎ ¸Å´º¾ó °í°´Áö¿ø ¼³Á¤Á¤º¸ °èÁ¤½Åû 2024-12-28 Saturday 
À¥ È£½ºÆÃ
# °øÁö »çÇ×
# ÀÚÁÖ ¹¯´Â Áú¹®
# Áú¹®°ú ´äº¯
# °¡ÀÔ ¹®ÀÇ
Ä¿¹Â´ÏƼ
# ÀÚÀ¯°Ô½ÃÆÇ
# ¸®´ª½ºÆÁ
# ¾ÆÀÌÅ¥ Å×½ºÆ®
# ³»È¨ ¼Ò°³
# °Ö·¯¸®
# ÀÚ·á½Ç

  ¸®´ª½ºÆÁ  Go Unix Power Tools Online Book Go Bash Guide
Read No. 174 article 2002-08-11 20:51:36
NickName   Ç®ºñ´©
Subject   [mysql] show databases;
http://211.47.128.157/board/?p=read&table=tip&no=7069&page=

¾ÆÁ÷ ¸ð¸£½Ã´Â ºÐÀ» À§Çؼ­ Àû¾î ³õ½À´Ï´Ù.

mysql> SHOW DATABASES;

ÀÌ¿Í °°ÀÌ Äõ¸®¸¦ Àü¼ÛÇÏ¸é ¸ðµç µ¥ÀÌÅͺ£À̽º ¸ñ·ÏÀÌ
Ãâ·ÂµË´Ï´Ù. (±× ±ÇÇÑÀ» °¡ÁöÁö ¾ÊÀº À¯Àú¶óÇÒÁö¶óµµ..)

º¸¾È»ó, ÇØ´ç ±ÇÇѸ¸ ÀÖ´Â DB¸¦ Ãâ·ÂÇØÁÖ´Â °ÍÀÌ ÁÁ½À´Ï´Ù.
Áï mysqlÀ» ½ÇÇàÇÒ¶§,


# safe_mysqld --safe-show-database &

¶Ç´Â

------ /root/.my.cnf (or /etc/my.cnf or DATA_DIR/my.cnf) -------
[mysqld]
...
safe-show-database
...
----------------------------------------

ÀÌ¿Í °°ÀÌ ½ÇÇàÇÏ¸é ±ÇÇѸ¸ °¡Áö´Â DB¸¸ Ãâ·ÂÇÕ´Ï´Ù.
(ÈÄÀÚ ±ÇÀå)

±×¿Ü '--skip-show-database' ¿É¼ÇÀ» »ç¿ëÇϸé 'SHOW DATABASES'
±¸¹® »ç¿ëÀ» ¾Æ¿¹ ±ÝÁö½Ãŵ´Ï´Ù.

===============================
±×¿Ü Àâ´ÙÇÑ »çÇ×


mysql> SELECT NOW();
mysql> SELECT NOW  ();

ÈÄÀÚÀÇ °æ¿ì(ÇÔ¼ö µÚ¿¡ °ø¹é ¹«½Ã)¸¦ Çã¿ëÇÏ·Á¸é?

--------- /etc/my.cnf -------------
[mysql]
ignore-spaces
...
--------------------------------------
¶Ç´Â
--------- $HOME/.my.cnf -------------
[mysql]
ignore-spaces
...
--------------------------------------

[mysql] ¼½¼Ç ´ë½Å [client] ¼½¼Ç¿¡ ¼³Á¤Çصµ »ó°ü¾ø½À´Ï´Ù.
Regist Addr [ 211.110.41.183 ] ¸ñ·Ïº¸±â À­±Û ¾Æ·§±Û
Á¤±ÔÇ¥Çö½Ä [ »ó¼¼ °Ë»ö ]
Page Loading [ 0.02 Sec ] SQL Time [ 0 Sec ]

Copyleft 1999-2024 by JSBoard Open Project
Theme Designed by IDOO And follow GPL2

°³ÀÎÁ¤º¸ Ãë±Þ¹æħ ÀÌ¿ë ¾à°ü »çÀÌÆ® ¸Ê ¾îµå¹Î °ü¸®