1、查看linux是否安装mysql及其版本
查看版本号:
[root@localhost ~]#mysql -V
mysql Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (i486) using readline5.2
查看服务器是否运行
[root@localhost ~]# ps -el | grep mysqld 4 S 0 1796 1 0 85 0 - 1513 wait ? 00:00:00 mysqld_safe 4 S 27 1856 1796 0 78 0 - 34055 - ? 00:00:00 mysqld [root@localhost ~]# 如果命令结果如上,就说明服务器安装起来。
2、linux下mysql的安装于启动