MySQL Cluster API节点 中mysql.user 表为MyISAM引擎,所以每个API都要配置权限系统,MySQL已经为我们提供了共享权限脚本。这个脚本主要作用就是将mysql.user 表MyISAM引擎更换为NDBCLUSTER引擎。
以linux
- Centos 单机 源码 编译 安装 mysql cluster 7.2.7 source install为例,执行下面的脚本可以实现共享权限。
tudou@b2c.xiaomi.com
#share privilege
/opt/soft/mysql-cluster-7.2.7/bin/mysql -S/tmp/mysql3350.sock </opt/soft/mysql-cluster-7.2.7/share/ndb_dist_priv.sql
/opt/soft/mysql-cluster-7.2.7/bin/mysql -S/tmp/mysql3351.sock </opt/soft/mysql-cluster-7.2.7/share/ndb_dist_priv.sql
/opt/soft/mysql-cluster-7.2.7/bin/mysql -S/tmp/mysql3352.sock </opt/soft/mysql-cluster-7.2.7/share/ndb_dist_priv.sql
/opt/soft/mysql-cluster-7.2.7/bin/mysql -S/tmp/mysql3353.sock </opt/soft/mysql-cluster-7.2.7/share/ndb_dist_priv.sql
#one of cluster API
CALL mysql.mysql_cluster_move_privileges();
FLUSH PRIVILEGES;
#init root password
/opt/soft/mysql-cluster-7.2.7/bin/mysqladmin -S/tmp/mysql3353.sock -u root password 123456
#one of cluster API
delete from user where LENGTH(password)<10;
#create user
GRANT ALL PRIVILEGES ON *.* TO 'tudou'@'192.168.%' IDENTIFIED BY '123456';
原文链接:
http://blog.csdn.net/ylqmf/article/details/7866517
分享到:
相关推荐
Mysql Cluster 7.6.4 环境搭建,非常详细的文档。。。。
MySQL Cluster 是专门用来做MySQL集群的程序,简单来讲它是一种技术,该技术能够在无共享的系统中部署内存中数据库的“Cluster”,通过无共享体系结构,系统能够使用各种廉价的硬件,并对所有硬件没有任何特殊的要求...
This guide explores how to tune and optimize the MySQL Cluster database to handle diverse workload requirements. It discusses data access patterns and how to build distribution awareness into ...
MySQL Cluster(MySQL 集群) 测试环境: CentOS4.6 数据库版本: mysql-cluster-gpl-6.3.20
MySQL Cluster 8.0.27( Microsoft Windows) 适用于Windows (x86, 64-bit), ZIP Archive
电子书 mysql Cluster.pdf
MySQL Cluster集群构建实战
MySQL Cluster 8.0.27(mysql-cluster-community-server-8.0.27-1.el8.x86_64.rpm ) 适用于Red Hat Enterprise Linux 8 / Oracle Linux 8 (x86, 64-bit), RPM Package MySQL Server
MySQL Cluster 8.0.27( mysql-cluster-community-server-8.0.27-1.el7.x86_64.rpm) 适用于Red Hat Enterprise Linux 7 / Oracle Linux 7 (x86, 64-bit), RPM Package MySQL Server
利用MySQL Cluster 7.0 + LVS 搭建高可用环境 周三, 2009/05/13 - 10:19 — yejr 目录: • 1、前言 • 2、安装 • 2.1 LVS 安装、配置 • 2.2 MySQL Cluster安装 • 3、测试 • 3.1 mysqlslap测试结果 •...
MySQL Cluster 8.0.27(mysql-cluster-community-server-8.0.27-1.el8.aarch64.rpm ) 适用于Red Hat Enterprise Linux 8 / Oracle Linux 8 (ARM, 64-bit), RPM Package MySQL Server
MySQL Cluster 是一种技术,该技术允许在无共享的系统中部署"内存中"数据库的 Cluster 。通过无共享体系结构,系统能够使用廉价的硬件,而且对软硬件无特殊要求。此外,由于每个组件有自己的内存和磁盘,不存在单点...
在MySQL Cluster 环境的配置文件 config.ini 里面,每一类节点都有两个(或以上)的相应配置项组,每一类节点的配置项都主要由两部分组成,一部分是同类所有节点相同的配置项组,在[NDB_MGM DEFAULT]、[NDBD DEFAULT...
mysql cluster集群介绍,及其实现架构
mysqlcluster的环境搭建,mysql集群应用
MySQL Cluster 概述,官方文件翻译。
This provides unique insight into the challenges of scaling web databases, which in turn has driven the development of MySQL Cluster, integrating key technologies to enable the scaling of rapidly ...
mysqlcluster白皮书