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

... 76  77  78  79  [80]  81  82  83  84  85  86  87  88  89  90  ...
NoWriterDateCnt.TitleFile(s)
11936정성태6/10/201918351Math: 58. C# - 최소 자승법의 1차, 2차 수렴 그래프 변화 확인 [2]파일 다운로드1
11935정성태6/9/201919910.NET Framework: 843. C# - PLplot 출력을 파일이 아닌 Window 화면으로 변경
11934정성태6/7/201921238VC++: 133. typedef struct와 타입 전방 선언으로 인한 C2371 오류파일 다운로드1
11933정성태6/7/201919585VC++: 132. enum 정의를 C++11의 enum class로 바꿀 때 유의할 사항파일 다운로드1
11932정성태6/7/201918754오류 유형: 544. C++ - fatal error C1017: invalid integer constant expression파일 다운로드1
11931정성태6/6/201919294개발 환경 구성: 441. C# - CairoSharp/GtkSharp 사용을 위한 프로젝트 구성 방법
11930정성태6/5/201919815.NET Framework: 842. .NET Reflection을 대체할 System.Reflection.Metadata 소개 [1]
11929정성태6/5/201919390.NET Framework: 841. Windows Forms/C# - 클립보드에 RTF 텍스트를 복사 및 확인하는 방법 [1]
11928정성태6/5/201918156오류 유형: 543. PowerShell 확장 설치 시 "Catalog file '[...].cat' is not found in the contents of the module" 오류 발생
11927정성태6/5/201919363스크립트: 15. PowerShell ISE의 스크립트를 복사 후 PPT/Word에 붙여 넣으면 한글이 깨지는 문제 [1]
11926정성태6/4/201919919오류 유형: 542. Visual Studio - pointer to incomplete class type is not allowed
11925정성태6/4/201919747VC++: 131. Visual C++ - uuid 확장 속성과 __uuidof 확장 연산자파일 다운로드1
11924정성태5/30/201921379Math: 57. C# - 해석학적 방법을 이용한 최소 자승법 [1]파일 다운로드1
11923정성태5/30/201921010Math: 56. C# - 그래프 그리기로 알아보는 경사 하강법의 최소/최댓값 구하기파일 다운로드1
11922정성태5/29/201918520.NET Framework: 840. ML.NET 데이터 정규화파일 다운로드1
11921정성태5/28/201924380Math: 55. C# - 다항식을 위한 최소 자승법(Least Squares Method)파일 다운로드1
11920정성태5/28/201916049.NET Framework: 839. C# - PLplot 색상 제어
11919정성태5/27/201920296Math: 54. C# - 최소 자승법의 1차 함수에 대한 매개변수를 단순 for 문으로 구하는 방법 [1]파일 다운로드1
11918정성태5/25/201921140Math: 53. C# - 행렬식을 이용한 최소 자승법(LSM: Least Square Method)파일 다운로드1
11917정성태5/24/201922119Math: 52. MathNet을 이용한 간단한 통계 정보 처리 - 분산/표준편차파일 다운로드1
11916정성태5/24/201919936Math: 51. MathNET + OxyPlot을 이용한 간단한 통계 정보 처리 - Histogram파일 다운로드1
11915정성태5/24/201923055Linux: 11. 리눅스의 환경 변수 관련 함수 정리 - putenv, setenv, unsetenv
11914정성태5/24/201922028Linux: 10. 윈도우의 GetTickCount와 리눅스의 clock_gettime파일 다운로드1
11913정성태5/23/201918757.NET Framework: 838. C# - 숫자형 타입의 bit(2진) 문자열, 16진수 문자열 구하는 방법파일 다운로드1
11912정성태5/23/201918721VS.NET IDE: 137. Visual Studio 2019 버전 16.1부터 리눅스 C/C++ 프로젝트에 추가된 WSL 지원
11911정성태5/23/201917485VS.NET IDE: 136. Visual Studio 2019 - 리눅스 C/C++ 프로젝트에 인텔리센스가 동작하지 않는 경우
... 76  77  78  79  [80]  81  82  83  84  85  86  87  88  89  90  ...