实质上就是创建并赋予权限给'root'@'%'用户
drop user 'root'@'%';
by 刘迎光@萤火虫工作室
OpenBI交流群:495266201
MicroService 微服务交流群:217722918
mail: liuyg#liuyingguang.cn
博主首页(防止爬虫):http://blog.liuyingguang.cn
OpenBI问答社区:http://openbi.liuyingguang.cn/
聚合表使用出错
by 刘迎光@萤火虫工作室
OpenBI交流群:495266201
MicroService 微服务交流群:217722918
mail: liuyg#liuyingguang.cn
博主首页(防止爬虫):http://blog.liuyingguang.cn
OpenBI问答社区:http://openbi.liuyingguang.cn/
首先准备两台装有MariaDB或者MySQL的虚拟机,我是两台win2003虚拟机,都装有MariaDB,两个分别为192.168.100.217 和 192.168.100.218两台机器基本配置一样,但是有一点,其中一台的my.ini文件中配置server_id = 2 (即两台机器的server_id不能相同)192.168.100.217的my.ini文件中[mysqld]节点添加参数如下:log-bin=binlog #开启binlog功能log-bin-index=binlog.indexsync_binlog=0server_id = 1 #两台机器不能重复,一个1 一个2 就好192.168.100.218的my.ini文件中[mysqld]节点添加参数如下:log-bin=binlog #开启binlog功能log-bin-index=binlog.indexsync_binlog=0server_id = 2 #两台机器不能重复,一个1 一个2 就好
GRANT replication slave ON *.* TO'testsync'@'%' identified by 'abc123,';flush privileges;
flush tables with read lock;show master status;执行完show这一步骤,请记住几个参数,一个是File字段的文件名称,以及Position数值,在后续需要使用unlock tables;
2、在192.168.100.218上执行如下:
先执行添加mster命令,有几点必须注意的,就是master_log_file的值必须为在217上执行show的时候获取的File的名称,master_log_pos值必须为Position值,否则会出错
change mas
我的做法是先在schema中定义好聚合表的相关值,如:<cube name="cube_agent_state" caption="test" encoding="UTF-8"> <Table name="fact_agent_status_fact"> <AggName name="agg_c_fact_agent_status_fact" > <AggFactCount column="fact_count"/> <AggForeignKey factColumn="time_id" aggColumn="time_id" /> <AggForeignKey factColumn="agent_no" aggColumn="agent_no" /> <AggForeignKey factColumn="agent_status" aggColumn="agent_status" /> <AggForeignKey factColumn="reason_code" aggColumn="reason_code" /> <AggMeasure name="[Measures].[times]" column="times"/> <AggMeasure name="[Measures].[length]" column="length"/> </AggName> </Table> <Dimension name="times" foreignKey="time_id" caption="时间"> <Hierarchy hasAll="true" primaryKey="time_id" > <Table name="dim_date" /> <Level name="year" column="y_id" uniqueMembers="false" type="String" levelType="TimeYears" c
Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so:cannot open shared object file: No such file or directoryGtk-Message: Failed to load module "pk-gtk-module": libpk-gtk-module.so: cannot open shared object file: No such file or directory
Could not open /dev/vmmon
怎么办,百度了一圈,没找到正确可用的解决办法,所谓的解决办法全部无效,无奈,寻求古哥(google)
tar xvf /usr/lib/vmware/modules/source/vmmon.tar
make
cp vmmon.ko /lib/modules/2.6.32-504.el6.x86_64/misc/vmmon.ko
modprobe vmmon
4、启动虚拟机吧,应该解决了,至少我是解决了,哈哈
by 刘迎光@萤火虫工作室
OpenBI交流群:495266201
MicroService 微服务交流群:217722918
mail: liuyg#liuyingguang.cn
博主首页(防止爬虫):http://blog.liuyingguang.cn
OpenBI问答社区:http://openbi