Delete users by date wordpress Mysql

Delete users by date wordpress Mysql

Some days before I enabled the my site registration as subscribers. In last seven days there are four thousand subscribers has been registered on my site. After reviewing the users and there server request logs I got to know about that was spam users which was registered to my site. Wordpress is always easy target for spammers and hackers. I tried to use some code for remove the wordpress users but then later I used following Mysql commands for removing he wordpress users. Continue reading

How can we save Ram usages using some wordpress theme tricks

How can we save Ram usages using some wordpress theme tricks

We mostly use the get_permalink(), get_the_title() methods in our wordpress theme. Do not pass the post ID as parameter. if you’re doing a get_permalink or get_title() call with Post id, 8 out of 10 times you’ll need to more of … Continue reading

Solved issue: Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock

Solved issue- Can-t connect to local MySQL server through socket

One day I faced issue with mysql.sock file. I solved the issue with following commands. [root@localhost ~]# mysqladmin -u root shutdown mysqladmin: connect to server at ‘localhost’ failed error: ‘Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)’ Check … Continue reading

Solved issue: Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock

Solved issue-Can-t connect to local MySQL server through socket

[root@localhost ~]# mysqladmin -u root shutdown mysqladmin: connect to server at ‘localhost’ failed error: ‘Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)’ Check that mysqld is running and that the socket: ‘/var/lib/mysql/mysql.sock’ exists! Using following command I checked … Continue reading