태터데스크 관리자

도움말
닫기
적용하기   첫페이지 만들기

태터데스크 메시지

저장하였습니다.


Edit /etc/mysql/my.cnf

Locate the section that starts [mysqld]

And add these lines under it:
# utf8
init-connect='SET NAMES utf8'
character-set-server=utf8
collation-server=utf8_general_ci

top

Trackback Address :: http://www.ssial.com/trackback/343 관련글 쓰기

  1. online casinos 2011/07/07 07:02 댓글주소 | 수정/삭제 | 댓글

    감사합니다

  2. Chanel Outlet 2011/09/17 21:21 댓글주소 | 수정/삭제 | 댓글

    Time is what you make of it.

  3. coach outlet online 2011/09/21 20:56 댓글주소 | 수정/삭제 | 댓글

    Time is what you make of it.

  4. Burberry Bags 2011/10/13 17:25 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog! From time to time students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. Thanks.

  5. Coach Outlet Online 2011/11/15 12:30 댓글주소 | 수정/삭제 | 댓글

    It's very good!Thank you for sharing it!I like buying handbags of the internet website:http://www.mycoachoutletstoreonline.com

  6. nike high heels 2011/12/06 11:30 댓글주소 | 수정/삭제 | 댓글

    http://www.jordannikeheels2011.com
    http://www.nikefreeshop2012.com
    http://www.nikeheelsjordan2011.com
    http://www.nikeheelweb2011.com
    http://www.nikeheeltw.com
    http://www.nikefreeshoes2012.com
    http://www.uggsales2011.com
    http://www.venteugg2011.com
    http://www.monclersoutlet2011.com
    http://www.monclerveste2011.com

  7. Coach Factory Outlet Online 2011/12/14 15:59 댓글주소 | 수정/삭제 | 댓글

    Great Coach Factory Outlet Online
    . A lot of useful information here. I’m sending it to some friends!

  8. red bottom shoes 2011/12/23 11:16 댓글주소 | 수정/삭제 | 댓글

    Christian louboutin pumps have a round toe, a button-fastening ankle christian louboutin pumps strap and a signature red sole. louboutin sale amber tone to bring the feeling of luxurious elegance,red sole shoes the classic expression of women’s fine with sexy charm. Upper cross lace style is full of surrealist avant-garde style at red bottoms Outlet. http://www.louboutinredbottomsshoes.com The color is more low-key fit the body color. Red bottom shoes sale black mood makes an imaginative,christian louboutin shoes glass-shaped heel painfully sweet love. Embrace the occasion of the retro arms embrace the future while the geometric style, to let people see the limitless design ingenuity. http://www.louboutinredbottomsshoes.com

  9. Coach Purses Outlet 2011/12/30 12:19 댓글주소 | 수정/삭제 | 댓글

    <a href="http://www.coachoutletpursess.com/"><h1>Coach Purses Outlet</h1></a>
    <a href="http://www.coachfactoryonlineu.com/"><h1>Coach Factory Online</h1></a>
    <a href="http://www.coachoutletl.com/"><h1>Coach Outlet</h1></a>
    <a href="http://www.canadacoachoutlet-s.net/"><h1>Coach Outlet Online</h1></a>
    <a href="http://www.coachoutletonline-2012.com/"><h1>Coach Outlet Online</h1></a>
    <a href="http://www.coachfactorystorei.com/"><h1>Coach Factory</h1></a>
    <a href="http://www.coachfactoryoutletz.com/"><h1>Coach Factory Outlet</h1></a>
    <a href="http://www.coachs-factory.net/"><h1>Coach Factory</h1></a>

  10. coach factory outlet 2012/01/13 16:02 댓글주소 | 수정/삭제 | 댓글

    http://www.coachsfactory2011.net coach factory outlet
    http://www.outletfactory-coach.net coach outlet online
    http://www.coachesoutletfactory.net coach outlet
    http://www.coachs2011.com coach outlet online
    http://www.outletfactory-coach.net coach factory outlet
    http://www.online-outlet-coach.net coach outlet online
    http://www.outletcoachesale.com coach outlet
    http://www.coachesoutletfactory.net coach factory outlet
    http://www.outletcoachesale.com coach outlet online

  11. abercrombie and fitch 2012/02/07 16:50 댓글주소 | 수정/삭제 | 댓글

    I have been reading your blog a lot over the past few days and it has earned a place in my bookmarks.

  12. abercrombie fitch 2012/02/07 16:51 댓글주소 | 수정/삭제 | 댓글

    I this blog is really great. I’m glad that i found a place to get such good information. Keep up the good work!.

  13. authentic jerseys 2012/02/10 15:09 댓글주소 | 수정/삭제 | 댓글

    http://www.steelerjerseyssuppliers.us/

  14. wow gold 2012/02/10 21:39 댓글주소 | 수정/삭제 | 댓글

    Our professional fellows <a href=http://www.mmopowerlevels.com/SWTOR-Power-leveling.html>SWTOR Power leveling</a> strive to make the price of <a href=http://www.mmopowerlevels.com/Rift-Prestige-Powerleveling.html>Buy Cheap Rift Prestige</a> lowest. SWTOR Power leveling else can you find such a dirt sale! our SWTOR Power leveling price are really cheap now, you can buy really Cheap SWTOR Power leveling here http://www.cheap-powerleveling.com/starwars-the-old-republic-leveling.html We have mass available stock of swtor easy gold on most of the servers,We sell Cheap SWTOR Credits with 24/7 online support and Fast Delivery.

    http://www.cheap-powerleveling.com/starwars-the-old-republic-leveling.html SWTOR Power leveling
    http://www.cheap-powerleveling.com/starwars-the-old-republic-leveling.html Cheap SWTOR Power level
    http://www.cheap-powerleveling.com/SWTOR-Valor-Powerleveling.html SWTOR Valor Rank Powerleveling
    http://www.cheap-powerleveling.com/SWTOR-Valor-Powerleveling.html SWTOR Valor Powerleveling
    http://www.mmopowerlevels.com/SWTOR-Power-leveling.html SWTOR power leveling
    http://www.mmopowerlevels.com/SWTOR-Power-leveling.html power leveling swtor
    http://www.mmopowerlevels.com/SWTOR-Power-leveling.html SWTOR Power level
    http://www.mmopowerlevels.com/SWTOR-Valor-Powerleveling.html Valor Rank Powerleveling
    http://www.mmopowerlevels.com/SWTOR-Valor-Powerleveling.html Buy Cheap SWTOR Valor Rank
    http://www.mmopowerlevels.com/Rift-Prestige-Powerleveling.html Rift Prestige powerleveling
    http://www.mmopowerlevels.com/Rift-Favor-Points-Powerleveling.html Buy Cheap RIFT Favor Points
    http://www.mmopowerlevels.com/Dcuo-Marks-Powerleveling.html DCUO Marks powerleveling
    http://www.cheap-powerleveling.com/Buy-Diablo3-Gold.html Diablo III gold
    http://www.cheap-powerleveling.com/Buy-Diablo3-Gold.html Diablo 3 gold
    http://www.cheap-powerleveling.com/Buy-Diablo3-Gold.html Cheap Diablo3 gold
    http://www.cheap-powerleveling.com/diablo3-power-leveling.html Diablo 3 powerleveling
    http://www.cheap-powerleveling.com/diablo3-power-leveling.html Diablo III powerleveling
    http://www.mmopowerlevels.com/Diablo3-Power-leveling.html Diablo 3 powerleveling
    http://www.mmopowerlevels.com/Buy-Diablo3-Gold.html Buy Cheap Diablo 3 Gold

  15. Deion Sanders Jersey 2012/02/13 12:34 댓글주소 | 수정/삭제 | 댓글

    http://www.49ersshoponline.com 49er Jersey
    http://www.49ersshoponline.com/patrick-willis-jersey Patrick Willis Jersey
    http://www.49ersshoponline.com/joe-montana-jersey Joe Montana Jersey
    http://www.49ersshoponline.com/alex-smith-jersey Alex Smith Jersey
    http://www.49ersshoponline.com/anthony-davis-jersey Anthony Davis Jersey
    http://www.49ersshoponline.com/brian-westbrook-jersey Brian Westbrook Jersey
    http://www.49ersshoponline.com/frank-gore-jersey Frank Gore Jersey
    http://www.49ersshoponline.com/isaac-sopoaga-jersey Isaac Sopoaga Jersey
    http://www.49ersshoponline.com/jerry-rice-jersey Jerry Rice Jersey
    http://www.49ersshoponline.com/michael-crabtree-jersey Michael Crabtree Jersey
    http://www.49ersshoponline.com/mike-iupati-jersey Mike Iupati Jersey
    http://www.49ersshoponline.com/nate-clements-jersey Nate Clements Jersey
    http://www.49ersshoponline.com/nate-davis-jersey Nate Davis Jersey
    http://www.49ersshoponline.com/roger-craig-jersey Roger Craig Jersey
    http://www.49ersshoponline.com/ronnie-lott-jersey Ronnie Lott Jersey
    http://www.49ersshoponline.com/steve-young-jersey Steve Young Jersey
    http://www.49ersshoponline.com/taylor-mays-jersey Taylor Mays Jersey
    http://www.49ersshoponline.com/vernon-davis-jersey Vernon Davis Jersey

