Forgot MySQL root user password (Linux)

Last Updated on Monday, 28 March 2011 10:50 Written by A.Jesin Monday, 28 March 2011 10:50

Reset your MySQL root password if you ever forget it by following the instructions provided here. Earlier I wrote an article to reset the MySQL root password in windows, this article does the same thing in Linux resetting the MySQL root user’s password if you forget it. The instructions outlined here are based on the Linux command-line. The procedure is same for both Windows and Linux, stopping the MySQL service, creating an file with the SQL query to reset the Linux password and executing it through the init-file option. Read More…

Javascript Validation with Regular Expressions

Last Updated on Tuesday, 22 March 2011 10:58 Written by A.Jesin Tuesday, 22 March 2011 10:58

After reading this article you’ll be able to do advanced javascript validation using regular expressions a.k.a. RegExp for basic javascript validation read Javascript Validation – Textbox Combobox Radiobutton Checkbox. Using regular expressions the entered content can be validated with advanced conditions like the string entered shouldn’t contain spaces, special characters, numbers, uppercase or lowercase etc. Once you learn the art of using regular expressions you can use it with many computer languages. Read More…

Forgot MySQL root user password (Windows)

Last Updated on Sunday, 23 October 2011 02:15 Written by A.Jesin Saturday, 19 March 2011 06:50

This tutorial describes how to reset the MySQL root user password if the root password is forgotten. The procedure in windows involves creating a new file which contains a query to UPDATE the MySQL root user’s password from the table named ‘user’ and then start the MySQL process again. Before starting check whether MySQL is running as a service or as a process. To check this got to start -> run or [windows] + R and type services.msc. If you find a service named MySQL or something similar to wampmysql then MySQL is running as a service right click it and stop it. Else open task manager and locate a process named mysqld and “End” the process. Read More…

PHP Sessions Tutorial

Last Updated on Tuesday, 8 March 2011 11:23 Written by A.Jesin Tuesday, 8 March 2011 11:23

This PHP sessions tutorial explains how sessions work, commonly used PHP session handling functions and how to use then. A session is the time duration that starts from the time a user visits a website and ends when he/she leaves the website. Usually when we use PHP variables they can be accessed only in the script in which they are used but sessions variables can be accessed by all PHP scripts which are accessed during that “session” Sessions greatly help in personalizing an user’s experience on a website, they can also be used to create Login pages using PHP. We’ll first see how PHP sessions work. Read More…

Javascript Validation – Textbox Combobox Radiobutton Checkbox

Last Updated on Tuesday, 25 October 2011 12:20 Written by A.Jesin Wednesday, 2 March 2011 10:55

Validate your HTML form with Javascript validation. The tutorial describes Javascript validation of textboxes, comboboxes, radio buttons and checkboxes. In Javascript we create a function which checks if some value is entered in the textbox or selected in the case of combobox, radiobutton, checkbox. If a textbox is empty or an option is not selected we can use javascript to display an alert message, and highlight the empty field and also we should make sure the page stays the same and doesn’t get “submitted” Read More…