標籤:
一、mysql資料庫的安裝
1、開啟mysql-5.0.18-win32檔案夾,然後點擊setup.exe
2、點擊next
3、選取“custom”,點擊next
4、點擊“change”,改變安裝路徑,然後點擊next
5、點擊“install”後,等待幾秒鐘,出現圖
6、點next
7、點next
8、點“finish”,進入資料庫配置
9、點next
10、點next
11、選取“Server Machine”,點“next”
12、點“next”
13、點“next”
14、點“next”
15、點“next”
16、選取“Manual Selected Default Character Set /Collation”,然後選取字元集為“GBK”,點“next”
17、修改ServiceName mysql5018,點“next”(註:此處貴行需寫的是mysql5018,因為現在你要裝的是mysql 5.0.18版本的mysql)
18、去掉“Modify Security Settings”選取,點Next
19、點擊Execute
20、Mysql 安裝完畢
二、測試是否能串連上資料庫,剛裝好資料庫沒有密碼
→ Window+R 輸入cmd 開啟dos
→ C:\Users\Dell>cd/
→ C:\>d:
→ D:\>cd D:\Program Files\MySQL\MySQL Server 5.0\bin
→ D:\Program Files\MySQL\MySQL Server 5.0\bin>mysql -uroot
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.0.45-community-nt MySQL Community Edition (GPL)
Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the buffer.
→ mysql>
1、MySql的安裝和串連測試