異世界


顯示具有 資料庫 標籤的文章。 顯示所有文章
顯示具有 資料庫 標籤的文章。 顯示所有文章

2014年10月4日 星期六

XAMPP : 設定 phpMyAdmin 登入密碼

參考 : http://blog.xuite.net/kchin/technic/4847839

安裝好 XAMPP 進入 phpMyAdmin 發現root 沒有密碼保護,訊息如下:

設定檔內有關設定 (root登入及沒有密碼) 與預設的 MySQL 權限戶口相同。 MySQL 伺服器在這預設的設定運行的話會很容易被入侵,您應更改有關設定去防止安全漏洞。

1. 進入 "使用者" | "編輯權限" | "修改密碼"

PS: 三個使用者為 root 的都要修改

image

image

2. 修改 C:\xampp\phpMyAdmin\config.inc.php

2.1 auth_type = ‘http’

/* Authentication type and info */

$cfg['Servers'][$i]['auth_type'] = 'http';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';


登入畫面如下:



image







2.1 auth_type = ‘kookie’



/* Authentication type and info */

$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';



登入畫面如下(個人較喜好該方式)



image

2013年5月10日 星期五

MySQL #001 初級入門

1. 只談MySQL (第21天) MySQL的圖形化管理介程式 文⊙ simon581923

2. MySQL Workbench的使用教程(初級入門版)

=======================================================================

 

資料來源: 善用圖形化介面,輕鬆管理MySQL   文⊙胡仁禮

 

image

我們可以利用MySQL Workbench的Data Modeling工具來繪製ER Model,而不需再使用另一套軟體,如此可以簡化相關圖形的繪製流程。

1. 要繪製ER Model,首先在主頁面中,開啟Create New EER Model,進入到Model視窗後,點擊+鈕1新增一個資料庫並輸入資料庫的名稱2,接下來選擇字元編碼方式,然後點選Add Diagram開啟EER Diagram視窗3。

2.切換到EER Diagram視窗後,點選左方圖形工具列中的Place a New Table鈕1,接著選擇剛才建立的資料庫及資料庫引擎2(如要編輯現有資料表,可以將左方欄位的資料表直接拖曳至右方編輯區中)。

3. 在次窗的右方空白處,以滑鼠點選任何一處以新增一個資料表,接著開啟資料表編輯欄位--在Columns的頁面中,PK是Primary Key的縮寫,表示主鍵,NN表示Not Null、AI表示Autoincrement。然後,再依序建立其他資料表來完成ER Model。

 
 

2012年7月18日 星期三

How To 以下拉選單選擇 GridView的Cell資料

如何將 DataGridView 中的資料以ComboBox 選擇?

image

1. 將GridView的 Columns 做以下選擇

先決條件是GridView 使用的 DataSource,需與ComboBox 的DataSource 有關連的欄位,將該欄位名稱分別設定於下圖的 DataPropertyName及ValueMember。

image

.NET 資料物件關係圖

DataSet、TableAdapter、BindingSource和BindingNavigator對象之間的關係

 

image