Article Title: ubuntu: installation and configuration of storage nodes (NDB. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Install MySQL
Install the MySQL server on both the mysql-data1 and the mysql-data2:
$ Sudo apt-get update install mysql-server
During installation, the installer requires you to set the MySQL root Password. Set and remember the password.
After the program is installed, stop the MySQL service:
$ Sudo/etc/init. d/mysql stop
Configure my. cnf
On both the mysql-data1 and mysql-data2 servers, perform the same action.
First, back up the original/etc/mysql/my. cnf:
$ Sudo mv/etc/mysql/my. cnf/etc/mysql/my. cnf-back
Then, edit a new my. cnf:
$ Sudo nano/etc/mysql/my. cnf
The content is as follows:
After the file is saved, you can start the ndb service:
$ Sudo/etc/init. d/mysql-ndb start-initial
When you are prompted to start the ndb service, use/etc/init. d/mysql-ndb start. In the following cases, use/etc/init. d/mysql-ndb start-initial ("initialization" to start ):
◆ Start the ndb service for the first time;
◆ After the management node changes its configuration.
[1] [2] Next page