1. MySQL 설치
packeg version이 있어서 다운로드하면 됨..
If you have installed the Startup Item, use this command:
shell> sudo /Library/StartupItems/MySQLCOM/MySQLCOM start (ENTER YOUR PASSWORD, IF NECESSARY) (PRESS CONTROL-D OR ENTER "EXIT" TO EXIT THE SHELL)
shell> sudo /Library/StartupItems/MySQLCOM/MySQLCOM start (ENTER YOUR PASSWORD, IF NECESSARY) (PRESS CONTROL-D OR ENTER "EXIT" TO EXIT THE SHELL)
If you don't use the Startup Item, enter the following command sequence:
shell> cd /usr/local/mysql shell> sudo ./bin/mysqld_safe (ENTER YOUR PASSWORD, IF NECESSARY) (PRESS CONTROL-Z) shell> bg (PRESS CONTROL-D OR ENTER "EXIT" TO EXIT THE SHELL)
You should be able to connect to the MySQL server, for example, byrunning `/usr/local/mysql/bin/mysql'.
shell> cd /usr/local/mysql shell> sudo ./bin/mysqld_safe (ENTER YOUR PASSWORD, IF NECESSARY) (PRESS CONTROL-Z) shell> bg (PRESS CONTROL-D OR ENTER "EXIT" TO EXIT THE SHELL)
You should be able to connect to the MySQL server, for example, byrunning `/usr/local/mysql/bin/mysql'.
or, if you setting PATH in the .bash_profile, you should be able to connect to the MySQL
(ex. export PATH=${PATH}:/usr/local/mysql/bin)and then, you can connect to the MySQL writting mysql in the terminal
MYSQL.prefPane (서버를 실행하거나 중지하는 프로그램) 설치
: 설치 후 시스템환경설정에서 MySQL 아이콘을 눌러서 서버를 시작한다.
시작 : terminal에서 mysql 적고 엔터
빠져나오기 : mysql>QUIT or ctrl-D
하지만 terminal에서 db 제어는 힘드니까
하지만 terminal에서 db 제어는 힘드니까
2. MySQL TOOL을 다운받는다.
MySQL Query Browser 실행
username 으로 root를 넣는다.(아래 mysqlaccess.conf 파일 내용 참조)
MySQL Query Browser 실행
username 으로 root를 넣는다.(아래 mysqlaccess.conf 파일 내용 참조)
# ----------------## Global settings ## ---------------
# #$Param{'host'} = '';
$Param{'user'} = 'nobody';
$Param{'db'} = 'test';
$Param{'password'} = 'foobar';
$Param{'debug'} = 0;
# --------------------------## Settings for Command-line ## -------------------------
$Param{'user'} = 'nobody';
$Param{'db'} = 'test';
$Param{'password'} = 'foobar';
$Param{'debug'} = 0;
# --------------------------## Settings for Command-line ## -------------------------
#if ($CMD) { $Param{'superuser'} = 'root';
$Param{'rhost'} = 'localhost';
$Param{'spassword'} = '';
$Param{'brief'} = 1;}
# ---------------------## Settings for CGI-BIN ## --------------------
# ---------------------## Settings for CGI-BIN ## --------------------
#if ($CGI) { $Param{'superuser'} = 'root';
$Param{'rhost'} = 'localhost';
$Param{'spassword'} = '';
$Param{'table'} = 1;}
1; #to make require happy
1; #to make require happy

댓글 없음:
댓글 쓰기