Write a comment


MySQL 데이터 형식  범위  저장소 

bigint  -2^63(-9,223,372,036,854,775,808) ~ 2^63-1(9,223,372,036,854,775,807) 8바이트
 
int  -2^31(-2,147,483,648) ~ 2^31-1(2,147,483,647) 4바이트
 
smallint  -2^15(-32,768) ~ 2^15-1(32,767) 2바이트
 
tinyint  0 ~ 255 1바이트
top

Trackback Address :: http://www.ssial.com/trackback/87 관련글 쓰기

  1. Chanel Outlet 2011/09/17 21:45 댓글주소 | 수정/삭제 | 댓글

    Time is what you make of it.

  2. Burberry Bags 2011/10/13 17:26 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog! From time to time students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. Thanks.

  3. Coach Outlet Online 2011/11/15 12:48 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog ! It's very good and thank you for sharing it !

Write a comment


create table member(
 mem_id varchar(20) not null primary key,
 passwd varchar(20) not null,
 name varchar(20) not null
)

alter table member add reg_date date not null after name;
=> name 필드 뒤에 reg_date 추가
alter table member add reg_date date not null  after mem_id;
=> mem_id 필드 뒤에 reg_date 추가

alter table member drop reg_date;
=> reg_date 필드 삭제

desc member;

top

Trackback Address :: http://www.ssial.com/trackback/57 관련글 쓰기

  1. Chanel Outlet 2011/09/17 21:30 댓글주소 | 수정/삭제 | 댓글

    Time is what you make of it.

  2. Burberry Bags 2011/10/13 17:25 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog! From time to time students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. Thanks.

  3. Coach Outlet Online 2011/11/15 12:38 댓글주소 | 수정/삭제 | 댓글

    It's very good!Thank you for sharing it!I like buying handbags of the internet website:http://www.mycoachoutletstoreonline.com

  4. Coach Factory Online 2011/12/11 23:07 댓글주소 | 수정/삭제 | 댓글

    댓글주소 | 수정/삭제 | 댓글

  5. Coach Factory Outlet Online 2011/12/14 16:00 댓글주소 | 수정/삭제 | 댓글

    Great Coach Factory Outlet Online
    . A lot of useful information here. I’m sending it to some friends!

  6. Burberry Shop Online 2012/01/11 15:25 댓글주소 | 수정/삭제 | 댓글

    <p><strong><a href="http://www.burberrydiscount.org/">Burberry Discount</a></strong> developed a local community utilizing bags to write about in her appreciation and consciousness and also to preserve people within your loop about high quality replica artist handbag sites, such as touch bags.<br>
    <a href="http://www.burberryoutletshoponline.com/"><strong>Burberry Shop Online</strong></a> puts inside the work to can be found throughout only the extremely perfect high quality sites, steering toward magnitude of placing her on the internet protection inside the collection by attempting to purchase a replica artist handbag by method of the website itself.<br>
    <a href="http://www.onlinesburberryoutlet.com/"><strong>Burberry Outlet</strong></a> then talks concerning the website on blog of handbags. Luckily, these various quality websites are acquiring shut affordable inside the droves to make certain that people aren't scammed away from their hard-earned money.</p>

Write a comment


Global level

GRANT ALL ON *.* TO 'someuser'@'somehost';
GRANT SELECT, INSERT ON *.* TO 'someuser'@'somehost';

Database level

GRANT ALL ON mydb.* TO 'someuser'@'somehost';
GRANT SELECT, INSERT ON mydb.* TO 'someuser'@'somehost';

Table level

GRANT ALL ON mydb.mytbl TO 'someuser'@'somehost';
GRANT SELECT, INSERT ON mydb.mytbl TO 'someuser'@'somehost';

Column level

GRANT SELECT (col1), INSERT (col1,col2) ON mydb.mytbl TO 'someuser'@'somehost';

Routine level

GRANT CREATE ROUTINE ON mydb.* TO 'someuser'@'somehost';
GRANT EXECUTE ON PROCEDURE mydb.myproc TO 'someuser'@'somehost';


SET PASSWORD statement. For example:

GRANT ... IDENTIFIED BY 'mypass';

GRANT ...
IDENTIFIED BY PASSWORD '*6C8989366EAF75BB670AD8EA7A7FC1176A95CEF4';










top

Trackback Address :: http://www.ssial.com/trackback/23 관련글 쓰기

  1. Chanel Outlet 2011/09/17 21:26 댓글주소 | 수정/삭제 | 댓글

    Time is what you make of it.

  2. Chanel Outlet 2011/09/17 21:27 댓글주소 | 수정/삭제 | 댓글

    Time is what you make of it.

  3. Burberry Bags 2011/10/13 16:51 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog! From time to time students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. Thanks.

  4. Burberry Bags 2011/10/13 16:53 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog! From time to time students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. Thanks.

  5. Coach Outlet Online 2011/11/15 12:29 댓글주소 | 수정/삭제 | 댓글

    It's very good!Thank you for sharing it!I like buying handbags of the internet website:http://www.mycoachoutletstoreonline.com

  6. Coach Factory Online 2011/12/11 23:09 댓글주소 | 수정/삭제 | 댓글

    댓글주소 | 수정/삭제 | 댓글

  7. Coach Factory Outlet Online 2011/12/14 15:59 댓글주소 | 수정/삭제 | 댓글

    Great Coach Factory Outlet Online
    . A lot of useful information here. I’m sending it to some friends!

Write a comment


MySQL GUI Tools 5.0 설치
다운로드 : http://dev.mysql.com/downloads/gui-tools/5.0.html

Windows downloads
Windows (x86)
Pick a mirror
No thanks, just take me to the downloads!
Republic of Korea [byungsoo.net] HTTP FTP
(HTTP 또는 FTP)에서 다운로드 받는다.

다운로드 파일 : mysql-gui-tools-5.0-r12-win32.exe

설치 : 
    Welcome to the Setup Wizard for MySQL Tools for 5.0 : Next ->
    License Agreement : I accept the terms in the license agreement(check) : Next ->
    Destination Folder : C:\Program Files\MySQL\MySQL Server 5.0\ : Next ->
    Setup Type : Complete(check) : Next ->
    Ready to Install the Program : Install -> Next -> Next ->
    Wizard Completed : Finish ->

실행 :
    시작메뉴->모든 프로그램(P)->MySQL -> MySQL Administrator
top

