原先虚拟机上安装mysql-5.1.40版本,现在想换成mysql-5.6,结果初始化失败,细看过程有:
[Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.。。。
[Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).。。。
这样的两行表明,在安装时系统认定是在升级操作,以防万一事先要进行的操作:
- 删除之前在/tmp和/var/lib下有关mysql.sock文件
- 清除/etc/my.cnf,即删除配置文件
- 停止运行的mysqld进程
- 删除原先的mysql目录