#1093 – You can’t specify target table ‘table_name’ for update in FROM clause – MySQL

Sep 19

#1093 – You can’t specify target table ‘table_name’ for update in FROM clause – MySQL

Have you ever got this MySQL error? Oh! You are searching for a solution right? You have come to the right place. Let me give you the simplest answer and it works charm. For the time being assume that this is your query. DELETE FROM table_name where coulmn_name IN (SELECT coulmn_name FROM table_name  WHERE coulmn_name > 10); What you can do is change the...

Read More

Indexing & MySQL

Aug 26

Indexing & MySQL

  Indexes! Whooh! Let me tell you what my experience about indexing a table. I had a SQL query which took 8-9 secs to fetch the data I want. After indexing now it only takes 1 sec. Interesting right. Let’s go through what’s indexing and how to and when to and stuff. You could find technical explanation of indexes in the internet. So let me elaborate...

Read More

How To Reset My WordPress Admin Password?

Aug 01

How To Reset My WordPress Admin Password?

Connect to the WordPress database via the phpMyAdmin tool at your web hosting account. Once in phpMyAdmin select the WordPress database & Open the SQL tab (look at the top navigation bar). write the following SQL query: UPDATE `wp_users` SET `user_pass` = MD5( ‘new_password_here‘ ) WHERE `wp_users`.`user_login` = “admin_username“; ...

Read More

Regular Expressions A. K. A. Regex

Jul 31

Let’s take a look at what’s regular expression and it’s use in the development environment. 1st of all regular expression is a small piece of code which looks for pattern(s). In web development environment Regex are used in the .htaccess file most frequently. Regexs are supposed to make developer’s life easier but most of the time it’s the other way around....

Read More