Trackback Address :: http://www.ssial.com/trackback/22 관련글 쓰기

  1. Chanel Outlet 2011/09/17 21:35 댓글주소 | 수정/삭제 | 댓글

    Time is what you make of it.

  2. Coach Outlet Online 2011/11/15 12:38 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog ! It's very good and thank you for sharing it !

  3. Coach Factory Online 2011/12/11 23:11 댓글주소 | 수정/삭제 | 댓글

    댓글주소 | 수정/삭제 | 댓

Write a comment


MySQL 설치 요약

1) 다운로드
: http://dev.mysql.com/downloads/
       MySQL Community Server ->
       Download ->
       Windows ->
       Windows ZIP/Setup.EXE (x86) ->
       Pick a mirror ->
       No thanks, just take me to the downloads! ->
       (로그인 하라는 창이 뜨지만 위와 같이 다운로드만 할수 있는 링크가 있음)  
       Republic of Korea [byungsoo.net] HTTP FTP  ->
       HTTP 나 FTP 둘중에 하나 클릭해서 다운로드함
       다운로드 파일 : mysql-5.0.51b-win32.zip(버전에 따라 파일명이 달라짐)


2) 설치 :
      mysql-5.0.51b-win32.zip파일을 압축 품 ->
      mysql-5.0.51b-win32 폴더 안의  setup.exe 파일 실행 ->
      (재설치 시에도 setup.exe파일을 실행시켜서 remove 하면 됨)
      (재설치는 반드시 remove 메뉴로 제거 한 후에  설치경로에 남아 있는 myslq 관련 폴더를 삭제해 주어야 한다)
      (그렇지않으면  재설치시에  MySQL Server Instance Configuration : Execute -> Apply security settings 부분이 정상으로 체크되어지지 않는다.)

 01. Welcome to the Setup Wizard for MySQL Server 5.0  :
Next ->

 02. Setup Type  = Typical  : 
Next ->

 03. Ready to Install the Program  : 
Install ->
Next ->
Next ->

 04. Wizard Completed = configure the MySQL Server now(check함)  : 
Finish ->

 05. Welcome to the MySQL Server Instance Configuration Wizard 1.0.12.0  :
Next ->

 06. Detailed Configuration(check함)  :  
Next ->

 07. Deloper Machine(check함)  :  
Next ->

 08. Multifunctional Database(check함)  :  
Next ->

 09. MySQL Server Instance Configuration :
          InnoDB Tablespace Settings : C: Installation Path  :  
Next ->

 10. MySQL Server Instance Configuration :
          Decision Support(DSS)/OLAP  : 
Next ->

 11. MySQL Server Instance Configuration :
          Enable TCP/IP Networking : 3306 : Add firewall exception for this prot(check) :  
          Enable Strict Mode(check)  : 
Next ->

 12. MySQL Server Instance Configuration :
          Manual Selected Default Character Set / Collation(uft8 or euckr 선택) :
Next ->

 13. MySQL Server Instance Configuration :
          Install As Windows Service(check) : service Name : MySQL :
          Launch the MySQL Server automatically(check 해제) :
          (윈도우 시작시 자동 서버시작을 하지 않도록 해제한다.)
          Include Bin Directory in Windows PATH(check)  : 
Next ->

 14. MySQL Server Instance Configuration :
          Modify Security Settings : New root password = 1234  : Confirm = 1234 :
          Enable root access from remote machines(check)
          (root 관리자가 원격접속을 할수 있도록 체크한다.) : 
Next ->

 15. MySQL Server Instance Configuration :
Execute ->

 16. MySQL Server Instance Configuration :
          Prepare configuration(check 정상) :
          Write configuration file (check 정상) :
                (C:\Program Files\MySQL\MySQL Server 5.0\my.ini)
          Start service(check 정상) :
               (재설치시에 설치폴더를 지우지 않으면 정상체크안됨)
          Apply security settings(check 정상)  : 
Finish ->


# 설정에 자세한 내용은 이전 블로그를 참조바람




top

Trackback Address :: http://www.ssial.com/trackback/21 관련글 쓰기

Write a comment


Windows에서 MySQL 설치하기

Windows에서는 MSI(Microsoft Windows Installer)를 사용한다. Windows 2000 / XP / 2003 Server에서 사용할 수 있으며, http://dev.mysql.com/downloads/mysql/5.0.html에서 다운로드받을 수 있다("Windows Downloads"로 검색하라). 필수 설치 파일을 받았다면 더블클릭하여 실행한다.

다음 설명은 Windows용 MySQL 5.0.22 기준이다. 설치 과정은 Windows 환경에는 독립적이다.


[노트]
MSI 형식 이외의 설치 방법도 제공한다. "Complete Package" 방식과 "Noinstall Archive" 방식이 그것이다. "Essentials Package" 이외의 방법을 사용한다면 MySQL 매뉴얼을 반드시 읽어보아야 한다. 매뉴얼은 http://dev.mysql.com/doc/refman/5.0/en/windows-choosing-package.html에서 구할 수 있다.

본격적으로 설치를 시작해보자(MySQL AB 웹 사이트에서 MSI 파일을 다운로드했다고 가정한다).


1. MSI 파일을 더블클릭한다. [그림 2-4]와 같은 화면이 나오면 [Next] 버튼을 누른다.


사용자 삽입 이미지

[그림 2-4] Windows용 설치 마법사 시작 화면


2. "Typical", "Complete" 또는 "Custom" 중에 하나를 선택한다([그림 2-5] 참조). "Custom"은 MySQL의 구성 요소들을 선택적으로 설치할 수 있다. "Complete"는 MySQL의 모든 요소를 설치한다. 즉, 문서에서 벤치마킹까지 MySQL 전체를 설치한다. "Typical"은 클라이언트와 서버 그리고 일반적으로 필요한 도구들을 설치해준다. 대부분의 사용자들에게는 "Typical"이 적당하므로 "Typical"을 선택하고 [Next] 버튼을 클릭한다.


사용자 삽입 이미지

[그림 2-5] 설치 유형을 선택한다.


3. 앞서 선택했던 것을 다시 확인하고 [Install] 버튼을 클릭하면 설치가 시작된다.
 
[노트]
설치를 하다보면 MySQL.com 계정이 필요할 것이다. 이 계정은 여러분이 설치하고 있는 데이터베이스와는 전혀 관련이 없다. 단지 MySQL.com 웹 사이트의 계정일 뿐이다. 계정을 가지고 있지 않다면 계정을 생성해야 한다. 참고로 이런 등록 절차는 생략할 수 있다.


4. 설치가 완료되면 "MySQL Configuration Wizard"를 설치할 것인지 묻는다. 이 마법사는 반드시 설치해야 한다. 왜냐하면, 여러분의 필요에 맞게 my.ini 파일을 생성해주기 때문이다. "MySQL Configuration Wizard"를 설치하기 위해서 "Configure the MySQL Server Now" 체크 상자를 선택하자([그림 2-6] 참조).


사용자 삽입 이미지
 
[그림 2-6] MySQL 설치 후 Configuration Wizard를 설치하는 것이 좋다.


5. "MySQL Configuration Wizard"가 실행되면 간단한 환영 메시지가 나온다. [Next] 버튼을 클릭하면 "Detailed"와 "Standard" 설치 방법 중에 하나를 선택할 수 있다. 우리는 가능한 옵션을 모두 확인하기 위해서 "Detail" 방식을 선택할 것이다. "Standard" 방식을 선택할 경우, 설정 변경을 하려면 직접 my.ini 파일을 수정해야 한다. "Detailed" 라디오 버튼을 선택하고 [Next] 버튼을 클릭한다.


6. 다음 단계는 서버 머신 타입을 결정한다. [그림 2-7]과 같이 "Developer Machine", "Server Machine", "Dedicated MySQL Server Machine"을 선택할 수 있다. 서버 머신 타입에 따라서 메모리, 디스크, 프로세서의 할당이 달라진다. 개인 컴퓨터에서 테스트 목적으로 MySQL을 설치한다면 "Developer Machine"을 선택해야 한다. 서버용 머신에서 다른 서버와 함께 MySQL을 설치하려면 "Server Machine"을 선택해야 한다. MySQL을 위한 전용 서버 머신이 준비된 경우라면 "Dedicated MySQL Server Machine"을 선택하는 것이 좋다. 이 경우 대부분의 시스템 자원을 MySQL에 할당해준다.
 

