Centos use and mysql cluster, etc.

1 After installing centos6.3 under the virtual machine, how to set the root password

 1. Enter the boot directory when restarting, press "e" and use the up and down arrow keys to select the system for which you have forgotten the password.
2. Next, you can see the screen as shown in the figure below, and then you use the up and down keys to select the latest kernel, and then press "e" to enter the grub editing mode.
3. After performing the previous step, you can see the following screen, add "space" at the end of rlgb quiet, and then type "single", or directly enter the number "1" and hit [enter].
4. Press the "b" key (meaning boot) to reboot the system. That is to enter the single-user maintenance mode. In this mode, you do not need to enter a password to gain control of the terminal (and you are root).
5. After entering the system, you can passwd root after sh-3.2# to change the root password. You can reboot after making changes.

 

Second, the virtual machine centos system shares the windows 7 host folder

The windows folder is set to be shared. After installing vmtools, select the shared folder, restart the system, and you can see that there are shared folders in the /mnt/hgfs directory.

 

MySQL Cluster is a highly practical and highly redundant version of MySQL suitable for distributed computing environments. It uses the NDB Cluster storage engine, allowing multiple MySQL servers to run in one Cluster

Third, compile and install mysql-cluster.

 

 

 yum -y install make gcc-c++ cmake bison-devel  ncurses-devel

 

cp /mnt/hgfs/share/mysql-cluster-gpl-7.1.30.tar.gz /usr/local

cd /usr/local

tar -zxvf mysql-cluster-gpl-7.1.30.tar.gz

mv mysql-cluster-gpl-7.1.30 mysql

groupadd mysql
useradd -g mysql mysql #Modify
/usr/local/mysql permissions

chown -R mysql:mysql /usr/local/mysql

cd mysql

./configure

 make

make install

 

Enter the installation path, execute the initialization configuration script, and create the database and tables that come with the system

scripts/mysql_install_db --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql

 

 -----------------------------------

The final practice of this blog failed, because the downloaded cluster did not match, it failed too much,

I downloaded: mysql-cluster-gpl-7.1.30.tar.gz

The online documents correspond to: mysql-cluster-gpl-7.0.8a-linux-i686-glibc23.tar.gz 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326619014&siteId=291194637