Microsoft MVP성태의 닷넷 이야기
개발 환경 구성: 124. .NET 개발자가 처음 해보는 PHP + MySQL 연동 [링크 복사], [링크+제목 복사]
조회: 25147
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 
(연관된 글이 5개 있습니다.)

.NET 개발자가 처음 해보는 PHP + MySQL 연동


PHP를 완벽하게 살펴본 것은 아니지만, C/C++ 개발자에게는 다가서기가 상당히 쉬운 언어군요. 문법 자체가 거의 비슷하기 때문에 시간을 별로 투자하지 않아도 쉽게 익힐 수 있으니, 다중 언어에 대한 호기심이 있는 C/C++ 개발자라면 자신감을 얻는 차원에서 ^^ 첫 언어를 PHP로 선택하는 것도 나쁘진 않을 것 같습니다.

일단 문법은 그렇다 치고, 나머지는 이제 부가적인 함수를 익혀야 하는 문제가 남았는데요. 사실, PHP가 웹 스크립트로 주로 쓰이다 보니 필연적으로 엮이게 되는 것이 바로 DB 연동입니다. DB 중에서도 PHP와 가장 많이 쓰여지는 것이 MySQL이고, 그래서 수많은 PHP 함수들을 제치고 단지 MySQL DB와 관련된 것들만 간단하게 테스트 해보았습니다.

이를 위해서 현재 (2011-06-02) 기준으로 5.1.57 버전의 MySQL을 아래의 사이트에 방문해서 다운로드했습니다.

MySQL 윈도우즈 설치 (Windows Install)
; http://breakpoint.tistory.com/50

다운로드할 수 있는 여러 링크가 제공되는 데, 제 경우에는 설치 버전보다는 단순히 압축된 파일 유형의 ZIP 파일을 내려받았습니다.

Windows (x86, 32-bit), ZIP Archive - mysql-noinstall-5.1.57-win32.zip
; http://dev.mysql.com/downloads/mysql/5.1.html

(참고로, mysql-5.1.57.zip 파일은 소스 코드임)

다음과 같이 d:\mysql 폴더에 압축을 풀고,

how_to_install_mysql_1.png

일단, 실행이 잘 되는지 먼저 테스트해 보았습니다.

C:\temp>cd /d d:\mysql\bin

d:\mysql\bin>mysqld --console
110602  0:28:31 [Note] Plugin 'FEDERATED' is disabled.
110602  0:28:31  InnoDB: Initializing buffer pool, size = 8.0M
110602  0:28:31  InnoDB: Completed initialization of buffer pool
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
110602  0:28:31  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
110602  0:28:32  InnoDB: Started; log sequence number 0 44233
110602  0:28:32 [Note] Event Scheduler: Loaded 0 events
110602  0:28:32 [Note] mysqld: ready for connections.
Version: '5.1.57-community'  socket: ''  port: 3306  MySQL Community Server (GPL)

종료는 콘솔 화면에서 "Ctrl + C" 키를 누르거나 별도의 콘솔 화면에서 다음과 같이 mysqladmin.exe를 실행해 주면 됩니다.

d:\mysql\bin>mysqladmin -u root shutdown

윈도우 환경에서는, 당연히 NT 서비스로 등록해 두어야 겠지요. ^^ 관리자 권한으로 명령행 창을 띄우고, 다음과 같이 입력해 줍니다.

D:\mysql\bin>mysqld --install
Service successfully installed.

D:\mysql\bin>net start mysql
The MySQL service is starting.
The MySQL service was started successfully.

/* 서비스 등록 해제는 "mysqld --remove" */

PHP 테스트까지 /htdocs/test2.php 파일을 만들어서 해보면,

<?php
echo "test is good!<br>";

mysql_connect("", "", "");
?>

웬일인지 다음과 같은 오류가 발생합니다.

test is good!

Fatal error: Call to undefined function mysql_connect() in D:\httpd_build\Apache22\htdocs\hello2.php on line 5

확인해 보니, 외부 PHP 함수들이 기본적으로 활성화되어 있지 않기 때문에, php.ini 파일을 이용해서 그에 대한 PHP 확장 모듈을 명시적으로 로드해야 한다고 합니다. 그래서 "D:\httpd_build\Apache22\bin\php.ini" 파일의 내용 중에서 다음과 같은 설정을 포함(또는 주석 해제)시켜줘야 합니다.

