일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- html5
- Spring Security
- oracle
- librecad
- 라즈베리파이
- 시작하기
- Unity
- mysql
- 예제
- 설정
- 설치
- 안드로이드
- s4a
- jobtoy
- 리브레캐드
- MSSQL
- 아두이노
- 잡토이 메이킹 코딩 학원
- 유니티
- 잡토이
- 톰캣
- 강좌
- 오라클
- 코딩
- Android
- 스크래치
- jsp
- 파주
- 운정
- tomcat
- Today
- Total
목록database/mysql (18)
랩제이
DROP procedure IF EXISTS `eword_get`; DELIMITER $$ CREATE PROCEDURE eword_get(word_count INT) BEGIN DECLARE n INT DEFAULT 0; DECLARE i INT DEFAULT 0; TRUNCATE TABLE eword800_temp; WHILE (i < word_count) DO select a.idx into n from eword800 a, (select FLOOR(RAND()*800 + 1) as idx ) b where a.use_flag = 'Y' and a.idx =b.idx; INSERT INTO eword800_temp (idx, word, meaning) select idx, word, meaning ..
http://www.koreaoug.org/dbms/2039 MySQL 사이트에서 Yum Repository 사용한 설치를 위해 아래 이름의 파일을 다운 받는다. down mysql57-community-release-el6-8.noarch.rpm [root@testora ~]# yum search mysql-communityLoaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfile * base: ftp.daumkakao.com * extras: ftp.daumkakao.com * updates: ftp.daumkakao.com===============================..
[mysql] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) 1. root 암호 설정 - 먼저 mysqld_safe로 접속 가능하게 한다./usr/bin/mysqld_safe --skip-grant-tables & - mysql에 접속한다.mysql -u root mysql - 암호 설정한다.mysql> update mysql.user SET authentication_string=PASSWORD('password!') WHERE user='root';Query OK, 1 row affected, 1 warning (0.00 sec)Rows matched: 1 Changed: 1 Warnings: 1 m..
[mysql] select procedure 만들기 DELIMITER $$drop procedure if exists ebizin4.USP_Interface_Member_GetEducationCourceByButton$$ CREATE PROCEDURE USP_Interface_Member_GetEducationCourceByButton(in code int)BEGINSELECT E_TRAINING_LIST_ID ,E_KIND_ID ,E_NM ,EX_DATE ,E_TIME ,E_PRICE ,E_RETURN_PRICE ,E_RETURN_ABLE ,E_COMPANY_NM ,ETC1 ,ETC2 ,REG_ID ,REG_DATE FROM e_training_list WHERE E_KIND_ID = code;END$..
[mysql] 문자를 datetime으로 변환하기 오라클의 date를 mysql의 datetime 형식에 컬럼에 넣으려고 합니다. 오라클에서 SELECT TO_CHAR(REGDATETIME, 'YYYY-MM-DD HH24:MI:SS') FROM POLL_ANSWER; mysql insert문에 str_to_date('2009-10-11 09:20:20','%Y-%m-%d %H:%i:%s') Insert into POLL_ANSWER (POLL_QUESTION_IDX,ANSWER,ORDER_NO,COUNT,REGUSERID,REGIP,REGDATETIME,LASTUSERID,LASTIP,LASTDATETIME,ISFREE,PRE_TYPE) values (725,'2',2,0,'Z0000002','127.0..
[mysql] centos 구버전 mysql 사용시 secure_auth 접속 오류 해결 1. old_passwords=1 추가하기 /etc/my.cnf 파일에 old_passwords=1 추가한다. 2. 암호 새로 설정하기이미 등록한 유저라면 set password for ~ 를 이용해서 localhost, % 로 설정해주면 된다. mysql> SET @@session.old_passwords = 0; Query OK, 0 rows affected (0.00 sec) mysql> SELECT @@session.old_passwords, @@global.old_passwords; +-------------------------+------------------------+ | @@session.old_p..
[mysql] root 암호 바꾸기, 외부 접근하기 mysql> mysql> use mysql; Database changed mysql> update user set password=password('!password') where user='root'; Query OK, 0 rows affected (0.00 sec) Rows matched: 3 Changed: 0 Warnings: 0 mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) mysql> grant all privileges on *.* to 'root'@'%' identified by '!password'; Query OK, 0 rows affected (0.00 sec) mys..