Skip to content

Commit

Permalink
modify mysql database sql
Browse files Browse the repository at this point in the history
  • Loading branch information
hivefans committed Sep 13, 2013
1 parent 8fb469c commit d218e55
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 22 deletions.
4 changes: 4 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
21 changes: 5 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,13 @@ Main features:
<br>
Install:
--------------------
(1) setup apache or nginx <br>
(2) git clone phphbaseadmin ,put phphbaseadmin directory to web app directory <br>
(3) modify config.inc.php ,$configure['hbase_host']=your hbase thrift server <br>
(4) Follow the standard instructions for installing and running the HBase server ,start thrift server <br>
(1) execute script setup_centos5.sh or setup_centos6.sh to install apache php mysql-server <br>
(2) Follow the standard instructions for installing and running the HBase server ,start thrift server <br>
hbase thrift start or bin/hbase-daemon.sh start thrift
<br>
(5) create database phphbaseadmin in mysql server ,import database/phphbaseadmin.sql,modify application/config/database.php,$db['default']['hostname']、 $db['default']['username'] 、$db['default']['password'] = '';
<br>
(6) if you use zookeeper monitor,please install cherry frame,then run cherrypy/cherry.py
<br>
tar zxvf cherrypy/CherryPy-3.2.2.tar.gz
<br>
cd cherrypy/CherryPy-3.2.2
<br>
python setup.py install
<br>
run cherrypy/cherrypy.py
(3) modify config.inc.php ,$configure['hbase_host']=your hbase thrift server <br>
(4) create database phphbaseadmin in mysql server ,import database/phphbaseadmin.sql,edit application/config/database.php,$db['default']['hostname']、 $db['default']['username'] 、$db['default']['password'] = '';
<br>
(7) open http://serverip/phphbaseadmin in your browser, default user is admin ,password is admin888
(5) open http://serverip/phphbaseadmin in your browser, default user is admin ,password is admin888


16 changes: 10 additions & 6 deletions database/phphbaseadmin.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Target Server Type : MYSQL
Target Server Version : 50524
File Encoding : 65001
Date: 2013-08-23 16:39:07
Date: 2013-09-13 18:13:52
*/

SET FOREIGN_KEY_CHECKS=0;
Expand All @@ -25,14 +25,14 @@ CREATE TABLE `member` (
`user_name` varchar(255) DEFAULT NULL,
`pass_word` varchar(32) DEFAULT NULL,
`email_address` varchar(255) DEFAULT NULL,
`grant` varchar(255) DEFAULT NULL,
`grant` text,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

-- ----------------------------
-- Records of member
-- ----------------------------
INSERT INTO `member` VALUES ('1', 'admin', 'admin', '7fef6171469e80d32c0559f88b377245', 'shidongjie@baofeng.com', '');
INSERT INTO `member` VALUES ('1', 'admin', 'admin', '7fef6171469e80d32c0559f88b377245', 'shidongjie@baofeng.com', 'user_test,user_behavior_attribute_noregistered_test,user_behavior_attribute_noregistered_mid_uid_index,user_behavior_attribute_noregistered_index,user_behavior_attribute_noregistered,user_behavior_attribute,tsdb-uid,tsdb,test,movie_fav_visitor_list,movie_fav_user_list,message_visitor,message_user');

-- ----------------------------
-- Table structure for usergroup
Expand All @@ -42,7 +42,7 @@ CREATE TABLE `usergroup` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of usergroup
Expand All @@ -58,5 +58,9 @@ CREATE TABLE `zookeeper_cluster` (
`cluster_name` varchar(255) NOT NULL,
`server_list` varchar(255) NOT NULL,
PRIMARY KEY (`cluster_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=gbk;
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=gbk;

-- ----------------------------
-- Records of zookeeper_cluster
-- ----------------------------
INSERT INTO `zookeeper_cluster` VALUES ('6', 'gitlab', '192.168.205.6:2181');
Binary file removed screeshot/nodechild.png
Binary file not shown.

0 comments on commit d218e55

Please sign in to comment.