extension=php_mysql.dll

변경된 php.ini를 저장하고, 아파치를 재시작하면 정상적으로 mysql_connect 함수가 실행되는 것을 확인할 수 있습니다.




설치가 되었으니, 이제 기본적인 MySQL 사용법을 알아보겠습니다. 잠깐 뚝딱거리다 보니, Firebird가 생각나더군요.

.NET 프로그래머에게도 유용한 Firebird 무료 데이터베이스
; https://www.sysnet.pe.kr/2/0/1038

명령행으로 살펴보는 방법이 전체적으로 Firebird와 비슷한 면이 있습니다. 차이점이라면, isql.exe 대신 mysql.exe를 실행한다는 정도이고 그 외에 실행하는 명령어나 사용법이 비슷합니다. 프로그램 언어처럼, 'DB 사용법'도 하나를 익히면 다른 것을 익히는 것이 편하군요. ^^

계정 생성


설치 버전이 아닌 압축 파일을 해제해서 MySQL을 설치했으므로, 기본적으로 root 관리자 계정에는 암호가 할당되어 있지 않습니다. 따라서 mysql.exe를 다음과 같이 실행하면 root 계정으로 로그인이 가능하고 'show databases' 명령어를 이용해서 DB 목록 나열 및 'use' 명령어를 이용해서 DB 전환을 할 수 있습니다.

d:\mysql\bin>mysql -u root
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 16
Server version: 5.1.57-community MySQL Community Server (GPL)

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| test               |
+--------------------+
3 rows in set (0.00 sec)

mysql> use mysql;
Database changed

참고로, '-u root' 옵션 없이 mysql만 입력해서 들어가라고 설명하는 웹 자료를 볼 수 있는데 예전에는 가능했을지 모르지만 지금은 다음과 같은 식으로 오류 메시지가 발생합니다.

d:\mysql\bin>mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 17
Server version: 5.1.57-community MySQL Community Server (GPL)

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| test               |
+--------------------+
2 rows in set (0.00 sec)

mysql> use mysql;
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'

MySQL에서 계정 생성은 곧, 'mysql' DB의 user 테이블에 사용자 정보를 입력하는 것과 같습니다. 따라서 다음과 같은 명령어로 새로운 사용자를 추가할 수 있습니다.

mysql> insert into user(host, user, password) values ('localhost', 'mytest', password('mypassword'));
Query OK, 1 row affected, 3 warnings (0.01 sec)

mysql> select host, user, password from user;
+-----------+--------+-------------------------------------------+
| host      | user   | password                                  |
+-----------+--------+-------------------------------------------+
| localhost | root   |                                           |
| 127.0.0.1 | root   |                                           |
| localhost |        |                                           |
| localhost | mytest | *FABE5483D5AADF36D528AC443D117BE1181B9725 |
+-----------+--------+-------------------------------------------+
4 rows in set (0.00 sec)

그럼, 생성된 계정으로 로그인을 해볼까요?

d:\mysql\bin>mysql -umytest -pmypassword
ERROR 1045 (28000): Access denied for user 'mytest'@'localhost' (using password: YES)

오류가 나는군요. 왜냐하면 MySQL은 user와 db 테이블의 변경사항을 실행 중인 mysqld.exe 프로세스에 반영하기 위해서는 flush 명령어를 실행시켜줘야 하기 때문입니다. (또는 명령행에서 "mysqladmin.exe reload"라고 실행시키거나, MySQL NT 서비스를 재시작해도 됩니다.)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> quit;
Bye

d:\mysql\bin>mysql -umytest -pmypassword
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 31
Server version: 5.1.57-community MySQL Community Server (GPL)

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

새로운 데이터베이스 생성


사용자처럼 본래의 SQL 쿼리에서 정해지지 않은 관리적인 요소들은 mysql의 경우 철저하게 mysql DB에 정의되어 있는 테이블들과 연동하는 것 같습니다. 반면에 그 외에 일반적인 SQL 쿼리로 되는 것들은 다른 DB와 마찬가지로 그에 따른 DDL로 해결하고 있습니다. 그래서, 데이터베이스 생성 방법은 아래와 같이 일반적인 'Create Database' 구문으로 해결할 수 있습니다.

