myqsl升级为MariaDB10.0.11,请问lnmp重启脚本如何修改
我把myqsl升级为MariaDB10.0.11,使用/root/lnmp restart重启时提示:
# /root/lnmp restart
=========================================================================
Manager for LNMP V1.0,Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org
Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Stoping LNMP...
Stoping nginx...done
Gracefully shutting down php-fpm . done
/root/lnmp: line 49: /etc/init.d/mysql: No such file or directory
Starting LNMP...
Starting nginx...done
Starting php-fpm Zend Guard Loader requires Zend Engine API version 220090626.
The Zend Engine API version 220121212 which is installed, is newer.
Contact Zend Technologies at http://www.zend.com/ for a later version of Zend Guard Loader.
done
/root/lnmp: line 39: /etc/init.d/mysql: No such file or directory
请问如果修改可以使用/root/lnmp restart一键重启
另外我把数据库数据目录想放到/data/
mariadb 目录下,我是如下操作的:mkdir -p /data/mariadb
/etc/init.d /mariadb stop
cp -rp /usr/local/mariadb/var/* /data/mariadb
sed -i 's/datadir = \/usr\/local\/mariadb\/var/datadir = \/data\/mariadb/g' /etc/my.cnf
chown -R mariadb:mariadb /data/mariadb
/etc/init.d /mariadbstart请问这样可以吗?
另外我修改为mariadb还有什么东方需要注意的,
[ 本帖最后由 cnzz 于 2014-6-13 08:38 编辑 ] 如果启用了innodb的还需要innodb的路径和mysql的参数是一样的,常见问题里写了
回复 2# 的帖子
额,我刚修改了# Uncomment the following if you are using InnoDB tablesinnodb_data_home_dir = /data/mariadb
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /data/mariadb
但是/root/lnmp restart脚本重启还是不行啊,提示:
# /root/lnmp restart
=========================================================================
Manager for LNMP V1.0,Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org
Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Stoping LNMP...
Stoping nginx...done
Gracefully shutting down php-fpm . done
/root/lnmp: line 49: /etc/init.d/mysql: No such file or directory
Starting LNMP...
Starting nginx...done
Starting php-fpm Zend Guard Loader requires Zend Engine API version 220090626.
The Zend Engine API version 220121212 which is installed, is newer.
Contact Zend Technologies at http://www.zend.com/ for a later version of Zend Guard Loader.
done
/root/lnmp: line 39: /etc/init.d/mysql: No such file or directory
# 升级时有提示php 5.5不支持zend guard loader,把php.ini里zend guard loader部分删除
mariadb重启用/etc/init.d/mariadb restart来重启 楼主,我修改好了,发到我博客里了,可以去看看
http://www.xzwtb.com/263.html
页:
[1]