停掉mysql服务
service mysqld stop
创建好数据目录,将数据文件备份后移动过去
mkdir /db
zip -r mysql.zip /var/lib/mysql
mv /var/lib/mysql /db
修改mysql.cnf配置文件
vim /etc/my.cnf
修改socket:
socket = /db/mysql/mysql.sock
修改启动脚本:
vim /etc/init.d/mysql
修改datadir:
datadir=/db/mysql
然后启动Mysql服务
service mysqld start
如何在使用epanet仿真计算管壁的热交换
If the temperature of the pipe wall (i.e., the surrounding rock) can be considered a constant, then the existing EPANET program and interface can be used by making the following change to the wallrate() function at the bottom of the quality.c module: replace the code segment underneath the "if (WallOrder == 0.0)" with the following:
if (WallOrder == 0.0)
{
return kf * ...