mysql> create database mytestdb;
Query OK, 1 row affected (0.01 sec)

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| mytestdb           |
| test               |
+--------------------+
4 rows in set (0.00 sec)

만약 데이터베이스를 삭제하고 싶다면 다음과 같이 drop database 명령어를 주면 됩니다.

mysql> drop database mytestdb;
Query OK, 1 row affected (0.01 sec)

데이터베이스에 사용자 권한 부여


다시, '사용자 권한'은 '관리 요소'에 해당하기 때문에, 위에서 언급했던 것처럼 mysql DB 내의 테이블에 값을 입력해 줘야 합니다. 즉, 특정 데이터베이스에 대해 사용자를 연관시키려면 mysql DB의 db 테이블에 항목을 추가하는 것으로 해결되는데, 아래는 db 테이블의 구조를 보여주고 있습니다.

mysql> use mysql;
Database changed
mysql> desc db;
+-----------------------+---------------+------+-----+---------+-------+
| Field                 | Type          | Null | Key | Default | Extra |
+-----------------------+---------------+------+-----+---------+-------+
| Host                  | char(60)      | NO   | PRI |         |       |
| Db                    | char(64)      | NO   | PRI |         |       |
| User                  | char(16)      | NO   | PRI |         |       |
| Select_priv           | enum('N','Y') | NO   |     | N       |       |
| Insert_priv           | enum('N','Y') | NO   |     | N       |       |
| Update_priv           | enum('N','Y') | NO   |     | N       |       |
| Delete_priv           | enum('N','Y') | NO   |     | N       |       |
| Create_priv           | enum('N','Y') | NO   |     | N       |       |
| Drop_priv             | enum('N','Y') | NO   |     | N       |       |
| Grant_priv            | enum('N','Y') | NO   |     | N       |       |
| References_priv       | enum('N','Y') | NO   |     | N       |       |
| Index_priv            | enum('N','Y') | NO   |     | N       |       |
| Alter_priv            | enum('N','Y') | NO   |     | N       |       |
| Create_tmp_table_priv | enum('N','Y') | NO   |     | N       |       |
| Lock_tables_priv      | enum('N','Y') | NO   |     | N       |       |
| Create_view_priv      | enum('N','Y') | NO   |     | N       |       |
| Show_view_priv        | enum('N','Y') | NO   |     | N       |       |
| Create_routine_priv   | enum('N','Y') | NO   |     | N       |       |
| Alter_routine_priv    | enum('N','Y') | NO   |     | N       |       |
| Execute_priv          | enum('N','Y') | NO   |     | N       |       |
| Event_priv            | enum('N','Y') | NO   |     | N       |       |
| Trigger_priv          | enum('N','Y') | NO   |     | N       |       |
+-----------------------+---------------+------+-----+---------+-------+
22 rows in set (0.00 sec)

우리가 생성한 mytestdb DB에 mytest라는 계정으로 모든 권한을 부여하고 싶다면 다음과 같이 명령어를 실행해 주어야 합니다. ('Y'가 무려 19개입니다. ^^;)

