博客來網路書店查詢

書名

博客來網路書店查詢

星期三, 1月 30, 2008

如果忘記mysql的root密碼(Linux)?

1.請先刪除所有執行中的mysql程序:
# killall mysqld
2.請檢查系統裡是否仍有mysql程序在執行:
# ps -aux |grep 'mysql'
3.請找尋mysqld_safe這一個檔案 (不同的Linux會有不同的位置)
# find / -name 'mysqld_safe'
/usr/bin/mysqld_safe
4.執行mysqld_safe
# /usr/bin/mysqld_safe --skip-grant-tables&
[1] 17591
# Starting mysqld daemon with databases from /var/lib/mysql
5.您可以再次檢查系統裡是否仍有mysql程序在執行:
# ps -aux |grep 'mysql*'
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
root 17591 0.0 0.0 65848 1196 pts/1 S 17:18 0:00 /bin/sh /usr/bin/mysqld_safe --skip-grant-tables
mysql 17631 0.5 1.1 189024 23656 pts/1 Sl 17:18 0:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --socket=/var/lib/mysql/mysql.sock --skip-grant-tables
root 17643 0.0 0.0 61088 652 pts/1 S+ 17:18 0:00 grep mysql*
6.直接輸入mysql就可以進入
# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 5.0.22

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

7.請輸入
use mysql;
代表使用mysql這一個資料庫
8.更新root的密碼
update user set password=password("新密碼") where user="root";
9.如需加入新的使用者,也可在這時加入
grant all privileges on *.* to username@localhost identified by 'userpassword';
10.更新改變
flush privileges;
11.離開 exit
12.請檢查系統裡mysql程序的pid:
# ps -aux |grep 'mysql*'
再使用kill pid的方式刪除。
13.啟動mysql程序
/etc/rc.d/init.d/mysqld start

星期六, 1月 26, 2008

民國97年03月課程表

星期日 星期一 星期二 星期三 星期四 星期五 星期六



1
東區認證 ACCESS
一對一



2
東區認證asp.net-5
3



4
東區認證 VC-8
5



6
東區認證VC-9
7
請勿安排課程
8
東區認證C-1-2
9
東區認證asp.net-6-7
10



11
東區認證 VC-
10



12
請勿安排課程
13
請勿安排課程X

14



15
東區認證C-3-4
16
東區認證asp.net-8-9
17



18
請勿安排課程


19



20
請勿安排課程X


21



22
東區認證C-5-6
/總統選舉投票
23
東區認證asp.net-10
24
東區認證 VC-1
25
東區認證PHP-1
26
東區認證 VC-2
27
東區認證PHP-2
28
東區認證 VC-3
29
東區認證C-7-8
30



31
東區認證 VC-4





星期一, 1月 14, 2008

學生管理系統,原本是Big5版本,現已改為utf8

學生管理系統,原本是Big5版本,現已改為utf8,
有興趣的朋友請自行下載:
http://rapidshare.com/files/83706488/class_manage.zip
如果希望這個專案有更好的功能,那得等三月了。
過年前後,一堆稿子要繳交,所以..
我比較沒有時間修改..

星期四, 1月 03, 2008

上傳表單修改

上傳表單原為
<form action="upload.php" method="post" charset="utf-8">

請改為
<form action="upload.php" method="post" enctype="multipart/form-data" charset="utf-8">

就可以將檔案傳送到指定位置

星期三, 1月 02, 2008

Free web site for php

Tripod
http://www.tripod.lycos.co.uk/
50m/php/mysql/ftp/email/無限流量

websited
http://www.websited.net/
* 1 GB of storage space
* 10 GB of bandwith per month
* MySQL database (w/ phpMyAdmin)
* Site statistics (w/ AWStats)
* No banner ads or pop-ups! (A small link to us in the footer is the only thing we add.)
* Free subdomains or use you own domain
* Tech support provided, unlike other free hosts