指令 ps -ef|grep mysql 得出结果
root 17659 1 0 2011 ?00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid
mysql17719 17659 0 2011 ?03:14:57 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --socket=/var/lib/mysql/mysql.sock
usr/bin/mysql 是指:mysql的运行路径
var/lib/mysql 是指:mysql数据库文件的存放路径
usr/lib/mysql 是指:mysql的安装路径
$sel = "select * from a "$query=mysql_query($sel)
while($row=mysql_fetch_array($query)){
$ssid[]=$row['sh_id']
}
echo array_pop($ssid)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)