사용자 삽입 이미지

[그림 2-7] 서버 머신 타입의 설정


7. 다음 설정은 데이터베이스 사용에 대한 것이다. "Multifunctional Database"는 InnoDB와 MyISAM 엔진에 균등하게 자원을 배분한다. "Transaction Database"는 InnoDB와 MyISAM 엔진을 모두 사용할 수 있지만, InnoDB에 대부분의 자원을 할당한다. "Non-Transactional Database"는 MyISAM 엔진에 모든 자원을 할당한다. 즉, InnoDB는 사용할 수 없다. 여러분의 사용 패턴을 확신할 수 없다면 "Multifunctional Database"를 선택하는 것이 좋다.


8. InnoDB 저장 엔진이 활성화되었다면 [그림 2-8]과 같이 저장 관련 정보를 설정해야 한다. [그림 2-8]은 초기 설정 상태이다. 원한다면 설정을 바꿔도 좋다. [Next] 버튼을 클릭하면 다음 단계로 넘어간다.


사용자 삽입 이미지
 

[그림 2-8] InnoDB 저장 엔진을 위한 디스크 튜닝


9. MySQL 서버의 동시 접속수를 지정한다. 동시 접속수는 데이터베이스의 사용 패턴과 트래픽 정도에 따라서 달라져야 한다. "Decision Support (DSS)/OLAP"이 기본 설정이다. 기본 설정은 최대 100개의 동시 접속을 허용하며, 평균적으로 20개의 동시 접속이 있다고 가정한다. "Online Transaction Processing(OLTP)"은 최대 500개의 동시 접속을 허용한다. "Manual Setting"은 여러분이 직접 동시 접속수를 지정할 수 있도록 해준다. 동시 접속에 대한 결정을 했다면 [Next] 버튼을 클릭한다.


10. 다음은 네트워크 옵션 설정이다. TCP/IP 사용여부와 포트를 지정할 수 있다. 기본 포트는 3306이지만, 다른 포트(사용중이지 않은 포트)로 변경할 수 있다. TCP/IP 이외에 "Enable Strict Mode" 사용여부도 지정할 수 있다. "Strict Mode"가 무엇인지 잘 모르겠다면 "Enable Strict Mode"를 선택된 상태로 두는 것이 좋다. 좀 더 자세한 정보가 필요하다면 http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html을 방문해보자. 모든 선택이 끝났다면 [Next] 버튼을 클릭한다.


[노트]
TCP/IP 설정에서 지정한 포트를 위해 방화벽 수정이 필요하다. 즉, 3306포트(직접 포트를 지정했다면 다를 수 있다)를 위한 방화벽 흐름제어가 필요하다.


11. 다음은 문자세트을 지정한다. 기본 옵션은 "Standard Character Set"으로 "Latin1"을 사용한다. "Best Support for Mulilingualism"은 UTF8을 사용한다. UTF8은 하나의 문자세트로 다국어를 표현할 수 있다. "Manual Selected Default Character Set"은 직접 문자세트를 선택할 수 있게 해준다. 이 항목을 선택하면 적당한 문자 세트를 선택할 수 있도록 드롭다운 리스트가 나온다. 설정을 마쳤으면 [Next] 버튼을 클릭한다.


12. MySQL은 서비스 형태로 설치하는 것이 좋다. [그림 2-9]는 이와 관련된 설정 화면이다. "Install As Windows Service" 체크 상자를 체크하고 서비스 이름을 선택한다. 원한다면 "Launch the MySQL Server Automatically"를 체크해도 좋다. 참고로, MySQL의 bin 폴더를 Windows PATH 환경변수에 추가하면 cmd 창에서 MySQL를 쉽게 접근할 수 있다. 설정을 마쳤으면 다음으로 넘어간다.


사용자 삽입 이미지

[그림 2-9] MySQL 서버 인스턴스 설정


13. 다음은 보안 옵션에 대한 설정으로 가장 중요하다. [그림 2-10]과 같이 root 암호를 지정한다. 암호를 두 번 입력하여 오타 여부를 다시 확인한다. "Enable Root Access"는 의미를 잘 알고 있는 경우에만 선택하는 것이 좋다. 일반적으로 root 접근은 로컬로 제한하는 것이 보통이다. 익명 접근을 허용할 수도 있지만 추천하지는 않는다. 보안에 좋지 않기 때문이다. 설정을 마쳤으면 [Next] 버튼을 클릭한다.
 

사용자 삽입 이미지
 
[그림 2-10] root 암호를 지정한다.


14. 이제 마지막 단계이다. [Execute] 버튼을 클릭하면 화면에 나열된 순서대로 처리를 시작한다. 모든 처리가 끝나면 [그림 2-11]과 같은 화면을 볼 수 있다.


 

사용자 삽입 이미지

[그림 2-11] MySQL Configuration Wizard의 성공적인 종료


"MySQL Configuration Wizard"는 my.ini 설정 파일을 "C:\Program Files\MySQL\MySQL Server 5.0\"에 만들고 MySQL 서비스를 시작시켜 주는 것으로 인스톨 및 설정 과정을 마무리한다.


[팁]
my.ini 파일을 직접 수정하는 것도 가능하다. 수정 후에는 반드시 MySQL 서버를 다시 시작해야 한다.


top

Trackback Address :: http://www.ssial.com/trackback/20 관련글 쓰기

  1. Burberry Bags 2011/10/13 17:39 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog! From time to time students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. Thanks.

  2. Love with ROSEGOLD shoes 2012/02/12 12:54 댓글주소 | 수정/삭제 | 댓글

    The article is so beautiful, so I feel very good, thought I saw my favorite @ the same, thank you of you are very

Write a comment


MySQL 이 개발자들에게 주는 의미

MySQL 2008/04/21 17:01

대부분의 비즈니스 전문가는 썬 마이크로시스템즈가 오픈 소스 데이터베이스 공급업체인 MySQL AB를 인수하기로 했다는 발표에 박수를 보냈습니다. 인수를 통해 MySQL이 썬의 관리 하에 들어오게 되었음은 분명하지만 개발자들은 이번 인수가 자신들에게 어떤 영향을 미치게 될지 궁금해 하고 있습니다.

개발자들은 개발할 때 쉽게 사용할 수 있고, 기업 수준에 따라 쉽게 확장할 수 있으며, 기술을 숙지하는 데 투자한 시간을 충분히 보상받을 수 있을 만큼 생명력이 긴 제품을 원하고 있습니다. 일부 MySQL 커뮤니티 회원은 두 회사가 합병된 뒤에도 이 뛰어난 오픈 소스 제품을 계속 이용할 수 있을지, 또한 이 커뮤니티가 앞으로도 활발한 활동을 보일 수 있을지에 대해 궁금해 하고 있습니다.


MySQL, 최고의 오픈 소스 옵션

MySQL은 오픈 소스 데이터베이스 시장을 이끌고 있으며 썬의 MySQL도 앞으로 오픈 소스 커뮤니티와 함께 할 것입니다. MySQL의 CEO인 마틴 미코스는 무료 오픈 소스 소프트웨어에 대한 썬의 약속으로 인수 합병이 성사될 수 있었다고 밝히고 있습니다. 조나단 슈왈츠는 자신의 블로그에 4년 동안의 준비 기간 동안 오픈 시스템에 대한 썬의 약속이 오픈 소스 소프트웨어로 확장되었고 썬이 MySQL 커뮤니티를 위한 홈베이스의 역할을 할 것임을 MySQL 경영진이 분명히 인식하게 되었다고 기술하고 있습니다. 자바 기술과 MySQL 모두 GPL 버전 2 라이센스를 적용받으며 향후에 GPL 버전 3 라이센스가 완성되면 이 라이센스의 적용을 받게 될 것입니다.

