• 구름많음동두천 9.6℃
  • 맑음강릉 13.3℃
  • 구름많음서울 11.1℃
  • 구름많음대전 10.0℃
  • 흐림대구 10.5℃
  • 울산 12.5℃
  • 구름많음광주 12.3℃
  • 흐림부산 12.9℃
  • 구름많음고창 11.0℃
  • 제주 13.1℃
  • 구름많음강화 12.0℃
  • 구름많음보은 6.9℃
  • 구름많음금산 7.1℃
  • 흐림강진군 11.0℃
  • 흐림경주시 10.9℃
  • 흐림거제 11.9℃
기상청 제공

mysql에서 fonction 생성과 관련된 옵션

// mysql root password 등록


[root@linux mysql]# mysql -u root -p mysql
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 1 to server version: 4.0.23-Max

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


mysql> update user set password=password('비밀번호입력') where user='root';
Query OK, 2 rows affected (0.00 sec)
Rows matched: 2  Changed: 2  Warnings: 0


mysql> flush privileges;  <==  mysql 재시동
Query OK, 0 rows affected (0.00 sec)


mysql> quit


// 접속 확인하기

[root@linux mysql]# mysql -u root -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 4 to server version: 4.0.23-Max

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