helloworld

除了英文、日文、韓文,還有德語、越南話、法語..等等等
兩本合購75折,參考看看唄

undefined
http://www.books.com.tw/exep/assp.php/es/exep/activity/promote/2007_promote/promote_activity.php?id=PKG0074225

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

喜歡咖啡的朋友可以參考看看

http://www.books.com.tw/exep/assp.php/es/activity/2016/09/coffeelover/

undefined

文章標籤

helloworld 發表在 痞客邦 留言(1) 人氣()

新版的Pokemon GO 提供了Buddy功能
可以讓你挑選一隻喜歡的神奇寶貝一起散步

1473818905797.jpg

如果是 iOS 手機用戶,可以更新到1.7.0
GO GO

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

vmware esx/esxi 的 crontab

路徑
/var/spool/cron/crontabs/root

#min hour day mon dow command
1    1    *   *   *   /sbin/tmpwatch.py
1    *    *   *   *   /sbin/auto-backup.sh
0    *    *   *   *   /usr/lib/vmware/vmksummary/log-heartbeat.py
*/5  *    *   *   *   /sbin/hostd-probe ++group=host/vim/vmvisor/hostd-probe

重啟crontab
kill `cat /var/run/crond.pid`
/usr/lib/vmware/busybox/bin/busybox crond
 

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

至vmware 官網下載vmware vcenter converter standalone 這套免費的工具
簡單介紹幾個方便的功能

點選 "converter machine" 後會出現以下畫面

1472803604460.jpg

如果要做P2V (Physical to Virtual ,實體轉換至虛擬)
可以選擇 powered on
接下來選擇
Remote Windows machine
Remote Linux machine
This local machine

選擇完後,輸入來源端的ip及 足夠權限的帳號密碼進行下一步
此時程式會嘗試登入來源端機器收集一些資訊

下個畫面輸入目的端vm host的資訊,接著下一步

輸入guestos 名稱,預設是來源主機的hostname

選擇要放在哪個resource pool , datastore 以及 virtual machine version

接下來確認guestos 的配置,需要注意的是 Helper VM network
後續轉換過程中需要用到,如果你的環境中有 dhcp server 的話,就用預設自動抓取即可
如果沒有的話就給他一個暫時的ip,沒錯,暫時的,轉換完成後就不需要了

最後就開開心心的放下去跑,泡個咖啡,大個便再回來看看結果囉


如果要做虛擬機之間的複製或轉換(V2V)可以選擇 powered off
有以下幾個host 來源可以選擇
VMware Infrastructure virtual machine
VMware Workstation or other VMware virtual machine
Hyper-V Server

這個就方便多了,只要是選擇來源的host機和目的端的host
之後也是一樣開開心心的開始轉換了

undefined
實戰VMware vSphere 6.x企業私有雲建置:異地備援x軟體定義儲存x高可用性

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

只有今天
undefined
http://www.books.com.tw/

無印良品@博客來不限金額 12% FF

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

vpn server : vpn.mybox.tw
username: user001
password: p@ssw0rd

1. yum -y install pptp

2. edit /etc/ppp/chap-secrets
user001 PPTP p@ssw0rd *

3. vi /etc/ppp/peers/vpn.mybox.tw
pty "pptp vpn.mybox.tw --nolaunchpppd"
name user001
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
ipparam vpn.myserver.org

4. modprobe ppp_mppe

5. review /etc/ppp/options.pptp
lock
noauth
refuse-pap
refuse-eap
refuse-chap
nobsdcomp
nodeflate
require-mppe-128

6. connect to vpn server
pppd call vpn.mybox.tw

7. check logs , /var/log/messages

8. check ifconfig and route

9. disconnect
killall pppd
 

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

首先至theta360 官網下載即時串流應用程式
找到適合的應用程式並下載安裝

https://theta360.com/ct/support/download/

文章標籤

helloworld 發表在 痞客邦 留言(2) 人氣()

undefined
http://www.books.com.tw/products/0010722065

全新!NEW TOEIC新多益解析獨家套書【單字大全+聽力、閱讀題庫解析】(附MP3)
作者: David Cho, Hackers Academia  
譯者:許竹瑩,章敏,Joung,蘇慧容,賴維妤,李聖婷,Lora Liu
出版社:國際學村  
出版日期:2016/08/09
語言:繁體中文
定價:2259元
優惠價:66折1491元
優惠期限:2016年10月14日止

內容簡介

下個月就要考,沒時間慢慢鞏固實力那該怎麼辦?
從「背單字」到「做題目」用最快的方式,強行攻下多益高分!
用「單字大全」只背會考的單字,單字題速看秒答!
用「聽力、閱讀題庫解析」只寫會考的題目,
題目熟到光聽幾個字、看幾個字,就能猜出答案!

新多益測驗最強勢的【單字、聽力、閱讀】組合讓你做好十足準備,
黃金認證十拿九穩!!
多益必考單字+2000道超準試題=
徹底掌握命題趨勢,有如現場直擊多益命題老師出題!

最新、最完整、最認真、最透徹、最實用的新多益單字書+模考書。
30日單字學習計畫,單字力快速升級!
10回新多益聽力+閱讀試題,2000題扎實練習!
讓你強化答題技巧、提升答題速度,990分手到擒來!
 

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

Harry Potter and the Cursed Child - Parts One and Two: The Official Script Book of the Original West End Production Special Rehe
作者: Rowling, J. K./ Thorne, Jack/ Tiffany, John
原文出版社:Arthur a Levine
出版日期:2016/07/31
語言:英文
undefined

第一部哈利波特舞台劇
正宗哈利波特第8集《哈利波特:被詛咒的孩子》
以J.K. 羅琳最新的原創故事改編。2016年中全球首演劇本
 
19年過去了,哈利‧波特不僅是名人,更成為一名巫師、魔法部的超時工作員工、一名丈夫、及三個孩子的父親。雖然哈利一直拒絕屈服於他的命運,但他最小的兒子阿不思,仍然需要學習面對家族的傳統及盛名。他們父子必須共同面對那個令人不安的事實:有時,黑暗來自最意想不到的地方。<博客來編譯>
 
Based on an original new story by J.K. Rowling, Jack Thorne and John Tiffany, a new play by Jack Thorne, Harry Potter and the Cursed Child is the eighth story in the Harry Potter series and the first official Harry Potter story to be presented on stage. The play will receive its world premiere in London’s West End on 30th July 2016.
 
It was always difficult being Harry Potter and it isn’t much easier now that he is an overworked employee of the Ministry of Magic, a husband and father of three school-age children.
 
While Harry grapples with a past that refuses to stay where it belongs, his youngest son Albus must struggle with the weight of a family legacy he never wanted. As past and present fuse ominously, both father and son learn the uncomfortable truth: sometimes, darkness comes from unexpected places.

作者簡介
 
J. K. Rowling is the author of the beloved, bestselling, record-breaking Harry Potter series. She started writing the series during a delayed Manchester to London King’s Cross train journey, and during the next five years, outlined the plots for each book and began writing the first novel. Harry Potter and the Sorcerer’s Stone was published in the United States by Arthur A. Levine Books in 1998, and the series concluded nearly ten years later with Harry Potter and the Deathly Hallows, published in 2007. J. K. Rowling is the recipient of numerous awards and honorary degrees including an OBE for services to children’s literature, France’s Légion d’Honneur, and the Hans Christian Andersen Literature Award. She supports a wide number of causes through her charitable trust Volant, and is the founder of Lumos, a charity working to transform the lives of disadvantaged children. J. K. Rowling lives in Edinburgh with her husband and three children.

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

跟著閒妻遊巴西
http://www.books.com.tw/products/0010720059
undefined

作者: 謝如欣  
原文作者:Kelly Hsieh 
出版社:商周出版  
出版日期:2016/07/02

巴西台北商務辦事處主任FábioG.Franco、駐聖保羅台北經濟文化辦事處處長王啟文、城邦出版首席執行長何飛鵬、台北藝術大學教授、專欄作家邱坤良、暢銷書作家戴晨志‧熱情推薦

巴西玩很大!
里約、聖保羅同場拚瘋玩
上山下海,24小時絕無冷場

時而誘人,時而惱人,但絕不讓人無動於衷;
或森巴,或波薩諾瓦,即使不會跳舞也能跟著起舞。
這,就是巴西!

說到巴西,你想到什麼?貧民窟、槍殺、搶劫……,還是足球、嘉年華、亞馬遜雨林?是的,這些巴西統統都有,但你知道聖保羅是媲美紐約的金融與時尚之都嗎?你知道城市的夜裡除了有喧囂的酒吧,林立的小劇場也熱鬧滾滾嗎?你知道城市版、鄉下版、郵輪版嘉年華各是怎麼一回事嗎?飛行三十多個小時才能抵達的地球彼端,這個以葡萄牙為基調,融合了日本、非洲、歐美風情的國家,擁有豐富的自然景觀與資源,演繹出多采多姿的創作與迷人的生活藝術,但對大多數的台灣人來說卻相當陌生。旅居巴西多年的閒妻謝如欣,經常往返於聖保羅、里約兩大城,以在地人的角度和親身體驗,告訴你巴西怎麼玩才最有趣!

本書特色

‧精心規畫八大主題式旅遊路線,可以根據個人興趣來趟深度之旅,也可以一網打盡玩瘋里約、聖保羅。
‧完整介紹最能體現巴西魅力的兩大盛事──嘉年華與足球賽,讓你行前即能輕鬆掌握參加資訊。
‧閒妻牌美食報報,除了介紹大名鼎鼎的巴西窯烤,還網羅了多樣傳承混血口味的傳統美食、難得一見的亞馬遜果實甜品,以及背包客最愛的便宜道地小吃店,包你吃肥肥也甘願。
‧閒妻牌血拚清單,告訴你到巴西買什麼最超值、怎麼買最划算,就算榨乾荷包也心滿意足。
‧好用葡語偷吃步與常見菜單中葡文對照表,讓你簡簡單單就能開口打招呼、點菜、殺價、找廁所。
‧同場加映「巴西閒妻俱樂部回應網友Q&A」,回答讀者關於簽證、航班、生活等問題,尤其是要去巴西結婚的人更是必讀,有非常詳盡的解答喔。 

helloworld 發表在 痞客邦 留言(0) 人氣()

RTMP 是 Real Time Messaging Protocol 的縮寫
該協定是Adobe Systems公司為Flash播放機和伺服器之間音訊、視頻和資料傳輸 開發的開放協定

本次測試環境主要分為三大部分
1. rtmp server: 安裝nginx-rtmp
2. push to rtmp: Adobe Flash Media Live Encoder 或是 ffmpeg
3. rtmp player: jwplayer

[安裝server]
nginx 是戰鬥民族出品的強大web server,我們必須要再加裝nginx-rtmp 模組才可以支援rtmp 串流

以CentOS 為例
wget https://copr.fedorainfracloud.org/coprs/lkiesow/nginx-rtmp/repo/epel-6/lkiesow-nginx-rtmp-epel-6.repo
yum install nginx-rtmp

以FreeBSD 為例
cd /usr/ports/www/nginx (勾選rtmp)
make install

設定檔範例
vi nginx.conf

#user  nobody;
worker_processes  1;

error_log  /var/log/rtmp_error.log debug;
pid        /var/run/nginx.pid;

events {
    worker_connections  1024;
}

rtmp {
        server {
                listen 1935;
                chunk_size 8192;

                application rtmp {
#### 設定 access control
                        allow publish 192.168.2.13;
                        allow publish 10.0.0.0/24;

                        allow play all;

                        deny all;
                        live on;

#### 如果要複製一份影像到其他 rtmp server 
                        meta copy;      
                        push rtmp://rtmp02-server/rtmp/live;
                        push rtmp://rtmp03-server/rtmp/live;
                }
        }
}


[push to rtmp]
Adobe Flash Media Live Encoder 好處是跨平台、免費、GUI、方便外接攝影機訊號
ffmpeg 好處是方便在文字介面下透過指令推送
範例
ffmpeg -i video-file.mp4 -vcodec h264 -acodec aac -strict -2 -r 60.0 -s 1280x720 -b:a 100k -f flv rtmp://rtmp01-server/rtmp/live

[rmpt player]
至官網下載jwplayer
https://www.jwplayer.com/products/jwplayer/

範例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>stream playing~~</title>
    <script src="jwplayer.js"></script>
    <script>jwplayer.key = "Your Key ~~";</script>
</head>
<body>
<div id="player"></div>

<script>
    jwplayer("player").setup({
        sources: [{
            file: "rtmp://rtmp01-server/rtmp/live"
        }],
        height: 360,
        width: 640
    });
</script>

</body>
</html>

undefined
一手掌握短小精悍的Nginx

作者: 高群凱  
出版社:佳魁資訊  
出版日期:2016/11/25
語言:繁體中文
定價:490元

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

首頁 » 管理 » 使用者 » 檢視使用者個人資訊 » 註冊使用者打勾 » 存檔

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

安裝 logintoboggan 模組並啟用
https://www.drupal.org/project/logintoboggan

設定 logintoboggan

Allow users to login using their e-mail address
選擇啟用並存檔

接下來打開登入頁面
即可看到提示訊息變成
使用者名稱或電子郵件地址 *
You may login with either your assigned username or your e-mail address.
 

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

啟用 drupal core 的 tracker 模組後
即可在個人頁看到多一個追蹤的選單
底下即是個人張貼過文章

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

6/2 無印良品不限金額81折,就在博客來網路書店
滿額再送 e-coupon 
要買要快喔~~

undefined

 

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

安裝 apache + php + mysql 就不再多說了
首先安裝 drush , drush 是文字模式下一個好用的工具
cd /usr/ports/www/drush
make install

接下來透過drush 安裝drupal 核心程式
先切換到 apache 的 DocumentRoot 或是其他可以access 到網頁的路徑
cd /home/www
drush dl drupal

Project drupal (7.43) downloaded to /home/web/www2/drupal-7.43.                                                                                              [success]
Project drupal contains:                                                                                                                                     [success]
 - 3 profiles: minimal, standard, testing
 - 4 themes: bartik, seven, garland, stark
 - 47 modules: drupal_system_listing_incompatible_test, drupal_system_listing_compatible_test, book, php, translation, shortcut, contact, image, profile,
field_ui, dashboard, blog, dblog, search, help, file, forum, locale, block, syslog, node, update, statistics, contextual, overlay, system, field_sql_storage,
text, list, number, options, field, rdf, path, user, toolbar, menu, color, poll, comment, aggregator, taxonomy, filter, openid, tracker, simpletest, trigger

這時候drupal 已經幫你在當下的目錄下載好目前最新release 的D drupal 7.x

 

下載正體中文語系
https://localize.drupal.org/download
找到Chinese, Traditional , 7.x
複製連結網址
回到drupal 目錄
cd profiles/standard/translations/
wget http://ftp.drupal.org/files/translations/7.x/drupal/drupal-7.43.zh-hant.po


開啟網頁
http://server/

Choose profile -> Standard > save and continue
Choose language -> Chinese, Traditional (繁體中文) -> save and continue
檢查系統需求 -> 依照指示完成系統需求
cd sites/default
mkdir files && chown www:www files
cp default.settings.php settings.php && chown www:www settings.php


設定資料庫 -> 安裝設定檔 -> 設定翻譯語言 -> 設定網站 -> 介面翻譯完成 -> 已完成

helloworld 發表在 痞客邦 留言(0) 人氣()

以下網路上看到的文章,改天找機會試試
service unsupported-transceiver
no errdisable detect cause gbic-invalid
speed nonegotiate
end
插上 光纖模組

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

硬體: dell R320
作業系統: CentOS release 6.7
重開機按F2 進入BIOS
找到CPU power managments 的地方
修改成 OS DBPM存檔後重開機即可

90e3c397-93db-4f9a-bd84-31abbcd02b86.jpg

helloworld 發表在 痞客邦 留言(0) 人氣()

每張面額50, 單筆訂單滿599元且商品單價高於100元方可抵用。
使用期限:即日起 ~ 2016/3/8前使用,逾期失效。

undefined

序號:
EPNLbuTX
EPNwArbb
EPNUWSfn
EPNNaKUt
EPNLLwQ8
EPNVUqeJ
EPNY8ArB

---- 以下 20160307 新增 ----

EPNMhLv8
EPNwgmmY
EPNtRRqy
EPNnEGnc
EPNjFPvR

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

就是今天,要買要快啊


books_muji.jpg 

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

使用期限 ~2015/09/30

EMCV9PmB 50
EMASD98y 200
EMDS7S7J 25
EMDkhgCq 25
EMDTCJBg 25
EMDWUBRB 25
EMBQ58WE 100
EMDB47CH 25
EMDL96FG 25

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

雖然說事出必有因
但是如果真的找不出因或是暫時沒心情找原因
可以參考以下作法
1. 暫時讓使用者無法連上 db (用防火牆阻擋、把密碼先改掉、停掉所有ap服務...很多很多方法,挑自己適用的)
2. 從 master把 異常的 table dump 出來
3. 在 master db 把 table 改名,心臟夠力的可以直接 drop
4. 把剛剛dump出來的資料load回去
5. 剛剛的3,4步驟會寫入 binlog, 經由 replication 的機制同步到slave
6. 測試異動一筆資料看看
7. 將步驟1做的動作復原
8. 收工

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

2015 年05月、06月 統一發票中獎號碼

特別獎 82930261
八位數號碼與上列號碼相同者獎金一千萬元
特獎 43540459
八位數號碼與上列號碼相同者獎金二百萬元
頭獎

82267 055
72762 106
06820 335

八位數號碼與上列號碼相同者獎金二十萬元
貳獎 末七碼與頭獎相同者各得獎金四萬元
參獎 末六碼與頭獎相同者各得獎金一萬元
肆獎 末五碼與頭獎相同者各得獎金四千元
伍獎 末四碼與頭獎相同者各得獎金一千元
陸獎 末三碼與頭獎相同者各得獎金二百元
增開陸獎 420523554
兌獎日期 2015/8/6 ~ 2015/11/5

本對獎單如有排印錯誤, 以財政部開獎紀錄為準。

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

master 10.0.0.100
slave 10.0.0.200

*** master ***

# vi /etc/my.cnf
server-id = 100
log_bin /var/lib/mysql/mysql-bin.log

# /etc/init.d/mysqld restart

# mysql -u root -pxxx
mysql> GRANT REPLICATION SLAVE ON *.* TO 'repl'@'%' IDENTIFIED BY 'passw0rd';

mysql> FLUSH TABLES WITH READ LOCK;
Query OK, 0 rows affected (0.00 sec)

mysql> SHOW MASTER STATUS;
+------------------+----------+--------------+------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+------------------+----------+--------------+------------------+
| mysql-bin.000001 | 251 | | |
+------------------+----------+--------------+------------------+
1 row in set (0.00 sec)
//remember the position

# mysqldump -u root -pxxxx --all-databases > all-databases.sql;

mysql> UNLOCK TABLES;
Query OK, 0 rows affected (0.00 sec)


*** slave ***
# scp login@10.0.0.100:all-databases.sql .

# vi /etc/my.cnf
server-id = 200
log_bin = /var/lib/mysql/mysql-bin.log

# /etc/init.d/mysql restart

# mysql -u root -pxxxx < all-databases.sql

mysql -u root -pxxxx
mysql> CHANGE MASTER TO
> MASTER_HOST='10.0.0.100',
> MASTER_USER='repl',
> MASTER_PASSWORD='passw0rd',
> MASTER_LOG_FILE='mysql-bin.000001',
> MASTER_LOG_POS=251;

mysql> START SLAVE;

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

查看目前spare硬碟有以下幾種方式
aggr status -s
vol status -s
sysconfig -A

將spare硬碟做zero處理
disk zero spares

查看目前硬碟是否真的有在狂跑
sysstat -x 1
CPU NFS CIFS HTTP Total Net kB/s Disk kB/s Tape kB/s Cache Cache CP CP Disk DAFS FCP iSCSI FCP kB/s
in out read write read write age hit time ty util in out
10% 0 0 0 0 0 0 21418 21418 0 0 >60 100% 0% - 100% 0 0 0 0 0
7% 0 0 0 0 1 0 14052 14231 0 0 >60 99% 42% T 39% 0 0 0 0 0
9% 0 0 0 0 0 0 19968 19456 0 0 >60 100% 0% - 100% 0 0 0 0 0
10% 0 0 0 0 0 0 21248 21248 0 0 >60 100% 0% - 56% 0 0 0 0 0
10% 0 0 0 0 1 0 20358 20612 0 0 >60 100% 0% - 100% 0 0 0 0 0
10% 0 0 0 0 0 0 20736 20736 0 0 >60 100% 0% - 55% 0 0 0 0 0
10% 0 0 0 0 1 0 20846 20592 0 0 >60 100% 0% - 100% 0 0 0 0 0

等等等,最後會出現這樣的訊息

Wed Sep 9 16:16:19 CST [raid.disk.zero.done:notice]: Disk 8b.15 Shelf 0 Bay 11 [NETAPP X261_MTOMC250P05 R5VV] S/N [XXXXXXXX] : disk zeroing complete
Wed Sep 9 16:16:41 CST [raid.disk.zero.done:notice]: Disk 8b.8 Shelf 0 Bay 4 [NETAPP X261_MTOMC250P05 R5VV] S/N [XXXXXXXX] : disk zeroing complete
Wed Sep 9 16:16:52 CST [raid.disk.zero.done:notice]: Disk 6a.15 Shelf 0 Bay 11 [NETAPP X261_MTOMC250P05 R5VV] S/N [XXXXXXXX] : disk zeroing complete
Wed Sep 9 16:16:54 CST [raid.disk.zero.done:notice]: Disk 6a.14 Shelf 0 Bay 10 [NETAPP X261_MTOMC250P05 R5VV] S/N [XXXXXXXX] : disk zeroing complete
Wed Sep 9 16:16:59 CST [raid.disk.zero.done:notice]: Disk 8b.10 Shelf 0 Bay 6 [NETAPP X261_MTOMC250P05 R5VV] S/N [XXXXXXXX] : disk zeroing complete
Wed Sep 9 16:17:21 CST [raid.disk.zero.done:notice]: Disk 6a.2 Shelf 0 Bay 2 [NETAPP X261_MTOMC250P05 R5VV] S/N [XXXXXXXX] : disk zeroing complete

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

在網址列輸入 about:config 叫出偏好設定
找到以下的設定
dom.ipc.plugins.flash.disable-protected-mode
從原來的 false 改成 true 就可以了

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

#新安裝mysql, 修改root密碼
mysqladmin -u root password 'rootpass'

#建立資料庫,名稱為db1
create database db1;

#建立使用者 webap
CREATE USER 'webap'@'localhost' IDENTIFIED BY 'webpass';

#讓 webap 有權限可以存取 db1
GRANT ALL ON db1.* TO 'webap'@'localhost';

#my.cnf 的路徑
/usr/local/libexec/mysqld --help --verbose

./libexec/mysqld Ver 5.5.44-MariaDB for FreeBSD9.3 on amd64 (FreeBSD Ports)
Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.

Starts the MariaDB database server.

Usage: ./libexec/mysqld [OPTIONS]

Default options are read from the following files in the given order:
/usr/local/etc/my.cnf /usr/local/etc/mysql/my.cnf ~/.my.cnf

# innodb預設會將所有table的data及index儲存在ibdata1,時間一久這個檔案就會變得很大,建議可以將每個table分開儲存
1. 備份所有資料庫
mysqldump -u root -prootpw --all-databases > all-db.sql
2. 關閉mysql
mysqladmin -u root -prootpw shutdown
3. 編輯my.cnf
[mysqld]
innodb_file_per_table=1
4. rm ibdata1
5. 匯入資料庫
mysql -u root -prootpw < all-db.sql
6. 檢查檔案
確定每一個table是否有多出一個*.idb的檔案
table1.frm
table1.idb

# mysqldump 時讓每一筆record都是一個insert語法
mysqldump時預會把一個table裡面的資料塞成同一個insert語法,如果要讓每一筆紀錄都是一行insert時
加上 --skip-extended-insert 參數即可

#mysqldump 也可以下where 條件
example: mysqldump -u root -p mysql user --where="user='root'"

#某先狀況下,修改使用者權限,但未生效,可以重新載入權限
FLUSH PRIVILEGES ;

#動態修改mysql參數,但重啟後參數會恢復到預設值

SET GLOBAL character_set_database = 'utf8';
SET GLOBAL character_set_server = 'utf8';
SET GLOBAL collation_database = 'utf8_general_ci';
SET GLOBAL collation_server = 'utf8_general_ci';

# 鎖定資料表,防止寫入
FLUSH TABLES WITH READ LOCK;

# 解除鎖定
UNLOCK TABLES;

#mysqldump 但不包含某個table
 mysqldump -u root -p database_name --ignore-table=database_name.story

(未完成)

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

安裝完 phpmyadmin 後,出現 "您應升級到 MySQL 5.5.0 或更新版本。" 的錯誤訊息
如果不想更新mysql版本的話,可以到一下網址找適合的版本安裝
https://www.phpmyadmin.net/downloads/
如 phpMyAdmin 4.0.10.10

undefined
MySQL完全攻略:資料庫開發與效能調校

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

針對要檢視的介面做以下的設定

Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int s0/0/0
Router(config-if)#ip accounting
Router(config-if)#end

便可以用sh ip accounting檢視目前來源和目的位置

Router#sh ip accounting
Source Destination Packets Bytes
192.168.50.123 10.30.10.3 14 836
192.168.50.124 10.30.10.4 40 2480
....
....

但是無法按照數字做排序,須自己人工貼到自己熟悉的工具做排序

undefined

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

Close

您尚未登入,將以訪客身份留言。亦可以上方服務帳號登入留言

請輸入暱稱 ( 最多顯示 6 個中文字元 )

請輸入標題 ( 最多顯示 9 個中文字元 )

請輸入內容 ( 最多 140 個中文字元 )

reload

請輸入左方認證碼:

看不懂,換張圖

請輸入驗證碼