MySQL 개발자의 경우에는 거의 변화가 없을 것입니다. 그러나 MySQL Enterprise 고객의 경우 포춘 500대 기업의 지원을 통해 서비스 및 지원 수준이 대폭 향상될 것으로 기대할 수 있습니다. 그리고 MySQL이 보다 광범위하게 채택됨에 따라 모든 사용자가 더욱 빠른 제품 혁신과 더욱 정밀한 테스팅, 그리고 전반적으로 향상된 MySQL 제품을 기대할 수 있습니다.


MySQL 및 썬 소프트웨어 스택

오픈 소스에 대한 썬의 약속에 대해 회의적인 사람들은 다른 썬의 제품, 특히 그 자체가 오픈 소스 혼돈기를 겪었던 솔라리스 OS를 강제로 그러나 의식하기 어려울 정도로 매우 교묘히 채택해야 하는 상황을 우려할 수도 있습니다. 그러나 인텔, 마이크로소프트, 오라클 및 기타 경쟁업체와의 제휴를 포함한 썬의 움직임은 썬이 개발자에게 특정한 소프트웨어의 사용을 강제하기보다 시장에 적응하고 있음을 나타냅니다.

Linux 운영 체제, Apache 웹 서버, MySQL 데이터베이스 서버, PHP/Perl/Python 언어를 총칭하는 LAMP라는 약어는 오픈 소스 개발자가 선호하는 소프트웨어 스택을 설명합니다. 이 스택의 각 요소는 오픈 소스 및 소유권이 있는 경우 모두에 대해 대안이 존재하므로 LAMP는 의미 파악이 쉬운 약어로 그다지 유용하지 않습니다. 예를 들어 매일 50,000건의 MySQL 다운로드 중에서 대부분의 바이너리는 WAMP 개발자 등이 Windows 운영 체제용으로 사용할 것입니다. 썬에서 후원하는 오픈 소스 툴 및 제품, 가장 대표적으로 GlassFish 애플리케이션 서버 같은 제품에도 비슷한 수가 적용됩니다. 썬은 LAMP 개발자 간의 시장 점유율을 위해 적극적으로 경쟁하기로 결정한 한편 자사의 툴과 소프트웨어를 일반적인 플랫폼으로 포팅하고 있습니다.

썬 소프트웨어를 사용하는 개발자는 MySQL이 썬 소프트웨어 스택에서 PostgreSQL 및 JavaDB 등 다른 데이터베이스의 대안으로 사용될지에 대해 궁금증을 가지고 있을 것입니다. 썬은 개발자들이 Apache Derby 같은 데이터베이스 슬롯에 삽입하고자 하는 일반 관리 소프트웨어 가운데 어떠한 것도 지원할 의도가 전혀 없음을 다시 한 번 강조합니다. PostgreSQL 코어 팀의 조쉬 버커스에 따르면 썬은 PostgreSQL에 대한 지원을 중단하지 않을 것입니다. 제일의 MySQL 공급업체가 되는 것이 아니라 제일의 데이터센터 공급업체가 되는 것이 썬의 목표입니다. 데이터베이스의 세계에서는 '한 제품이 모든 용도를 만족시키기'란 불가능합니다. "

웹 애플리케이션 소프트웨어 스택에서 이미 MySQL을 사용하고 있었다면 운영 체제, 웹 서버 또는 언어에 상관없이 MySQL을 계속해서 무료로 커뮤니티 기반 데이터베이스로 사용할 수 있습니다. 기업 수준 성능으로 확장하려는 경우에는 썬에서 필요한 지원과 서비스를 제공합니다. 다른 데이터베이스를 사용하고 있는 경우에도 썬 제품과 함께 사용하는 데 문제가 없습니다.


MySQL 정보

웹 애플리케이션을 개발할 때 MySQL 또는 기타 썬 오퍼링을 사용해본 적이 없다면 이번이 재평가해볼 기회입니다.

한 제품이 모든 용도의 데이터베이스를 만족시킬 수는 없지만 MySQL의 인기는 이 제품이 그러한 이상에 얼마나 가까운지를 보여 줍니다. MySQL의 적응성 및 사용 편이성은 그 아키텍처와 확장성에 크게 힘입고 있습니다. 이 아키텍처는 MySQL이 현재까지 전세계적으로 1,100만 개 이상 설치되어 사용 중이고 1억 회 이상 다운로드되거나 배포된 이유를 잘 말해 줍니다. 이 글의 작성 시점에도 새로운 MySQL이 2초에 한 번씩 다운로드되고 있습니다.


수평 성능 확장 기능

여러 MySQL 사용자가 성공을 위해 채택하는 전략은 수평 성능 확장(Scale-Out)이라고 알려져 있습니다. 이 용어는 데이터를 여러 대의 물리적 서버에 복제하는 방식으로 데이터베이스의 워크로드를 상용 하드웨어 전체에 분리 및 분산시키는 아키텍처 설계 방식을 의미합니다. 이 전략은 수직 성능 확장(Scale-Up)이라고 하는, 적은 수의 단일 서버군에 CPU 전력, 스토리지, 메모리를 추가하는 방법과 대조됩니다. 수평 성능 확장 전략은 이 방식으로 높은 수준의 업타임을 확보한 트래픽 사용량이 높은 여러 MySQL 웹 사이트에서 보듯이 일반적으로 장애 허용 기능과 전반적인 비용 대비 성능이 우수합니다.

그림1은 수평 성능 확장 아키텍처를 보여 줍니다.

 
사용자 삽입 이미지
그림 1.
수평 성능 확장 아키텍처
                         크게 보려면 여기를 클릭하십시오.

일반적인 경우에 사용자는 고객이 사용하는 웹 또는 애플리케이션 서버에서 세션을 시작합니다. 이러한 서버는 로드 밸런서나 기타 요청을 전달하는 애플리케이션 로직을 통해 MySQL 데이터베이스 서버에 필요한 요청을 보냅니다. 요청으로 인해 서버가 데이터베이스에 데이터를 작성하는 경우 서버는 해당 데이터를 다른 MySQL 서버에 복제함으로써 향후의 쿼리에 대비해 데이터를 최신 상태로 유지합니다.

고가용성, 대용량 설정에서 MySQL 서버에 오류가 발생하면 일반적으로 오류가 발생한 서버를 오프라인 상태로 만든 다음 다른 서버로 스왑합니다. 몇 분 후에는 이전과 같이 데이터베이스를 새로운 서버로 복제할 수 있고 쿼리 서비스를 진행할 수 있습니다. 저비용의 상용 서버에서는 이러한 스왑 전략을 비용 효율적으로 구사할 수 있습니다.


스토리지 엔진 아키텍처

MySQL의 스토리지 엔진 아키텍처는 데이터베이스 세계에서 고유한 기능을 제공합니다. 그림 2는 흥미로운 착탈식 스토리지 엔진 레이어를 보여 줍니다.

사용자 삽입 이미지

              그림 2. 스토리지 엔진 아키텍처
                                           크게 보려면 여기를 클릭하십시오.

MySQL은 다른 데이터베이스 관리 시스템과 마찬가지로 스토리지 엔진 레이어 위에 자체 데이터베이스를 표시합니다. 여러 개의 커넥터를 사용하여 데이터베이스를 쿼리할 수 있습니다. 서버의 연결 풀은 인증을 제공하고 스레드, 연결, 메모리, 캐시를 관리합니다. 서버의 모듈은 쿼리 구문을 분석하고, 액세스 경로를 최적화하는 등의 작업을 합니다.

