启动MySQL5.7时报错:initialize specified but the data directory has files in it. Aborting 解决方法: vim /etc/my.cnf 查看文件,寻找datadir=... 查看到:datadir=/usr/local/mysql/data, 这个是data保存目录. 进入/usr/local/mysql/data后,查看到确实有数据: 将/usr/local/mysql/data备份, cd /usr/local/my
MySQL5.5编译安装 #1.2 cmake软件 cd /home/oldboy/tools/ tar xf cmake-2.8.8.tar.gz cd cmake-2.8.8 ./configure #CMake has bootstrapped. Now run gmake. gmake gmake install cd ../ #1.3依赖包 yum install ncurses-devel -y #1.4创建用户和组 groupadd mysql useradd mysql -s /