[root@esxi2v02 mysql-5.0.56]# /etc/init.d/mysqld start
Starting MySQL [ OK ]
[root@esxi2v02 mysql-5.0.56]# mysqladmin -u root password '123456'
[root@esxi2v02 mysql-5.0.56]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.0.56-log Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
这样MYSQL就可以搭建完成
[root@esxi2v02 webapps]# cd /soft/
[root@esxi2v02 soft]# tar zxvf JavaCenter_Home_2.0_GBK.tar.bz2
[root@esxi2v02 soft]# cd JavaCenter_Home_2.0_GBK
[root@esxi2v02 JavaCenter_Home_2.0_GBK]# mv * /usr/local/tomcat/webapps/mybbs/
[root@esxi2v02 JavaCenter_Home_2.0_GBK]# cd !$
cd /usr/local/tomcat/webapps/mybbs/
[root@esxi2v02 mybbs]# /etc/init.d/tomcat stop
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/local/jdk1.6.0_30
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar
[root@esxi2v02 mybbs]# /etc/init.d/tomcat start
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/local/jdk1.6.0_30
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar
[root@esxi2v02 mybbs]# netstat -natpl
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 23007/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1825/cupsd
tcp 0 0 0.0.0.0:38754 0.0.0.0:* LISTEN 1676/rpc.statd
tcp 0 0 0.0.0.0:5672 0.0.0.0:* LISTEN 2161/qpidd
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 18265/mysqld
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1658/rpcbind
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 20041/vsftpd
tcp 0 752 172.25.132.16:22 132.97.126.129:45316 ESTABLISHED 31389/0
tcp 0 0 :::22 :::* LISTEN 23007/sshd
tcp 0 0 ::1:631 :::* LISTEN 1825/cupsd
tcp 0 0 ::ffff:127.0.0.1:8005 :::* LISTEN 18583/java
tcp 0 0 :::8009 :::* LISTEN 18583/java
tcp 0 0 :::44015 :::* LISTEN 1676/rpc.statd
tcp 0 0 :::111 :::* LISTEN 1658/rpcbind
tcp 0 0 :::8080 :::* LISTEN 18583/java
tcp 0 0 ::1:35943 ::1:54204 TIME_WAIT -
tcp 0 0 ::ffff:127.0.0.1:58009 ::ffff:127.0.0.1:8005 TIME_WAIT -
tcp 0 0 ::1:58634 ::1:55584 TIME_WAIT -
http://172.25.132.16:8080/mybbs/install/
http://172.25.132.16:8080/mybbs/space.jsp?do=home
查看索引空间
SELECT CONCAT(ROUND(SUM(index_length)/(1024*1024*1024), 2), 'GB') AS 'Total Index Size' FROM information_schema.TABLES WHERE table_schema LIKE 'mybbs';
查看表空间
SELECT CONCAT(ROUND(SUM(data_length)/(1024*1024*1024), 2), ' GB') AS 'Total Data Size' FROM information_schema.TABLES WHERE table_schema LIKE 'mybbs';
查看所有表的信息
SELECT CONCAT(table_schema,'.',table_name) AS 'Table Name',
CONCAT(ROUND(table_rows/1000000,2),'M') AS 'Number of Rows',
CONCAT(ROUND(data_length/(1024*1024*1024),2),'G') AS 'Data Size',
CONCAT(ROUND(index_length/(1024*1024*1024),2),'G') AS 'Index Size' ,
CONCAT(ROUND((data_length+index_length)/(1024*1024*1024),2),'G') AS'Total'FROM information_schema.TABLES WHERE table_schema LIKE 'mybbs';