Mssql 테이블 복사 쿼리 문구
Mssql 테이블 복사 쿼리 문구 간단하지만 유용한 테이블 복사 쿼리문 [mssql 테이블 복사 쿼리 문구] select * into [생성될 테이블명] from [원본테이블명] (설명: 기본 모든 […]
Mssql 테이블 복사 쿼리 문구 간단하지만 유용한 테이블 복사 쿼리문 [mssql 테이블 복사 쿼리 문구] select * into [생성될 테이블명] from [원본테이블명] (설명: 기본 모든 […]
오랜만에 구글 애널리틱스에 들어 가서 사이트 하나 추가 하려 했는데. 너무 어렵다. 프로그래머인 나도 어려운데 보통 사람은 어찌 할고. 2시간 하다가 포기, 시간 없어서 다음 […]
한컬럼은 Null 이 없고, 다름 컬럼이 데이타이 NULL 값이 있는 경우, 속성이 같은 두 컬럼을 기준으로 정렬: COALESCE
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
SELECT TOP 1000 [idx] ,[name] ,[email] ,[homepage] ,[title] ,[num] ,[Regi_Date] ,[Modi_Date] FROM MBoard order by COALESCE([Modi_Date], Regi_Date) DESC |
Ubuntu 20.04.1 로 업데이이트 다음 명령어 단계에서 진행 되지 않으면 업데이트 후 진행 합니다.
|
1 2 3 |
do-release-upgrade |
|
1 2 3 4 |
Checking for a new Ubuntu release Please install all available updates for your release before upgrading. |
Ubuntu 20.04.1
|
1 2 3 |
sudo apt-get update |
|
1 2 3 |
sudo apt-get upgrade -y |
|
1 2 3 |
sudo apt-get dist-upgrade |
|
1 2 3 |
sudo do-release-upgrade |
Y 로 […]
참조 : https://m.blog.naver.com/PostView.nhn?blogId=tjrwjd3535&logNo=220750241376&proxyReferer=https:%2F%2Fwww.google.com%2F /디렉토리 감추기
vb6 에서 마우스 휠과 호환이 안되는 문제가 있어 컴포넌트를 설치하면 해결 됩니다. 다운로드 : vb60_mouserwheel 1. 다운 받아 압축을 풀고 파일중 VB6IDEMouseWheelAddin.dll을 C:\Windows\System32에 복사합니다. 2 […]
sudo apt update sudo apt install mysql-server sudo mysql_secure_installation
|
1 2 3 4 5 |
sudo apt update sudo apt install mysql-server sudo mysql_secure_installation |
sudo mysql_secure_installation
|
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
root@localhost:/etc/apache2# sudo mysql_secure_installation Securing the MySQL server deployment. Connecting to MySQL using a blank password. VALIDATE PASSWORD PLUGIN can be used to test passwords and improve security. It checks the strength of password and allows the users to set only those passwords which are secure enough. Would you like to setup VALIDATE PASSWORD plugin? Press y|Y for Yes, any other key for No: y There are three levels of password validation policy: LOW Length >= 8 MEDIUM Length >= 8, numeric, mixed case, and special characters STRONG Length >= 8, numeric, mixed case, special characters and dictionary file Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 0 Please set the password for root here. New password: Re-enter new password: Estimated strength of the password: 50 Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? (Press y|Y for Yes, any other key for No) : y Success. Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? (Press y|Y for Yes, any other key for No) : n ... skipping. By default, MySQL comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y - Dropping test database... Success. - Removing privileges on test database... Success. Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? (Press y|Y for Yes, any other key for No) : n ... skipping. All done! |
Check authentication method for MySQL users host 가 % 일경우 #주석처리 #bind-address=127.0.0.0 […]
간단하게 현재 사용중인 우분투의 버전을 확인 lsb_release -a
|
1 2 3 4 5 6 7 8 |
root@localhost:/etc/apache2# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic |
cat /etc/*release
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
root@localhost:/etc/apache2# cat /etc/*release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS" NAME="Ubuntu" VERSION="18.04.1 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.1 LTS" VERSION_ID="18.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic |
설치된 리눅스(우분투)가 32비트인지 64비트인지 확인 uname -m
|
1 2 3 4 |
root@locahost:/etc/apache2# uname -m x86_64 |
ubuntu html, php 확장자가 사용 가능하도록 변경 sudo vi /etc/apache2/mods-enabled/mime.conf 파일에서 AddType application/x-bzip2 .bz2 밑에 AddType application/x-httpd-php .php .jsp .html .htm 등록 아파치 재시작 참조 […]
notepad++ 바꾸기 기능중 정규식을 이용하면 같은 디렉토리에 있는 파일내용 상단에 문자을 쉽게 추가 할수 있습니다. nodepad ++ 다운받기 설명
|
1 2 3 |
정규식 : \A^.*? |
|
1 2 3 |
<!-- 위에 문자 추가해 보기 --> |
변경 후
|
1 2 3 4 |
<!-- 문자 추가2 --> <!-- 문자 추가해 보기 --> |
apache 가 정상적으로 응답하지 않는 현상도 발생
|
1 2 3 4 5 6 7 |
::1 - - [26/Mar/2020:16:10:30 +0900] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g (internal dummy connection)" ::1 - - [26/Mar/2020:16:10:31 +0900] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g (internal dummy connection)" ::1 - - [26/Mar/2020:16:10:32 +0900] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g (internal dummy connection)" ::1 - - [26/Mar/2020:16:10:33 +0900] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g (internal dummy connection)" ::1 - - [26/Mar/2020:16:10:35 +0900] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g (internal dummy connection)" |
해결책 : /etc/apache2/apache2.conf
|
1 2 3 4 5 |
SetEnvIf Remote_Addr "::1" loopback SetEnvIf Remote_Addr "127\.0\.0\.1" loopback CustomLog ${APACHE_LOG_DIR}/access_log combined env=!loopback |
참조 : https://cwiki.apache.org/confluence/display/HTTPD/InternalDummyConnection https://allthatlinux.com/dokuwiki/doku.php?id=access_log%EC%97%90_options_http_1.0_%EA%B0%80_%EA%B8%B0%EB%A1%9D%EB%90%98%EB%8A%94_%EC%9D%B4%EC%9C%A0
Remark : Adobe Acrobat/Reader에 문제가 있습니다. 실행 중이라면 종료하고 다시 시도하십시오.(103:103) This error can be fixed by disabling the Adobe Reader’s “Enable Protected Mode at […]
|
1 2 3 4 5 |
sudo add-apt-repository ppa:ondrej/php sudo apt update sudo apt install php7.3 |
php7.3 will be updated automatically when updates become available. Alternatively you can build php7.3 from source in Ubuntu 18.04, but it will not be […]
|
1 2 3 |
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-amd64/by-hash/SHA256/86d06dec5cec67943ee6e7c12ecb473588920e74747b6126d12fbf679ccfb18a Hash Sum mismatch |
|
1 2 3 4 |
sudo rm -rf /var/lib/apt/lists/* sudo apt-get update |
참조 : https://askubuntu.com/questions/41605/trouble-downloading-packages-list-due-to-a-hash-sum-mismatch-error
CenOS에 MariaDB 설치 후 remote 열기
|
1 2 3 4 5 |
cd /etc/my.cnf.d # ls client.cnf enable_encryption.preset mysql-clients.cnf server.cnf tokudb.cnf |
|
1 2 3 4 5 6 |
#sudo vi /etc/mysql/mariadb.conf.d/50-server.cnf bind-address=0.0.0.0 |
3306 포트 열기
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
[root@localhost my.cnf.d]# cat /etc/sysconfig/iptables # sample configuration for iptables service # you can edit this manually or use system-config-firewall # please do not ask us to add additional ports/services to this default configuration *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT |
ubuntu ufw root 계정 리모트(%) 가능 으로 변경 (10.5 이하에서만 가능) MariaDB 10.5 […]
|
1 2 3 |
yum install psmisc |
|
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
[root@localhost CoreTest]# yum install psmisc Loaded plugins: fastestmirror Determining fastest mirrors epel/x86_64/metalink | 5.6 kB * base: data.aonenetworks.kr * epel: mirrors.yun-idc.com * extras: data.aonenetworks.kr * updates: ftp-srv2.kddilabs.jp * webtatic: us-east.repo.webtatic.com base | 3.6 kB epel | 5.3 kB extras | 2.9 kB mariadb | 2.9 kB packages-microsoft-com-prod | 2.9 kB updates | 2.9 kB webtatic | 3.6 kB (1/7): extras/7/x86_64/primary_db | 159 kB (2/7): epel/x86_64/updateinfo | 1.0 MB epel/x86_64/primary_db FAILED https://mirrors.thzhost.com/epel/7/x86_64/repodata/1037dd5827f24f5fd5e12fb11504be3d944cf70be264e6f882c2c-primary.sqlite.bz2: [Errno 14] HT04 - Not Found Trying other mirror. To address this issue please refer to the below wiki article https://wiki.centos.org/yum-errors If above article doesn't help to resolve this issue please use https:os.org/. (3/7): mariadb/primary_db | 49 kB (4/7): epel/x86_64/primary_db | 6.9 MB (5/7): packages-microsoft-com-prod/primary_db | 10 MB (6/7): webtatic/x86_64/primary_db | 248 kB (7/7): updates/7/x86_64/primary_db | 6.7 MB Resolving Dependencies --> Running transaction check ---> Package psmisc.x86_64 0:22.20-16.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ===================================================================== Package Arch Version Repository ===================================================================== Installing: psmisc x86_64 22.20-16.el7 base Transaction Summary ===================================================================== Install 1 Package Total download size: 141 k Installed size: 475 k Is this ok [y/d/N]: y Downloading packages: psmisc-22.20-16.el7.x86_64.rpm | 141 kB Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : psmisc-22.20-16.el7.x86_64 Verifying : psmisc-22.20-16.el7.x86_64 Installed: psmisc.x86_64 0:22.20-16.el7 Complete! |
SVG란? 스케일러블 벡터 그래픽스(Scalable Vector Graphics, SVG)는 2차원 벡터 그래픽을 표현하기 위한 XML 기반의 파일 형식으로, 1999년 W3C(World Wide Web Consortium)의 주도하에 개발된 오픈 표준의 […]
Code Signing Certificates Indicate trust and authentication by digitally signing your software, code, applications and boost the confidence of users that the software they are […]
익스플로로는 설정을 하더라도 마지막에 저장된 경로로 자동 저장 됩니다. 도구->다운로드 보기 하단 옵션을 선택 합니다. 찾아보기로 경로를 선택하고 확인버튼을 누릅니다.
mssql 최근버전은 아래 형식이 좋습니다.
|
1 2 3 4 5 6 7 8 |
select Format(SYSDATETIME(),'yyy-MM-dd') as dd select Format(SYSDATETIME(),'HH:mm') as dd => 2019-12-09 => 14:12 |
mssql 기본값 또는 바인딩 varchar(20) 에 날짜(yyyy-MM-dd HH:mm:ss) 로 지정하기 => smalldatetime 으로 하는게 정석이나 기존 데이타 형식에 따라 […]
Copyright © 2025 | WordPress Theme by MH Themes