mysql> insert into db values ('localhost', 'mytestdb', 'mytest', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y');
Query OK, 1 row affected (0.00 sec)

(다시 한번 설명드리면, 위의 명령어를 실행함으로써 db 테이블에 변경이 되었는데, 이를 현재 실행 중인 mysqld.exe에 반영하려면 flush 명령어를 사용해야합니다.)

데이터베이스에 테이블 생성


테이블 생성은 일반적인 DDL 구문과 비슷합니다. 단지 MySQL에 관련된 타입만 적절하게 주의해서 맞춰주시면 되는데, 제 경우에는 다음과 같이 아주 간단한 구조의 테이블을 예제로 생성해 보았습니다.

d:\mysql\bin>mysql -umytest -pmypassword mytestdb
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.1.57-community MySQL Community Server (GPL)

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create table mytable( id int NOT NULL, name varchar(50), age int, description varchar (150));
Query OK, 0 rows affected (0.05 sec)

mysql> show tables;
+--------------------+
| Tables_in_mytestdb |
+--------------------+
| mytable            |
+--------------------+

mysql> desc mytable;
+-------------+--------------+------+-----+---------+-------+
| Field       | Type         | Null | Key | Default | Extra |
+-------------+--------------+------+-----+---------+-------+
| id          | int(11)      | NO   |     | NULL    |       |
| name        | varchar(50)  | YES  |     | NULL    |       |
| age         | int(11)      | YES  |     | NULL    |       |
| description | varchar(150) | YES  |     | NULL    |       |
+-------------+--------------+------+-----+---------+-------+
4 rows in set (0.00 sec)

테이블 삭제는 "drop table" 명령어를 이용합니다.

mysql> drop table mytable;
Query OK, 0 rows affected (0.05 sec)

명령어를 담은 외부 파일 실행


Firebird의 경우, isql.exe 실행 시 "-i" 옵션을 통해서 SQL 명령어를 담고 있는 외부 파일을 지정할 수 있었는데, MySQL의 경우에는 mysql.exe에서의 직접적인 옵션 제공은 없고 DOS의 파이프라인 설계를 따릅니다.

==== myquery.txt ====
create table yourtable (name varchar(50), description varchar(150));

d:\mysql\bin>mysql -umytest -pmypassword mytestdb < myquery.txt

d:\mysql\bin>

가타부타 얘기도 없이 끝나는군요. ^^;




테스트 DB 설정이 마무리 되었으니 간단하게 PHP에서 MySQL에 접근하는 스크립트 예제를 만들어서 확인하면 끝!

<?php

echo ("<br /><br />========================================================<br />");
echo ("mysql_connect - start<br />");
$connection = mysql_connect("localhost", "mytest", "mypassword") 
                or die("cannot connect");
echo ("mysql_connect - end<br /><br />");

mysql_select_db("mytestdb", $connection);

// Create
$query = "insert into mytable values (1, 'tester', 20, 'desc test')";
echo ("mysql_query - start<br />");
mysql_query($query, $connection);
echo ("mysql_query - end<br /><br />");
$query = "insert into mytable values (2, 'tester2', 40, 'desc test2')";
mysql_query($query, $connection);

// Retrieve
$query = "select * from mytable";
$result = mysql_query($query, $connection);
$total_results = mysql_num_rows($result);
echo ("# of rows == {$total_results}<br />");
$total_fields = mysql_num_fields($result);
echo ("# of fields == {$total_fields}<br />");

echo ("mysql_fetch_row - start<br />");
while ( $row = mysql_fetch_row($result) )
{
    echo ("Name = $row[1]<br />");
}
echo ("mysql_fetch_row - end<br /><br />");

// Update
$query = "update mytable set name = 'tester1' where name = 'tester'";
mysql_query($query, $connection);

// Delete
$query = "delete from mytable where name = 'tester2'";
mysql_query($query, $connection);

echo ("mysql_close(arg) - start<br />");
mysql_close($connection);
echo ("mysql_close(arg) - end<br /><br />");

echo ("<br /><br />========================================================<br />");

$connection = mysql_connect("localhost", "root", "") 
                or die("cannot connect");

/*
### deprecated: mysql_create_db / mysql_drop_db
$dbname = mysql_create_db("firstdb", $connection);
mysql_drop_db("firstdb", $connection);
*/

echo ("mysql_select_db - start<br />");
mysql_select_db("mytestdb", $connection);
echo ("mysql_select_db - end<br /><br />");

$query = "select * from mytable";
$result = mysql_query($query, $connection);

echo ("mysql_fetch_array - start<br />");
while ( $row = mysql_fetch_array($result) )
{
    echo ("Name = $row[name]<br />");
}
echo ("mysql_fetch_array - end<br /><br />");

$query = "select * from mytable";
$result = mysql_query($query, $connection);
$total_results = mysql_num_rows($result);

echo ("# of rows == {$total_results}<br />");
echo ("mysql_result - start<br />");
for ($i = 0; $i < $total_results; $i ++)
{
    $fieldValue = mysql_result($result, $i, 1);
    echo ("Name = {$fieldValue}<br />");
}
echo ("mysql_result - end<br /><br />");

$query = "delete from mytable";
mysql_query($query, $connection);

echo ("mysql_close() - start<br />");
mysql_close();
echo ("mysql_close() - end<br /><br />");
?>




최근에 zip 파일로 다운로드해 mysqld --console을 실행시켰더니 다음과 같은 오류가 발생합니다.

2021-07-10T07:52:10.046447Z 0 [System] [MY-010116] [Server] D:\mysql-8.0.25-winx64\bin\mysqld.exe (mysqld 8.0.25) starting as process 12072
2021-07-10T07:52:10.049140Z 0 [Warning] [MY-010091] [Server] Can't create test file D:\mysql-8.0.25-winx64\data\mysqld_tmp_file_case_insensitive_test.lower-test
2021-07-10T07:52:10.049263Z 0 [Warning] [MY-010091] [Server] Can't create test file D:\mysql-8.0.25-winx64\data\mysqld_tmp_file_case_insensitive_test.lower-test
2021-07-10T07:52:10.049460Z 0 [ERROR] [MY-013276] [Server] Failed to set datadir to 'D:\mysql-8.0.25-winx64\data\' (OS errno: 2 - No such file or directory)
2021-07-10T07:52:10.051193Z 0 [ERROR] [MY-010119] [Server] Aborting
2021-07-10T07:52:10.051380Z 0 [System] [MY-010910] [Server] D:\mysql-8.0.25-winx64\bin\mysqld.exe: Shutdown complete (mysqld 8.0.25)  MySQL
Community Server - GPL.

검색해 보면, --initialize를 먼저 실행해 주면 된다고 합니다. ^^

D:\mysql\bin> mysqld --initialize

그럼 오류에서 봤던 data 디렉터리가 (제법 시간이 걸려) 초기화되고 프로그램이 종료합니다. 이후 다시 mysqld --console로 실행하면 정상적으로 동작하는 것을 확인할 수 있습니다. 또한, root 계정으로 처음 접근하는 것도 거부당합니다.

D:\mysql\bin> mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

5.7+ 버전부터 root 계정의 암호를 지정해야만 한다고 합니다. 그래서 다음과 같이 실행시켜 mysqld를 띄운 후,

D:\mysql\bin> start mysqld --skip-grant-tables --shared-memory

"mysql -u root" 명령어로 들어가 암호를 설정합니다.

mysql> flush privileges;
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password';

// 또한 root 계정 이외의 사용자도 생성해 주고,
mysql> CREATE USER 'testusr' IDENTIFIED BY 'new_passsword2';

// testusr의 mytestdb에 대한 권한도 주고,
mysql> GRANT ALL PRIVILEGES ON mytestdb.* TO 'testusr';

// 테이블도 만듭니다.
mysql> CREATE TABLE customer (id char(10) NOT NULL, name char(20) NOT NULL, tel char(15) NOT NULL, age int DEFAULT NULL, grade char(10) NOT NULL,PRIMARY KEY (id));

본문에서 실행한 mysql_connect 등의 API가 아닌, mysqli를 사용하는 경우에는 이런 오류가 발생합니다.

Fatal error: Uncaught Error: Class "mysqli" not found in D:\...\htdocs\test.php:10 Stack trace: #0 {main} thrown in D:\...\htdocs\test.php on line 10

/*
<?php
    require_once '[...생략]...].php';

    if (!function_exists('mysqli_init') && !extension_loaded('mysqli')) {
        echo 'We don\'t have mysqli!!!';
        return;
    } else {
        echo 'Phew we have it!';
    }

    $connect = new mysqli($db_hostname, $db_username, $db_password, $db_database);

    if ($connect->connect_error)
        die("Unable to connect MYSQL" );

    $sql = "insert into customer (...[생략]...)";
    $sql .= " values (...[생략]...)";

    $result = $connect->query($sql);

    if ($result)
        echo "성공";
    else
        echo "실패";

    $result = $connect->query("select * from customer");
    $rows = mysqli_num_rows($result);

    for ($i = 0; $i < $rows; $i ++)
    {
        $row = mysqli_fetch_row($result);
        echo "...: " . $row[0] . "<br />";
        // ...[생략]...
    }

    $connect->close();
?>
*/

기본적으로 mysqli는 윈도우의 경우 php 설치 디렉터리의 하위 ext에 있는데, 따라서 php.ini 파일에 다음과 같은 내용을 추가해야 합니다.

// apache 설치 경로: d:\temp\apache24
// php 설치 경로: d:\temp\apache24\php_module

extension=D:\temp\Apache24\php_module\ext\php_mysqli.dll




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]

