Count number files in your folder/directory LINUX

To Count number files in your folder/directory LINUX type in the following :

find . -type f | wc -l

To find out all files with extension *.jpg
find . -type f -name *.jpg | wc -l

Number rows in SQL REQUEST - MYSQL

To know the Number of rows of your SQL REQUEST - {with MYSQL} type the following :
mysql_num_rows ( resource $result )

Number rows in SQL REQUEST - MYSQL

To know the Number of rows of your SQL REQUEST - {with MYSQL} type the following :
mysql_num_rows ( resource $result )

Timeout error occurred trying to start MySQL Daemon.

IF YOU HAVE THE FOLLOWING ERROR :
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL: [FAILED]
[1]+ Exit 1 /etc/init.d/mysqld restart

SOLUTION
Find the MYSQL processes running
ps -ef | grep -i mysql

Then kill them
kill -9 processnumber

MYSQL IMPORT EXPORT DATA

IMPORT DATA

mysql -u root -p -h localhost DatabaseName < Data.sql

All Databases

mysql -u root -p < data.sql

EXPORT DATA

SOLUTION SPAM - either permitted nor denied by best guess record for domain - GOOGLE APPS - AMAZON SERVICE

If you have a similar issue :
spf=neutral (google.com: xx.xxx.xxx.xx is neither permitted nor denied by best guess record for domain of apache@xx.xx.xxxx.x.ec2.internal)

ADD the following in your Domain Name configuration

TXT (Text)
@ v=spf1 include:_spf.google.com ~all

Pages

Latest Post

Popular Post

Our Skills

Author

Project Director Information Architect Database Administrator Unix Administrator Senior Developer Project Manager Product Manager Web Marketer Cloud Engineer

Contact Us

For any questions or project ideas please contact me at the following.

I'm here