MySQL은 산넘어 산이다. SQLite는 그냥 되는것도 MySQL은 뭔가 안된다. 이번에는 이런 에러가 나온다. "Data too long for column 'content' at row 1 " 아 뭐지?? 아래와 같이 처리했다. select @@global.sql_mode;그리고 STRICT_TRANS_TABLES, NO_ENGINE_SUBSTITUION 뭔가 제한한다.. 없애주면 된다. 없애는 방법은 간단하다. set global sql_mode = '' ;그리고 다시 검색해본다. select @@global.sql_mode; 여기서 주의할점 global 옆에 붙는 .(점)이다. 삭제할때는 없고, 검색할때는 있다. 처음에 왜 안되지 왜 안되지 ?? 저런.. c8 c8 내가 이전에 고생했던 blob..
BLOB 용량 사이즈 바꾸기 TINYBLOBA binary large object column with a maximum length of 255 (2^8 - 1) characters.BLOBA binary large object column with a maximum length of 65535 (2^16 - 1) characters.MEDIUMBLOBA binary large object column with a maximum length of 16777215 (2^24 - 1) characters.LONGBLOBA binary large object column with a maximum length of 4294967295 (2^32 - 1) characters. 그런데 내가 사용하는 Mysql ..
Packets larger than max_allowed_packet are not allowed Packets larger than "max_allowed_packet" are not allowed쿼리 길이가 최대 길이 제한보다 큰 조건에서 MySql.Data.DLL에 의해 발생하는 예외 메시지 (오류) 중 하나입니다. 이 SQL 쿼리를 예로 들어 보겠습니다.SELECT * FROM member;쿼리의 길이가 매우 길어지는 경우가 있습니다. 예를 들어, LONGBLOB 또는 LONGTEXT를 삽입하거나 여러 INSERT를 결합합니다. 예 : INSERT INTO member(code,name,age) values ('A1','John',30),('B1','Smith',32),('C1','Adam',31..
MySQL 8.0 패스워드 변경 방법 인터넷에서 보고 수없이 따라했지요. SET PASSWORD FOR 'root'@'localhost' = PASSWORD("TOOR");안돼요. update user set password=PASSWORD("TOOR") where User='root';안돼요.update user set authentication_string =PASSWORD("TOOR") where User='root';안돼요. ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ..
MySQL/MariaDB 계정 생성 MySQL 계정 생성 CREATE USER '아이디'@'접속대역' IDENTIFIED BY '패스워드'; MariaDB [(none)]> CREATE USER 'rootuser'@'%' IDENTIFIED BY 'P@ssw0rd'; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> GRANT ALL PRIVILEGES ON *.* TO 'rootuser'@'%' WITH GRANT OPTION; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> SELECT Host, User, Super_priv FROM mysql.user WHERE User='rootuser' AND H..
MySQL 윈도우10에 설치부터 기본사용법 예제 1. MySQL 설치방법 -> mysql download보다는 mysql download installer로 검색. 2. MySQL 데이터베이스에서 스키마와 테이블 만들기 3. mysql 테이블 insert 4. mysql select query 5. mysql where query 6. mysql and, or query 7. mysql order by query 8. mysql update query 9. mysql delete query 10 mysql sum합계, avg평균, max최대값, min최소값, count갯수 mysql 설치부터 기본사용법까지 알아봤습니다. mysql초보 탈출하기 1보 전진
C# string IndexOf How to locate a specific character 특정문자의 위치를 찾는 방법 C# 에서 특정문자의 위치를 찾는 방법을 따라해보겠습니다. 1. 프로젝트를 만듭니다. windows form 앱 2. ui를 만듭니다. 도구상자에서 텍스트박스3개, 버튼1개를 드래그 앤 드롭해줍니다. 3. 코딩합니다. 문자열에서 특정문자의 위치를 알아내는 것은 IndexOf입니다. text = string.IndexOf('a'); 이런식으로 코딩하면 됩니다. 4. 실행해서 확인합니다. 순서는 0부터 시작합니다. 그래서 c는 위치가 2입니다. 만약에 문자열에 존재하지 않은 문자를 입력하면 -1이 나옵니다. 5. 동영상보고 따라하기 및 확인합니다 6. 좋아요와 광고클릭한번만 해주세요. ..
c# string split example 문자열에서 특정 문자를 기준으로 문자열을 분리해서 출력하는 예제 1. Windows Forms 앱을 선택. 2. UI 만들어준다. 텍스트박스 3개 버튼 1개를 도구상자에서 드래그앤드롭. 3. 코딩하기 예제 문자열 생성: string text = "abcd-efg";예제 문자열을 그대로 출력할 텍스트박스 textBox1.Text = text ; 분리할 문자 설정 char sp = '-'; 분리된 문자를 배열에 저장함 : string[] spstring =text.split(sp);그리곡 각각의 텍스트박스에 출력함. 만약 분리된 문자열의 갯수를 알고 싶다면 spstring.Length를 이용하면 됨. 4. 동영상 보고 따라하기 및 확인하기. https://youtu..
C# 텍스트박스에서 텍스트 중앙에 정렬하는 코드 textBox1.TextAlign = HorizontalAlignment.Center; public void CreateMyPasswordTextBox() { // Create an instance of the TextBox control. TextBox textBox1 = new TextBox(); // Set the maximum length of text in the control to eight. textBox1.MaxLength = 8; // Assign the asterisk to be the password character. textBox1.PasswordChar = '*'; // Change all text entered to be lowe..