• -동두천 4.3℃
  • -강릉 4.1℃
  • 구름많음서울 3.7℃
  • 맑음대전 3.9℃
  • 맑음대구 5.5℃
  • 맑음울산 6.3℃
  • 맑음광주 5.7℃
  • 맑음부산 5.8℃
  • -고창 4.7℃
  • 맑음제주 7.3℃
  • -강화 3.6℃
  • -보은 3.0℃
  • -금산 2.4℃
  • -강진군 7.1℃
  • -경주시 5.4℃
  • -거제 4.8℃
기상청 제공

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.