最近开始研究mysql,有一台服务器,第一次部署时有一些配置文件的路径有问题,打算重新部署,因为mysql用的二进制安装方式,删除了mysql目录,重新部署是报错:
# ./scripts/mysql_install_db --defaults-file=/etc/my.cnf --user=mysql
Installing MySQL system tables...2015-05-29 11:18:38 16020 [Note] InnoDB: The InnoDB memory heap is disabled
2015-05-29 11:18:38 16020 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-05-29 11:18:38 16020 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-05-29 11:18:38 16020 [Note] InnoDB: Using Linux native AIO
2015-05-29 11:18:38 16020 [Note] InnoDB: Using CPU crc32 instructions
2015-05-29 11:18:38 16020 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-05-29 11:18:38 16020 [Note] InnoDB: Completed initialization of buffer pool
2015-05-29 11:18:38 16020 [ERROR] InnoDB: ./ibdata1 can't be opened in read-write mode
2015