/etc/init.d/mysqld stop 移动数据: mv /var/lib/mysql/* /cd2/mysql/ 删除原目录 rmdir /var/lib/mysql/ 创建软连接: ln -s /cd2/mysql/ /var/lib/ 启动mysql: /etc/init.d/mysqld start
/etc/init.d/mysqld stop 移动数据: mv /var/lib/mysql/* /cd2/mysql/ 删除原目录 rmdir /var/lib/mysql/ 创建软连接: ln -s /cd2/mysql/ /var/lib/ 启动mysql: /etc/init.d/mysqld start
第四行是不是应该写成:“ln -s /cd2/mysql/ /var/lib/mysql/”?
I let myself become a fool .