이 레이어 아래에서 여러 개의 스토리지 엔진을 아키텍처에 연결할 수 있습니다. 스토리지 엔진은 물리적 서버 수준에서 유지되는 기본 데이터와 관련된 작업을 수행하는 데이터베이스 서버의 구성요소입니다. 착탈형 스토리지 엔진 아키텍처를 사용하면 표준 관리 및 지원 서비스를 기본 스토리지 엔진 모두에 적용할 수 있습니다. 그러면 여러 데이터베이스를 단일 관리자의 제어 하에 관리하는 것과 비슷한 결과가 됩니다.

아카이브에 사용되는 스토리지 엔진 등 일부 스토리지 엔진의 경우에는 원래 트랜잭션이 불가능합니다. 이러한 스토리지 엔진은 매우 효율적으로 데이터를 삽입하고 읽을 수 있습니다. 어떤 스토리지 엔진은 트랜잭션 작업이 필요할 경우 효율성에 맞게 조정되지만 또 어떤 스토리지 엔진은 클러스터링을 통해 계속해서 고가용성을 제공합니다. 이러한 스토리지 엔진은 자신이 소유한 시스템의 기본적인 오버헤드를 방지합니다. 일반적으로 이러한 시스템은 테이블 아키텍처의 트랜잭션 오버헤드가 필요하지 않은 경우에도 이러한 오버헤드를 감수해야 합니다.

예를 들어 기본적으로 데이터를 조회해야 하는 사이트는 MySQL의 기본 엔진인 MyISAM 스토리지 엔진을 사용하여 트랜잭션 오버헤드를 방지할 수 있습니다. MyISAM 엔진은 고속 쿼리 및 삽입 기능을 제공하지만 트랜잭션이 불가능하며 테이블 수준의 잠금을 제공하고 인덱스 기능을 지원합니다. 기존의 데이터 웨어하우스에 적합한 엔진입니다.

MySQL 데이터베이스 서버는 여러 가지 내부 스토리지 엔진과 함께 제공됩니다. 외부 스토리지 엔진은 특정 제품 및 상황에 따라 성능이 최적화되도록 조정되며 독립 소프트웨어 공급업체나 MySQL 커뮤니티 모두에서 제공합니다.

여러 스토리지 엔진이 있으면 여러 데이터베이스의 기능이 제공됩니다. 다른 데이터베이스에서 MySQL로 마이그레이션하는 경우 SQL 코드가 같으므로 사용 중인 애플리케이션이 데이터베이스 서버와 상호 작용하는 방식을 변경할 필요가 없습니다. 그러나 내부 데이터베이스를 MySQL 서버로 마이그레이션하는 경우에는 애플리케이션의 요구에 맞는 스토리지 엔진을 선택할 수 있습니다.

예를 들어 트랜잭션 가능한 데이터베이스가 필요하다면 단일 구문을 사용하여 트랜잭션이 불가능한 시스템에서 트랜잭션이 가능한 시스템으로 데이터베이스를 변환할 수 있습니다. 그런 다음 데이터 웨어하우스가 필요하면 명령 하나로 강력한 데이터 검색에 적합하게 조정된 열 중심 데이터베이스를 소유할 수 있습니다. 주요 작업이 데이터를 캡처하고 저장하는 일이라면 아카이브 스토리지 엔진은 대용량 삽입 작업을 효율적으로 처리하고 공간을 적게 차지하도록 데이터를 압축하는 일에 맞게 설계됩니다.


고가용성

ISP 및 메인스트림 비즈니스는 MySQL 서버의 복제 기능이 고가용성 요구에 충분하다는 것을 알 수 있습니다.

고객은 가용성을 늘리기 위해 SAN(Storage Area Network) 기술을 추가하거나 LINBIT에서 네트워크를 통해 차단 장치 복제를 배포하는 Linux 커널 모듈인 DRBD(Distributed Replicated Block Device)를 추가할 수 있습니다. 고가용성의 "99.999%"가 데이터 노드 간의 동기화된 복제, 자동 페일오버, 클러스터 간의 복제를 수행하는 MySQL 클러스터에 의해 제공됩니다.

MySQL의 기능은 트래픽이 가장 높은 사이트에 최고 수준의 성능을 제공하며 제품 개발에도 쉽게 사용할 수 있습니다. 이러한 특징 덕분에 많은 사용자가 사용하고 있습니다.


비용이 들지 않습니다.

MySQL 사용자의 25%가 개발자입니다. 여러 중소기업의 경우, 특히 사업 초창기에는 개발자가 데이터베이스 관리자이기도 합니다. 기업이 성장하면서 용량과 수익이 커짐에 따라 주요 작업자들은 데이터베이스 관리 이외의 활동에 더 많은 시간을 사용하게 됩니다. 높은 안정성과 인력 비용이 점점 중요해집니다. 이 시점에서 MySQL Enterprise를 구입하면 모니터링 기능 및 기타 지원되는 기능을 활용할 수 있기 때문에 경제적으로 효율적입니다.

Enterprise 버전이 업데이트를 더 자주 수행하지만 커뮤니티 버전의 MySQL과 MySQL Enterprise 버전은 그 기능이 동일합니다. 이러한 기능에는 GUI 관리 도구, 다른 서버의 데이터를 마이그레이션할 수 있는 마이그레이션 툴킷, JDBC 및 ODBC용 커넥터 등이 있습니다. 커뮤니티에서 문서 및 사용자 포럼에도 무료로 액세스할 수 있습니다. MySQL을 사용하여 무료로 개발할 수 있으며, 개발 성능을 수평으로 확장하거나 유료 버전의 MySQL로 이전할 수도 있습니다.


결론

썬 마이크로시스템즈는 Java 기술용 오픈 소스 모델, Solaris 운영 체제 및 기타 속성을 포괄함으로써 오픈 소스 커뮤니티에 세계 최대의 기업 공헌자가 되었습니다. 이미 세계 최대의 오픈 소스 데이터베이스인 MySQL은 썬 소프트웨어 스택의 중요한 틈새를 채워 줍니다. MySQL은 썬의 사용 범위와 자원을 기반으로 더욱 널리 사용될 것입니다. 그렇게 되면 썬, MySQL, 개발자 커뮤니티, 대기업 및 중소 기업 고객 모두에게 혜택이 돌아갈 것입니다.


자세한 정보



출처 : http://www.sdnkorea.com/blog/550

top

Trackback Address :: http://www.ssial.com/trackback/9 관련글 쓰기

  1. gucci aviatrix 2012/02/12 12:24 댓글주소 | 수정/삭제 | 댓글

    The article is so beautiful, so I feel very good, thought I saw my favorite http://www.topbagsui.com/gucci-handbags-gucci-aviatrix-bags-c-157_207.html
    the same, thank you of you are very

Write a comment



필요한 패키지.

- mysql-x.x.xx.tar.gz (소스 파일)
- gcc
- make

shell> which make 했을 경우 아래와 같이 GNU make가 설치된 디렉토리는

/usr/local/bin/make 이어야 할 것입니다.

만약에 /usr/ccs/bin/make 이런식으로 나온다면. 이건 GNU make가 아닌 표준 make 일 것이므로...PATH를 다시 확인해주시던가. 아니면 PATH로 설정된 사항들중에 /usr/local/bin의 우선순위를 /usr/ccs/bin보다 먼저 오게 해주시면 됩니다.



설치전 필수 작업

- PATH 설정 : gcc 등이 설치되어 있는 곳의 PATH를 설정해준다.



설치 작업

- mysql 계정을 만들고, Group 설정하기.

MySQL에서 제공하는 표준은 아래와 같이 사용자와 그룹추가만 한다.

shell> groupadd mysql

shell> useradd -g mysql mysql



하지만. mysql 계정에 디렉토리와 패스워드까지 부여할 수도 있다.

shell> mkdir /export/home/mysql

shell> groupadd mysql

shell> useradd -d /export/home/mysql -g mysql -s /usr/bin/zsh mysql

shell> passwd mysql

password : ...

.....


- tar로 풀기~

shell> gzip -d mysql-5.0.19.tar.gz
shell> tar -xvf mysql-5.0.19.tar

