티스토리 뷰
Nginx .Net Core5 Mysql Connection String
static private MySqlConnection EDC_conn;
static private string EDC_GetConnectionString()
{
return "Server=서버IP ; Port=3306; Database=log_in; Uid = 아이디; Pwd=비밀번호; SslMode=Required;";
}
static private string member_search(Member_CHK Items)
{
try
{
string EDC_connectionString = EDC_GetConnectionString();
using (EDC_conn = new MySqlConnection(EDC_connectionString))
{
MySqlCommand EDC_string = new MySqlCommand
{
Connection = EDC_conn
};
EDC_conn.Open();
var _HPS = new MySqlParameter("@HPS", Items.HP);
// EDC_string.CommandText = " select p_memo from log_member where p_num = @Pnum ";
EDC_string.CommandText = " select * from log_member ";
EDC_string.Parameters.Add(_HPS);
MySqlDataReader DB_reader_Eclass_All = EDC_string.ExecuteReader();
DataTable DT = new DataTable();
DT.Load(DB_reader_Eclass_All);
EDC_string.Parameters.Clear();
EDC_conn.Close();
if (DT is null || DT.Rows.Count < 1)
{
EDC_conn.Close();
return "NULL";
}
return DT.Rows[0].ItemArray[0].ToString();
} // using
}
catch (Exception Ex)
{
EDC_conn.Close();
return "ERROR! :"+Ex.Message;
}
}
'ETC' 카테고리의 다른 글
- Total
- Today
- Yesterday
- Embeded 한글Font적용
- 암호 마스터키
- Xamarin.Ios Firebase Phone User Add
- WPF Textbox
- Xamarin.Ios Firebase Phone SMS OTP Send
- Linux SSH Multi Computer Join
- Xamarin.Forms
- FileStream Add Byte
- GetCellContent CheckBox Value
- Xamarin reCAPTCHA
- Xamarin.Ios Firebase Phone Auth
- Microcharts
- C# LINQ Left join
- WPF Scrollviewer in ScrollViwer
- Label Text LineBreak in Xaml
- c# Encrypt / Decrypt
- WPF Excel Export Microsoft.Office.Interop 성능향상(열 기준으로 복사)
- Xamarin Firebase Phone Auth
- WPF Datagrid Cell Value Change
- ssl_client_socket_impl.cc
- Xamarin SMS OTP Send
- 서버 수준의 URN 필터
- 연산자 뒤에 피연산자가 없습니다.
- Entry '' has empty native path
- Windows IIS FTP 디렉토리 목록 오류
- Xamarin Firebase Phone User Add
- ClickOnce 인증서 인증기간 변경
- SkiaSharp
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |