Ubuntu System: NDB node Configuration

Source: Internet
Author: User
Tags flush ord create database mysql command line

NDB node Configuration

1. Create a database for Ldirector

Now, let's create the Ldirectordb database and give the database permissions to ldirector users. Ldirector will use the database to check the running state of the two database nodes.

On the mysql-data1.mytest.com, create the database:

$ mysql-u Root-p

In the MySQL command line interface, enter the following command:

Mysql> GRANT all on ldirectordb.* to ' ldirector ' @ '% ' identified by ' LDIRECTORPASSW Ord ';

mysql> FLUSH privileges;

mysql> CREATE DATABASE Ldirectordb;

mysql> use Ldirectordb;

Mysql> CREATE TABLE Connectioncheck (Status INT) Engine=ndbcluster;

Mysql> INSERT into Connectioncheck () VALUES (1);

Mysql> quit

Then, the database is created on the mysql-data2.mytest.com, and the data is automatically copied from the Mysql-data1:

$ mysql-u Root-p

In the MySQL command line interface, enter the following command:

Mysql> GRANT all on ldirectordb.* to ' ldirector ' @ '% ' identified by ' LDIRECTORPASSW Ord ';

mysql> FLUSH privileges;

mysql> CREATE DATABASE Ldirectordb;

Mysql> quit

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.