.

.



- MySQL 설치을 진행한다.

**옵션설명

prefix=/usr/local/mysql : 설치경로를 지정

--with-charset=euckr : 기본 언어값을 지정.

charset을 지정하는 것은 테이블에 한글 데이터 Sort를 위해서 해야함.

- charset 옵션의 인자로 가능한 값들은 다음과 같다.

Available are : binary armscii8 ascii big5 cp1250 cp1251 cp1256 cp1257 cp850 cp852 cp
866 cp932 dec8 eucjpms euckr gb2312 gbk geostd8 greek hebrew hp8 keybcs2 koi8r koi
8u latin1 latin2 latin5 latin7 macce macroman sjis swe7 tis620 ucs2 ujis utf8

---------------------------------------------------------------------------------



shell> cd mysql-XXX (mysql 소스 폴더로 이동)

shell> ./configure --prefix=/usr/local/mysql --with-charset=euckr (charset설정)



- MySQL make 진행

shell> make



- MySQL make install 진행

shell> make install

- /usr/local/mysql 폴더가 생성되고 설치 완료됨.



- MySQL Config파일 이동

shell> cp support-files/my-medium.cnf /etc/my.cnf

만약에 한글이 깨질경우. my.cnf 에 설정값들을 추가.

http://www.ssial.com/entry/mysql-character-set



- MySQL 기본 DB 생성

shell> cd /usr/local/mysql (mysql이 설치된 폴더로 이동)

shell> bin/mysql_install_db --user=mysql



- MySQL 권한 설정

shell> chown -R root /usr/local/mysql
shell> chown -R mysql /usr/local/mysql/var
shell> chgrp -R mysql /usr/local/mysql



- MySQL 데몬 실행
shell> bin/mysqld_safe --user=mysql & (여기서 & 는 백그라운드로 실행하라는 의미. MySQL 데몬 실행)



------------------------------- <참고> -------------------------------

MySQL의 각종 메시지들을 한글로 보기를 원한다면 --language=korean 옵션을 주고, 실행한다.

shell> cd /usr/local/mysql/bin

shell> safe_mysqld --user=mysql --language=korean &

----------------------------------------------------------------------





- MySQL 실행

shell> mysqld_safe &
[1] 373
shell> Starting mysqld daemon with databases from /usr/local/mysql/var <-- Enter를 지그시 눌러준다.



- MySQL이 제대로 실행되었는지 프로세스를 확인해보자.

shell> ps -ef | grep mysql
mysql 389 373 1 19:16:18 pts/1 0:00 /usr/local/mysql/libexec/mysqld --basedir=/usr/local/mysql --datadir=/usr/local
root 373 309 0 19:16:18 pts/1 0:00 /bin/sh /usr/local/mysql/bin/mysqld_safe

shell>



- 관리자 암호 변경하기 (MySQL 데몬이 실행된 상태에서 진행)

shell> mysqladmin -u root password '변경할 비밀번호' <-- password는 홀따옴표로 묶어주어야 한다.



이후부터는 mysql 접속시 관리자 password를 입력해주어야 한다. password를 입력하지 않을 경우 아래와 같은 ERROR문구를 보여준다.

shell> mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)





------------------------------- <참고> -------------------------------

MySQL 이 최초로 설치된 상태에서는 root의 password는 없다.

때문에 위와 같이 관리자의 암호를 변경하고자 할때 root의 password를 입력하지 않아도 되는 것이다. 하지만 관리자 암호가 주어진 이후부터는 암호 변경시 기존의 password를 입력해주어야 한다. 당연한 이야기같지만 착각하는 경우도 많다. ^^*



예> 관리자의 기존 password를 입력하지 않았을 경우

shell> mysqladmin -u root password '1234'
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'



예> 관리자의 기존 password를 입력하고 새로운 password로 변경할때.
shell> mysqladmin -u root -p password '새로이 변경할 password'
Enter password:
shell>

----------------------------------------------------------------------



- MySQL 접속하기

shell> mysql -uroot -p1234 mysql <--- root라는 사용자 ID와, 1234라는 password를 사용하여 mysql DB에 접속하겠다는 뜻.

여기서 -p 옵션 다음에 바로 패스워드를 입력하여도 무방하나...password가 노출될 수 있으므로 되도록이면 패스워드는 아래와 같이 따로 입력하도록 한다.

shell> mysql -uroot -p mysql
Enter password:


Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 9 to server version: 5.0.19

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.



mysql>



입력한 사용자 아이디와 패스워드가 맞다면 위와 같은 문구와 함께 mysql 명령 프롬프트가 보일 것이다.



mysql>
mysql> status
--------------
mysql Ver 14.12 Distrib 5.0.19, for sun-solaris2.8 (sparc) using EditLine wrapper

Connection id: 9
Current database: mysql
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.0.19
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: euckr
Db characterset: euckr
Client characterset: euckr
Conn. characterset: euckr
UNIX socket: /tmp/mysql.sock
Uptime: 20 min 5 sec

Threads: 1 Questions: 50 Slow queries: 0 Opens: 0 Flush tables: 1 Open tables: 17 Queries per second avg: 0.041
--------------

mysql> select pi()*4/10;
+--------------+
| pi()*4/10 |
+--------------+
| 1.2566370614 |
+--------------+
1 row in set (0.03 sec)

mysql> select 'Hello World? I\'m MySQL' AS string1;
+------------------------+
| string1 |
+------------------------+
| Hello World? I'm MySQL |
+------------------------+
1 row in set (0.00 sec)

mysql> select now();
+---------------------+
| now() |
+---------------------+
| 2006-03-15 19:49:37 |
+---------------------+
1 row in set (0.02 sec)

mysql> use mysql;
Database changed
mysql> show tables;
+---------------------------+
| Tables_in_mysql |
+---------------------------+
| columns_priv |
| db |
| func |
| help_category |
| help_keyword |
| help_relation |
| help_topic |
| host |
| proc |
| procs_priv |
| tables_priv |
| time_zone |
| time_zone_leap_second |
| time_zone_name |
| time_zone_transition |
| time_zone_transition_type |
| user |
+---------------------------+
17 rows in set (0.00 sec)

mysql> desc user;
+-----------------------+--------------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------------------+--------------------------+------+-----+---------+-------+
| Host | char(60) | NO | PRI | | |
| User | char(16) | NO | PRI | | |
| Password | char(41) | NO | | | |
| Select_priv | enum('N','Y') | NO | | N | |
| Insert_priv | enum('N','Y') | NO | | N | |
| Update_priv | enum('N','Y') | NO | | N | |
| Delete_priv | enum('N','Y') | NO | | N | |
| Create_priv | enum('N','Y') | NO | | N | |
| Drop_priv | enum('N','Y') | NO | | N | |
| Reload_priv | enum('N','Y') | NO | | N | |
| Shutdown_priv | enum('N','Y') | NO | | N | |
| Process_priv | enum('N','Y') | NO | | N | |
| File_priv | enum('N','Y') | NO | | N | |
| Grant_priv | enum('N','Y') | NO | | N | |
| References_priv | enum('N','Y') | NO | | N | |
| Index_priv | enum('N','Y') | NO | | N | |
| Alter_priv | enum('N','Y') | NO | | N | |
| Show_db_priv | enum('N','Y') | NO | | N | |
| Super_priv | enum('N','Y') | NO | | N | |
| Create_tmp_table_priv | enum('N','Y') | NO | | N | |
| Lock_tables_priv | enum('N','Y') | NO | | N | |
| Execute_priv | enum('N','Y') | NO | | N | |
| Repl_slave_priv | enum('N','Y') | NO | | N | |
| Repl_client_priv | enum('N','Y') | NO | | N | |
| Create_view_priv | enum('N','Y') | NO | | N | |
| Show_view_priv | enum('N','Y') | NO | | N | |
| Create_routine_priv | enum('N','Y') | NO | | N | |
| Alter_routine_priv | enum('N','Y') | NO | | N | |
| Create_user_priv | enum('N','Y') | NO | | N | |
| ssl_type | enum('','ANY','X509','SPECIFIED') | NO | | | |
| ssl_cipher | blob | NO | | | |
| x509_issuer | blob | NO | | | |
| x509_subject | blob | NO | | | |
| max_questions | int(11) unsigned | NO | | 0 | |
| max_updates | int(11) unsigned | NO | | 0 | |
| max_connections | int(11) unsigned | NO | | 0 | |
| max_user_connections | int(11) unsigned | NO | | 0 | |
+-----------------------+-------------------------+------+-----+---------+-------+
37 rows in set (0.06 sec)

