所以我正在配置mysql来运行多个实例。
当我尝试初始化datadir时,我收到此错误。
# mysql_install_db --user=mysql -- datadir=/var/lib/mysql/mysql1
[WARNING] mysql_install_db is deprecated. Please consider switching to mysqld --initialize
[ERROR] The data directory '/var/lib/mysql/mysql1' already exist and is not empty.
# mysql_install_db --user=mysql -- datadir=/var/lib/mysql/mysql2
[WARNING] mysql_install_db is deprecated. Please consider switching to mysqld --initialize
[WARNING] The bootstrap log isn't empty:
[WARNING] 2015-12-14T15:15:33.485673Z 0 [Warning] -- bootstrap is deprecated. Please consider using --initialize instead
[Warning] Changed limits: max_open_files: 1024 (requested 5000)
[Warning] Changed limits: table_open_cache: 431 (requested 2000)