启动mysql报错

浏览次数:178

现象:

mysql启动错误

原因:

是因为/etc/my.cnf  datadir=  配置缺少或错误

  

解决办法

指定mysql的data目录即可

Datadir=/opt/mysql/data