mysql> select Host, User, Password, Select_priv, Insert_priv from user;
+-----------+------+---------------------------------+-------------+-------------+
| Host | User | Password | Select_priv | Insert_priv |
+-----------+------+---------------------------------+-------------+-------------+
| localhost | root | *CE4B7A35D52EFD963E7C0614F5GAE2ED5A5DC6CC | Y | Y |
| GNTDB | root | | Y | Y |
| GNTDB | | | N | N |
| localhost | | | N | N |
+-----------+------+---------------------------------+-------------+-------------+
4 rows in set (0.00 sec)

mysql> \q
Bye

shell>


- MySQL 종료하기

shell> mysqladmin -uroot -p shutdown
Enter password:
STOPPING server from pid file /usr/local/mysql/var/GNTDB.pid
060315 19:11:29 mysqld ended

[1] + done mysqld_safe


출처 : http://blog.kyums.com/2007/11/mysql-5-fedora-7.html
================================================================================


 

1. mysql 컴파일 환경 설정 시 --with-charset 옵션을 안 주었을 경우

(euckr 과는 거리가 먼 결과가 나온다)

mysql> show variables like 'c%';

+--------------------------+----------------------------------------+

| Variable_name                      | Value                                                            |

+--------------------------+----------------------------------------+

| character_set_client             | latin1                                                             |

| character_set_connection    | latin1                                                             |

| character_set_database       | latin1                                                            |

| character_set_filesystem     | binary                                                           |

| character_set_results          | latin1                                                             |

| character_set_server          | latin1                                                             |

| character_set_system         | utf8                                                               |

| character_sets_dir              | /usr/local/mysql/share/mysql/charsets/     |

| collation_connection            | latin1_swedish_ci                                          |

| collation_database               | latin1_swedish_ci                                         |

| collation_server                   | latin1_swedish_ci                                         |

| completion_type                  | 0                                                                   |

| concurrent_insert                | 1                                                                   |

| connect_timeout                  | 5                                                                   |

+--------------------------+----------------------------------------+

14 rows in set (0.00 sec)

mysql>



2. mysql 컴파일 환경 설정 시 --with-charset 옵션을 안 주고 설치한 뒤

/etc/my.cnf 파일을 utf-8 환경으로 수정 후

mysql> show variables like 'c%';

+--------------------------+----------------------------------------+

| Variable_name                      | Value                                                             |

+--------------------------+----------------------------------------+

| character_set_client             | utf8                                                                |

| character_set_connection    | utf8                                                                |

| character_set_database       | utf8                                                                |

| character_set_filesystem     | binary                                                            |

| character_set_results          | utf8                                                                |

| character_set_server           | utf8                                                               |

| character_set_system          | utf8                                                               |

| character_sets_dir               | /usr/local/mysql/share/mysql/charsets/     |

| collation_connection             | utf8_general_ci                                             |

| collation_database                | utf8_general_ci                                             |

| collation_server                    | utf8_general_ci                                             |

| completion_type                   | 0                                                                   |

| concurrent_insert                 | 1                                                                   |

| connect_timeout                   | 5                                                                   |

+--------------------------+----------------------------------------+

14 rows in set (0.00 sec)

mysql>



3. mysql 컴파일 환경 설정 시 --with-charset=utf8 옵션을 주었을 경우

mysql> show variables like 'c%';

+--------------------------+----------------------------------------+

| Variable_name                      | Value                                                            |

+--------------------------+----------------------------------------+

| character_set_client             | latin1                                                             |

| character_set_connection    | latin1                                                             |

| character_set_database       | utf8                                                               |

| character_set_filesystem     | binary                                                           |

| character_set_results          | latin1                                                             |

| character_set_server          | utf8                                                                |

| character_set_system         | utf8                                                               |

| character_sets_dir               | /usr/local/mysql/share/mysql/charsets/    |

| collation_connection            | latin1_swedish_ci                                         |

| collation_database               | utf8_general_ci                                             |

| collation_server                   | utf8_general_ci                                             |

| completion_type                  | 0                                                                   |

| concurrent_insert                | 1                                                                   |

| connect_timeout                  | 5                                                                   |

+--------------------------+----------------------------------------+

14 rows in set (0.00 sec)

mysql>



4. mysql 컴파일 환경 설정 시 --with-charset=euckr 옵션을 주었을 경우

mysql> show variables like 'c%';

+--------------------------+----------------------------------------+

| Variable_name                      | Value                                                            |

+--------------------------+----------------------------------------+

| character_set_client             | euckr                                                            |

| character_set_connection    | euckr                                                            |

| character_set_database       | euckr                                                            |

| character_set_filesystem     | binary                                                            |

| character_set_results          | euckr                                                            |

| character_set_server           | euckr                                                            |

| character_set_system         | utf8                                                                |

| character_sets_dir               | /usr/local/mysql/share/mysql/charsets/     |

| collation_connection             | euckr_korean_ci                                           |

| collation_database               | euckr_korean_ci                                            |

| collation_server                   | euckr_korean_ci                                           |

| completion_type                  | 0                                                                   |

| concurrent_insert                | 1                                                                   |

| connect_timeout                  | 5                                                                   |

+--------------------------+----------------------------------------+

14 rows in set (0.00 sec)

mysql>



참고: SULinux 1.5 apmtools로 APM 설치 후 기본값

(SULinux는 euckr로 기본 설치됨)

mysql> show variables like 'c%';

+-------------------------+-------------------------------------------+

| Variable_name                    | Value                                                                  |

+-------------------------+-------------------------------------------+

| character_set_client           | euckr                                                                  |

| character_set_connection  | euckr                                                                  |

| character_set_database     | euckr                                                                  |

| character_set_results        | euckr                                                                  |

| character_set_server         | euckr                                                                 |

| character_set_system       | utf8                                                                     |

| character_sets_dir            | /usr/local/mysql_4.1.22/share/mysql/charsets/ |

| collation_connection          | euckr_korean_ci                                                  |

| collation_database            | euckr_korean_ci                                                  |

| collation_server                | euckr_korean_ci                                                  |

| concurrent_insert              | ON                                                                      |

| connect_timeout               | 5                                                                          |

+--------------------------+-----------------------------------------------+

12 rows in set (0.00 sec)

mysql>




출처 : http://www.digimoon.net/blog/304

top

Trackback Address :: http://www.ssial.com/trackback/8 관련글 쓰기

  1. Chanel Outlet 2011/09/17 21:43 댓글주소 | 수정/삭제 | 댓글

    Time is what you make of it.

  2. Burberry Bags 2011/10/13 17:03 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog! From time to time students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. Thanks.

  3. Burberry Bags 2011/10/13 17:03 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog! From time to time students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. Thanks.

  4. Coach Outlet Online 2011/11/15 12:44 댓글주소 | 수정/삭제 | 댓글

    It's very good!Thank you for sharing it!I like buying handbags of the internet website:http://www.mycoachoutletstoreonline.com

  5. gucci abbey 2012/02/12 12:23 댓글주소 | 수정/삭제 | 댓글

    The article is so beautiful, so I feel very good, thought I saw my favorite http://www.topbagsui.com/gucci-handbags-gucci-abbey-d-bags-c-157_161.html
    the same, thank you of you are very

Write a comment