Mysql

RSS Subscribe

PhpMyAdmin: No activity within 1440 seconds, please log in again!!!

Posted on August 4, 2017 by Suresh Kamrushi in Mysql, PHP

+2-2 If you do not do any activity in your PHPMyAdmin it will log out automatically after 1440 seconds or say 24 minutes and shows …

Mysql error due to reserve words in query.

Posted on October 18, 2016 by Suresh Kamrushi in Mysql

+5-3 Sometime it happens, you create field name or table name with reserve keywords in mysql. And than try to run query using that keyword, …

Mysql Event scheduler

Posted on September 18, 2016 by Suresh Kamrushi in Mysql

+2-1 I have already posted a blog (Event Scheduler an alternative to cronjob) with different advantages of Even scheduler over cron job, here I am …

Finding nearest location using latitude and longitude.

Posted on August 12, 2015 by Suresh Kamrushi in Mysql

+52-11 Here I am explaining how you can find nearest latitude and longitude with user entered latitude and longitude. Here i am trying to search …

Mysql varchar max length

Posted on July 7, 2015 by Suresh Kamrushi in Mysql

+20-5 Maximum data what we can store in varchar in mysql was 255. But after Mysql version 5.0.3 varchar can store maximum of 65,535 characters. …

Wamp server port conflict with skype

Posted on March 24, 2014 by Suresh Kamrushi in Mysql, PHP

+27-2 If you are a PHP developer with WAMP install in you system which gives error for port number (if skype is already started). WAMP does …

Generating ERD using PHPMyAdmin

Posted on March 5, 2014 by Suresh Kamrushi in Mysql, PHP

Today I need to generate ERD for my Database. If you search on net you will get number of people suggest Workbench for it but as i am using PHPMyAdmin as an GUI for my Mysql database I just don’t want to install workbench only for generating ERD. And above all when PHPMyAdmin support it (from 3.4 version) than what more I need.

How to access remote mysql server using local phpmyadmin

Posted on February 28, 2014 by Suresh Kamrushi in Mysql, PHP

It is very tough to connect your remote mysql box especially when you are working with VPN. Initially I used telnet to connect to mysql box than I try to use workbench. Workbench is good and better than using telnet but again it consume more memory and if VPN got disconnected it just hanged. It so irritating. Than I try to integrate my PHPMyAdmin to configure to access remote mysql server and it is really very easy to setup.

Maximum Number of Columns Per Table – Mysql

Posted on January 31, 2014 by Suresh Kamrushi in Mysql

The maximum row size constrains the number of columns because the total width of all columns cannot exceed this size. For example, utf8 characters require up to three bytes per character, so for a CHAR(255) CHARACTER SET utf8 column,

Mysql Event Scheduler an alternative to cronjob.

Posted on January 31, 2014 by Suresh Kamrushi in Mysql

Mysql introduce Event scheduler which we can use alternative to Cronjob. There are many advantages over cronjob like:
1) It is directly written on Mysql Server.
2) This is platform independent. Your application might be written in any language it does not matters. You just need to know mysql.

Different ways to find 2nd highest salary from employee table

Posted on December 15, 2013 by Suresh Kamrushi in Mysql

Now a days i am conducting PHP / Mysql interview for my organisation. And came across many of resumes with 3-4 years of experience in web development. But couple of developer given me the correct answer to this question. That is what i think i should share this.

Mysql Query : Nth highest salary from employee table

Posted on August 10, 2013 by Suresh Kamrushi in Mysql

You can write query in number of ways, but i list few of them which are easy to write and understand. Mysql having advantage of writing query with “limit”, by which you can handle start and end point.

Example to use variable in Mysql

Posted on August 10, 2013 by Suresh Kamrushi in Mysql

After a long time i used variable in SQL queries.
This time i have to calculate time/days difference between added date of a particular news and current date, so that viewers get how old a particular news is.

How Mysql reduce overhead from PHP!!!!!

Posted on August 10, 2013 by Suresh Kamrushi in Mysql, PHP

I enjoy to play with Mysql queries. what i learn from my past experience is,if you are doing a maintainance project or you are handling a project which is developed by some other developer and he mess up with the database definitions, than you “WILL LEARN A LOT NEW THINGS”…………. How?

MySql Function Between.. AND in LEFT JOIN

Posted on August 10, 2013 by Suresh Kamrushi in Mysql

If we are storing range of values in a field in a table and we want to see what are the values falling between these range, we can use “Between.. and” function along with Left Join in Mysql.

Implementation of User permission with PHP & Mysql Bitwise operators.

Posted on August 10, 2013 by Suresh Kamrushi in Mysql, PHP

Another way to implement user permission in your application and also a good use of bitwise operator. This can be done with PHP as well as Mysql.

Here I am showing how we can implement it with Mysql.

Maximum Number of Columns Per Table – Mysql

Posted on August 10, 2013 by Suresh Kamrushi in Mysql

+9-3 Maximum we can have 4096 columns per table, but exact limit depends on several factors, listed below: 1) Every table has a maximum row …

PHP-Mysql Interview Questions

Posted on August 10, 2013 by Suresh Kamrushi in Mysql, PHP

Some PHP interview question i am sharing with you, which are really interesting and upgraded my knowledge. It might help you out…:)