2009年11月29日

MySQL5.1.41 以及管理者創建

解決無法看到show database中的mysql...

下載MySQL5.1.41版本
http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.41-win32.msi/from/pick#mirrors

安裝過程中,在MySQL Server Instance Config Wizard選項中,先選擇standard安裝,
並且記得選擇自動加入環境變數到電腦中,以及最後會要你輸入第一次的新密碼。

把C:/Documents and Settings/All Users/Application Data/MySQL/MySQL Server 5.1/Data/
之中的檔案全部複製到E:\DB\serv\Mysql\data



my.ini中修改datadir路徑:
刪掉
C:/Documents and Settings/All Users/Application Data/MySQL/MySQL Server 5.1/Data/
改為(注意斜線方向)

#Path to the database root
datadir="E:/DB/serv/Mysql/data"

CMD中進入MySQL的root帳戶:(其實在E:\DB\serv\Mysql\data目錄底下新增一個普通檔案資料夾,在下列範例中,我們新增了一個test2資料夾,就是增加一個test2的database)


C:\Documents and Settings\Jim>mysql -u root --password=密碼
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.41-community MySQL Community Server (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| test               |
| test2              |
+--------------------+
4 rows in set (0.00 sec)

mysql>



mysql> GRANT ALL PRIVILEGES ON *.* TO jimsql@220.132.116.19 IDENTIFIED BY '密碼';
Query OK, 0 rows affected (0.00 sec)



mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| test               |
| test2              |
+--------------------+
4 rows in set (0.00 sec)

mysql> use mysql;
Database changed
mysql> show tables
    -> ;
+---------------------------+
| Tables_in_mysql           |
+---------------------------+
| columns_priv              |
| db                        |
| event                     |
| func                      |
| general_log               |
| help_category             |
| help_keyword              |
| help_relation             |
| help_topic                |
| host                      |
| ndb_binlog_index          |
| plugin                    |
| proc                      |
| procs_priv                |
| servers                   |
| slow_log                  |
| tables_priv               |
| time_zone                 |
| time_zone_leap_second     |
| time_zone_name            |
| time_zone_transition      |
| time_zone_transition_type |
| user                      |
+---------------------------+
23 rows in set (0.01 sec)

mysql> use user;
ERROR 1049 (42000): Unknown database 'user'
mysql> SELECT  user, host, password FROM user;
+--------+----------------+-------------------------------------------+
| user   | host           | password                                  |
+--------+----------------+-------------------------------------------+
| root   | localhost      | * |
| jimsql | 220.132.116.19 | * |
+--------+----------------+-------------------------------------------+
2 rows in set (0.00 sec)

mysql>







C:\Documents and Settings\Jim>mysql --user=jimsql --password=密碼
ERROR 1045 (28000): Access denied for user 'jimsql'@'localhost' (using password:
 YES)

C:\Documents and Settings\Jim>mysql --user=jimsql@localhost --password=密碼
ERROR 1045 (28000): Access denied for user 'jimsql@localhost'@'localhost' (using
 password: YES)

C:\Documents and Settings\Jim>mysql --user=root --password=密碼
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.1.41-community MySQL Community Server (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> GRANT ALL PRIVILEGES ON *.* TO jimsql@localhost IDENTIFIED BY '密碼';
Query OK, 0 rows affected (0.00 sec)

mysql> use mysql;
Database changed
mysql> SELECT  user, host, password FROM user;
+--------+----------------+-------------------------------------------+
| user   | host           | password                                  |
+--------+----------------+-------------------------------------------+
| root   | localhost      | * |
| jimsql | 220.132.116.19 | *1 |
| jimsql | localhost      | * |
+--------+----------------+-------------------------------------------+
3 rows in set (0.00 sec)

mysql> exit
Bye

C:\Documents and Settings\Jim>mysql --user=jimsql --password=密碼
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 5.1.41-community MySQL Community Server (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| test               |
| test2              |
+--------------------+
4 rows in set (0.00 sec)

mysql>

未完 待續

請打開此網頁


2009年11月28日

mysql error 1067第二次處理文章

除了
http://jimju319.blogspot.com/2009/10/apache22-mysql-5139-php-530.html

中提到的解決方法之外,
使用mysql中的MySQL Server Instance Config Wizard設定完之後,
刪除my.ini中的default-storage-engine=INNODB

在net start mysql就可以了


參考文章:
http://www.51testing.com/?uid-155898-action-viewspace-itemid-131579

Apache注意 - 是否右下角的服務沒啟動

如果自己架設的網頁不能被別人連進來,

注意右下角的Apache圖示,滑鼠移到上面之後,
如果顯示"none of service is running"

就要重新用滑鼠右鍵按下start才可以解決。

ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)

解決方法:(未知原因,在此做個記錄而已,也就是重新remove和install和讀取my.ini,完全不知所云!)

C:\Documents and Settings\Jim>mysql
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)






C:\Documents and Settings\Jim>net start mysql
MySQL 服務正在啟動 .
MySQL 服務已經啟動成功。


C:\Documents and Settings\Jim>net stop mysql
MySQL 服務正在停止.
MySQL 服務已經成功停止。


C:\Documents and Settings\Jim>mysqld --remove
Service successfully removed.

C:\Documents and Settings\Jim>mysqld --defaults-file = my.ini

C:\Documents and Settings\Jim>net start mysql
服務名稱無效。

詳細資料,請輸入 NET HELPMSG 2185。


C:\Documents and Settings\Jim>mysqld --install
Service successfully installed.

C:\Documents and Settings\Jim>net start mysql
MySQL 服務正在啟動 .
MySQL 服務已經啟動成功。


C:\Documents and Settings\Jim>mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.39-community MySQL Community Server (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

2009年11月24日

NOKIA是否有備份簡訊的軟體?

http://www.nokia.com.hk/get-support-and-software-ch/software/s60/s60-phone-and-application-download/nokia-n73

其中的第七個應用程式:
短訊存檔
《短訊存檔》能把收件匣內的全部SMS短訊以純文字檔案匯出至你指定的文件夾。該檔案更可透過藍牙或傳輸線傳送至電腦/其他裝置作備份之用

超級好用的,

使用方法:

1.把想要備份的簡訊放到"收件夾"中
2.安裝此應用程式後,執行
3.點選想要輸出的資料夾(建議:記憶卡的某個文件夾)
4.就可以透過電腦看到一堆txt檔案囉,並且方便備份!

參考資料:

2009年11月18日

EFIX 台灣較常見惡意程式清除工具 (轉貼)

http://reinfors.blogspot.com/

其實病毒這玩意,真的對一些不懂電腦的人很棘手,
但是懂電腦的人也不見得會解病毒,
就像婦產科醫生不見得懂得看牙齒,

因此就引用這篇文章,讓大家知道

真的中毒的時候,就要用最新的疫苗,不見得有效!

但是總比舊有疫苗效果好太多了!

android kernel設定 待解說

ARM System Type ->pxa2xx/pxa3xx-based
/*ARN cpu for pxa2xx and pxa3xx*/
Intel Implementations ->PXA3XX form factor platform (aka littleton)
/*Intel平台for pxa3xx (又名 littleton)*/
Thumb Instruction -> support thumb user binaries
/*對於儲存系統資料匯流排為16位的應用系統,ARM體系提供了Thumb指令集


7.ARM指令與Thumb指令的區別
答:在ARM架構中,ARM指令集中的指令是32位的指令,其執行效率很高。對于儲存系統資料匯流排為16位的應用系統,ARM體系提供了Thumb指令集。Thumb指令集是對ARM指令集的一個子集重新編碼得到的,指令長度為16位。通常在處理器執行ARM程式時,稱處理器處于ARM狀態;當處理器執行Thumb程式時,稱處理器處于Thumb狀態。Thumb指令集并沒有改變ARM體系地層的程式設計模型,只是在該模型上加上了一些限制條件。Thumb指令集中的資料處理指令的運算元仍然為32位,指令定址位址也是32位的。
http://tw.myblog.yahoo.com/blue-comic/article?mid=542&prev=546&next=533&l=f&fid=20

*/

ARM EABI ->use the ARM EABI to compile the kernel


ABI

ABI,application binary interface,應用程式和作業系統的"low-level interface"。意思是,ABI有一套規則,如果遵循這個規則產生出的object,就能在相對應的系統上正確的運作。這個規則包括了data type的size,alignment,calling convention,function參數傳遞與回傳值,system call的調用等。很明顯的,這跟平台很有關係。比如說,不管用哪一個compiler,只要能生出符合ELF格式的binary,就可以在Linux上跑,或呼叫其library。

而EABI,embedded-application binary interface則規定了embedded software program的規則。跟一般的作業系統的主要差異為: 應用程式可以使用privileged instruction,dynamic linking不是required,更簡潔的stack frame用以省下memory。

ARM EABI

而arm 的EABI有些改進,特別是floating point的運算。現在的arm應該都有實作FPA(Floating Point Accelerator),但如果compiler使用了FPU來做floting的運算,且CPU沒有FPU時,就會產生exception。其panelty會是將指令轉為software的floating運算,當然系統也就變慢了。所以支援EABI的kernel與Cross-compiler,加上支援有實作FPA的arm,performance就會好很多。

http://kezeodsnx.pixnet.net/blog


boot option ->
/*沒差啦~這是kernel的開機設定*/

floating point emulation->NWPPE math emulation
userspace binary formats->kernel support for ELF binaries
power management support
sysfs interface->?
networking ->TCP/IP networking
screen resolution ->Horizonta 640 / vertical 480
input event->event interface
keypad driver->pxa27x/pxa3xx keypad support
touchschreen driver ->WM9713 Touchscreen interface support
serial port driver ->PXA serial port support和console on pxa serial port
network file system->NFS client support
                   ->NFS client supprot for NFS version
                   ->NFS client support for NFS version4 (EXPERIMENTAL)
                   ->root file system on NFS
save an alternate configuration file

NO-CARRIER 網卡無法啟動

 工作時,由於想要啟動linux OS的網卡, 發現某張新設定的網卡一直無法啟動,就算下指令UP了,但是也沒有順利啟動 所以爬文後,想要確認該網卡的status, 發現某行為: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu...