#新安裝mysql, 修改root密碼
mysqladmin -u root password rootpass
#建立資料庫,名稱為db1
create database db1;
#建立使用者 webap
CREATE USER webap@localhost IDENTIFIED BY web
- 9月 01 週二 201516:10
mysql 管理筆記
- 5月 26 週四 201116:13
快快樂樂學Sybase-PHP連線時避開警告訊息
當我們在php裡面要建立一個sybase資料庫的連線時link = sybase_connect server,login,password; 會出現 Warning: Sybase: Server message: Changed database context to master 這樣的訊息通
- 8月 30 週一 201014:06
MySQL Cluster 測試筆記 (記憶體計算公式)
SizeofDatabase NumberOfReplicas 1.1 / NumberOfDataNodes
MySQL官方資料 :
- 8月 27 週五 201016:44
MySQL Cluster 測試筆記 (常見的限制)
ERROR 1214 HY000 The used table type doesnt support FULLTEXT indexes不可以有FULLTEXT index
ERROR 1118 42000 Row size too large. The maximum row size for t
- 8月 11 週三 201018:35
MySQL Cluster 測試筆記 (新增一個sql node)
mgm node看起來沒什麼load,決定把他加上sql node的群組root@node1 # vi /var/lib/mysql-cluster/config.inimysqldhostname=10.0.0.102id=2mysqldhostname=10.0.0.101id=11root@n
- 8月 11 週三 201015:37
MySQL Cluster 測試筆記 (轉換table格式to ndbcluster)
將MyISAM的table格式轉換為cluster格式mysql ALTER TABLE table1 ENGINE=NDBCLUSTER;Query OK, 2 rows affected 0.96 secRecords: 2 Duplicates: 0 Warnings: 0mysql show
- 8月 11 週三 201015:10
MySQL Cluster 測試筆記 (建個資料玩看看)
開始建table囉首先看看有沒有支援ndbclustermysql show engines; ndbcluster YES .... 略mysql use test;以前會醬子create tablemysql create table table1 a int;Query OK, 0 rows
- 8月 11 週三 201012:43
MySQL Cluster 測試筆記 (當data node掛掉一台的時候)
master 現在是node3root@node3 # ndb_mgm -e showConnected to Management Server at: 10.0.0.101:1186Cluster Configuration---------------------ndbdNDB 2 nodes
- 8月 11 週三 201010:57
MySQL Cluster 安裝筆記
MySQL的cluster主要分為3種node
mgm node 沒錯,照字面上看起來就是管理用的node
sql node 未來查詢都會透過這個node來做增刪改查
data node 存放資料的地方
首先準備4台機器,裝好Linux作業系統,其他套件都不要選
10.0.0.101 mgm nod
- 8月 14 週二 200714:01
快快樂樂學Sybase-修改default charset,將ase預設語系改成big5
# cd charsets# charset -Usa -Ppassword -Sserver_name binary.srt big5# isql1 use master2 go1 sp_configure default sortorder id,50,big52 go1 shutdown2 g