[연관 글]






[최초 등록일: ]
[최종 수정일: 8/7/2021]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 



2011-06-05 03시48분
[sam] 꾸준한 포스팅 멋져요~
[guest]
2011-06-06 06시44분
^^ 꾸준히 공부할 것이 나와서.
정성태

... [16]  17  18  19  20  21  22  23  24  25  26  27  28  29  30  ...
NoWriterDateCnt.TitleFile(s)
13230정성태1/26/20234103개발 환경 구성: 660. WSL 2 내부로부터 호스트 측의 네트워크로 UDP 데이터가 1개의 패킷으로만 제한되는 문제
13229정성태1/25/20235096.NET Framework: 2090. C# - UDP Datagram의 최대 크기
13228정성태1/24/20235220.NET Framework: 2089. C# - WMI 논리 디스크가 속한 물리 디스크의 정보를 얻는 방법 [2]파일 다운로드1
13227정성태1/23/20234921개발 환경 구성: 659. Windows - IP MTU 값을 바꿀 수 있을까요? [1]
13226정성태1/23/20234591.NET Framework: 2088. .NET 5부터 지원하는 GetRawSocketOption 사용 시 주의할 점
13225정성태1/21/20233845개발 환경 구성: 658. Windows에서 실행 중인 소켓 서버를 다른 PC 또는 WSL에서 접속할 수 없는 경우
13224정성태1/21/20234201Windows: 221. Windows - Private/Public/Domain이 아닌 네트워크 어댑터 단위로 방화벽을 on/off하는 방법
13223정성태1/20/20234404오류 유형: 838. RDP 연결 오류 - The two computers couldn't connect in the amount of time allotted
13222정성태1/20/20234086개발 환경 구성: 657. WSL - DockerDesktop.vhdx 파일 위치를 옮기는 방법
13221정성태1/19/20234311Linux: 57. C# - 리눅스 프로세스 메모리 정보파일 다운로드1
13220정성태1/19/20234431오류 유형: 837. NETSDK1045 The current .NET SDK does not support targeting .NET ...
13219정성태1/18/20234000Windows: 220. 네트워크의 인터넷 접속 가능 여부에 대한 판단 기준
13218정성태1/17/20233938VS.NET IDE: 178. Visual Studio 17.5 (Preview 2) - 포트 터널링을 이용한 웹 응용 프로그램의 외부 접근 허용
13217정성태1/13/20234518디버깅 기술: 185. windbg - 64비트 운영체제에서 작업 관리자로 뜬 32비트 프로세스의 덤프를 sos로 디버깅하는 방법
13216정성태1/12/20234770디버깅 기술: 184. windbg - 32비트 프로세스의 메모리 덤프인 경우 !peb 명령어로 나타나지 않는 환경 변수
13215정성태1/11/20236333Linux: 56. 리눅스 - /proc/pid/stat 정보를 이용해 프로세스의 CPU 사용량 구하는 방법 [1]
13214정성태1/10/20235877.NET Framework: 2087. .NET 6부터 SourceGenerator와 통합된 System.Text.Json [1]파일 다운로드1
13213정성태1/9/20235416오류 유형: 836. docker 이미지 빌드 시 "RUN apt install ..." 명령어가 실패하는 이유
13212정성태1/8/20235163기타: 85. 단정도/배정도 부동 소수점의 정밀도(Precision)에 따른 형변환 손실
13211정성태1/6/20235190웹: 42. (https가 아닌) http 다운로드를 막는 웹 브라우저
13210정성태1/5/20234286Windows: 219. 윈도우 x64의 경우 0x00000000`7ffe0000 아래의 주소는 왜 사용하지 않을까요?
13209정성태1/4/20234186Windows: 218. 왜 윈도우에서 가상 메모리 공간은 64KB 정렬이 된 걸까요?
13208정성태1/3/20234147.NET Framework: 2086. C# - Windows 운영체제의 2MB Large 페이지 크기 할당 방법파일 다운로드1
13207정성태12/26/20224440.NET Framework: 2085. C# - gpedit.msc의 "User Rights Assignment" 특권을 코드로 설정/해제하는 방법파일 다운로드1
13206정성태12/24/20224677.NET Framework: 2084. C# - GetTokenInformation으로 사용자 SID(Security identifiers) 구하는 방법 [3]파일 다운로드1
13205정성태12/24/20224983.NET Framework: 2083. C# - C++과의 연동을 위한 구조체의 fixed 배열 필드 사용 (2)파일 다운로드1
... [16]  17  18  19  20  21  22  23  24  25  26  27  28  29  30  ...