Microsoft MVP성태의 닷넷 이야기
개발 환경 구성: 124. .NET 개발자가 처음 해보는 PHP + MySQL 연동 [링크 복사], [링크+제목 복사],
조회: 32640
글쓴 사람
정성태 (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분
^^ 꾸준히 공부할 것이 나와서.
정성태

1  [2]  3  4  5  6  7  8  9  10  11  12  13  14  15  ...
NoWriterDateCnt.TitleFile(s)
13893정성태2/27/20252225Linux: 115. eBPF (bpf2go) - ARRAY / HASH map 기본 사용법
13892정성태2/24/20252975닷넷: 2325. C# - PowerShell과 연동하는 방법파일 다운로드1
13891정성태2/23/20252498닷넷: 2324. C# - 프로세스의 성능 카운터용 인스턴스 이름을 구하는 방법파일 다운로드1
13890정성태2/21/20252317닷넷: 2323. C# - 프로세스 메모리 중 Private Working Set 크기를 구하는 방법(Win32 API)파일 다운로드1
13889정성태2/20/20253045닷넷: 2322. C# - 프로세스 메모리 중 Private Working Set 크기를 구하는 방법(성능 카운터, WMI) [1]파일 다운로드1
13888정성태2/17/20252483닷넷: 2321. Blazor에서 발생할 수 있는 async void 메서드의 부작용
13887정성태2/17/20253069닷넷: 2320. Blazor의 razor 페이지에서 code-behind 파일로 코드를 분리 및 DI 사용법
13886정성태2/15/20252572VS.NET IDE: 196. Visual Studio - Code-behind처럼 cs 파일을 그룹핑하는 방법
13885정성태2/14/20253232닷넷: 2319. ASP.NET Core Web API / Razor 페이지에서 발생할 수 있는 async void 메서드의 부작용
13884정성태2/13/20253504닷넷: 2318. C# - (async Task가 아닌) async void 사용 시의 부작용파일 다운로드1
13883정성태2/12/20253257닷넷: 2317. C# - Memory Mapped I/O를 이용한 PCI Configuration Space 정보 열람파일 다운로드1
13882정성태2/10/20252577스크립트: 70. 파이썬 - oracledb 패키지 연동 시 Thin / Thick 모드
13881정성태2/7/20252824닷넷: 2316. C# - Port I/O를 이용한 PCI Configuration Space 정보 열람파일 다운로드1
13880정성태2/5/20253167오류 유형: 947. sshd - Failed to start OpenSSH server daemon.
13879정성태2/5/20253392오류 유형: 946. Ubuntu - N: Updating from such a repository can't be done securely, and is therefore disabled by default.
13878정성태2/3/20253182오류 유형: 945. Windows - 최대 절전 모드 시 DRIVER_POWER_STATE_FAILURE 발생 (pacer.sys)
13877정성태1/25/20253236닷넷: 2315. C# - PCI 장치 열거 (레지스트리, SetupAPI)파일 다운로드1
13876정성태1/25/20253692닷넷: 2314. C# - ProcessStartInfo 타입의 Arguments와 ArgumentList파일 다운로드1
13875정성태1/24/20253131스크립트: 69. 파이썬 - multiprocessing 패키지의 spawn 모드로 동작하는 uvicorn의 workers
13874정성태1/24/20253542스크립트: 68. 파이썬 - multiprocessing Pool의 기본 프로세스 시작 모드(spawn, fork)
13873정성태1/23/20252969디버깅 기술: 217. WinDbg - PCI 장치 열거파일 다운로드1
13872정성태1/23/20252881오류 유형: 944. WinDbg - 원격 커널 디버깅이 연결은 되지만 Break (Ctrl + Break) 키를 눌러도 멈추지 않는 현상
13871정성태1/22/20253292Windows: 278. Windows - 윈도우를 다른 모니터 화면으로 이동시키는 단축키 (Window + Shift + 화살표)
13870정성태1/18/20253731개발 환경 구성: 741. WinDbg - 네트워크 커널 디버깅이 가능한 NIC 카드 지원 확대
13869정성태1/18/20253454개발 환경 구성: 740. WinDbg - _NT_SYMBOL_PATH 환경 변수에 설정한 경로로 심벌 파일을 다운로드하지 않는 경우
13868정성태1/17/20253109Windows: 277. Hyper-V - Windows 11 VM의 Enhanced Session 모드로 로그인을 할 수 없는 문제
1  [2]  3  4  5  6  7  8  9  10  11  12  13  14  15  ...