Are you sure that MySQL is actually running? Opening the firewall won't automatically start the service that could be listening to that port.
Are you sure that you need to open the firewall? MySQL uses a local socket on the filesystem if the access is done from the same machine the service runs on.
[root]# service iptables stop
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter [ OK ]
Unloading iptables modules: [ OK ]
[root]# /etc/init.d/mysql start
Starting MySQL [ OK ]
Checking Database socket .................................Database is not running
I used the selinux off and on but not work, here the list below;
mysql.err
InnoDB: No valid checkpoint found.
InnoDB: If this error appears when you are creating an InnoDB database,
InnoDB: the problem may be that during an earlier attempt you managed
InnoDB: to create the InnoDB data files, but log file creation failed.
InnoDB: If that is the case, please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.0/en/error-creating-innodb.html
110809 10:22:07 [ERROR] Default storage engine (InnoDB) is not available
110809 10:22:07 [ERROR] Aborting
110809 10:22:07 [Note] /firescope/mysql/bin/mysqld: Shutdown complete
---------- Post updated at 10:55 AM ---------- Previous update was at 10:34 AM ----------
actually, these was setup by my colleague and he was resigned without proper turn-over. these was working before. suddenly these was so slow due to 100% used storage occupied by ibdata1,ib_logfile0,ib_logfile1. then according to documents i search on google i follow the instruction to stop mysql and deleted the 3 files, then start the mysql thats the time the mysql.sock error.
Those innodb files are only safe to delete when you're not using innodb. If they were big, they almost certainly held data. Probably best to restore them.
Rule #1 is never delete anything you can't restore. Always back it up somewhere.