CheckMySQL Engine of database table August 30, 2020 CheckMySQL Engine of database table For a specific table: SHOW TABLE STATUS WHERE Name = 'table_name'; For all tables of t...Read More
Completely remove apache MySQL PHP ubuntu August 30, 2020 Completely remove apache MySQL PHP ubuntu Remove Apache and all of its dependencies. apt-get purge apache2 php5 libapache2-mod-php...Read More
Export MySQL database file using command line through ssh August 30, 2020 Export MySQL database file using command line through ssh mysql> exit; # mysqldump -u [username] -p [database name] > [database ...Read More
MySQL database setup & user creation commands August 30, 2020 MySQL database setup & user creation commands Login as root user with the below command. mysql -u root -p Create a database wit...Read More
Restore or import MySQL database file command prompt August 30, 2020 Restore or import MySQL database file command prompt mysql -u username -P port -ppassword databasename < /tmp/ databasename.sql Read More
Get all tables names from a database using a single query August 30, 2020 Get all tables names from a database using a single query SELECT TABLE_NAME FROM information_schema.tables WHERE TABLE_TYPE='BASE ...Read More
PHP MySQL example August 29, 2020 PHP MySQL example <?php // CONNECT TO THE DATABASE $DB_NAME = ‘DATABASE_NAME’; $DB_HOST = ‘DATABASE_HOST’; $DB_USER = ‘DATABAS...Read More
Get lists of all column names from database table August 29, 2020 Get lists of all column names and other information from the database table in MySQL using INFORMATION_SCHEMA.COLUMNS. All column n...Read More
Split MySQL string August 29, 2020 Split MySQL string Split mysql string using SUBSTRING_INDEX() function http://www.w3resource.com/mysql/string-functions/mysql-substr...Read More
Get time of all countries August 29, 2020 Get time of all countries http://www.worldtimeserver.com/current_time_in_UTC.aspx Get MySQL time: SELECT CURRENT_TIMESTAMP( ) S...Read More
Update existing date field, add interval using MySQL and PHP August 29, 2020 Update existing date field, add interval using MySQL and PHP UPDATE tbl_name SET end_date = end_date + INTERVAL 18 DAY – INTERVAL 1 MO...Read More
Fullcalendar integration with PHP MySQL August 29, 2020 Fullcalendar integration with PHP MySQL http://developer-paradize.blogspot.in/2013/06/jquery-fullcalendar-integration-with.html <!...Read More
Search full name in MySQL August 28, 2020 Search full name in MySQL SELECT large,fname,middle,lname,url,description FROM mainbirthday WHERE (MATCH(fname,middle,lname) AGAINST...Read More
Mysql tips & functions August 28, 2020 Mysql tips & functions http://zetcode.com/databases/mysqltutorial/functions/ http://www.barattalo.it/2012/10/19/13-mysql-tips/ ...Read More
Mysql Joins example August 28, 2020 Mysql Joins example http://www.datamartist.com/sql-inner-join-left-outer-join-full-outer-join-examples-with-syntax-for-sql-server ht...Read More
Format integer date in MySQL query August 28, 2020 Format integer date in MySQL query mysql> SELECT FROM_UNIXTIME(1196440219); -> '2007-11-30 10:30:19' mysql>...Read More
Installing Drupal on Linux with Apache Webserver August 25, 2020 To install and run Drupal, your web server must meet certain minimum requirements. SYSTEM REQUIREMENTS WEB SERVER Apache DATABASE ...Read More
Select Multiple Rows in One Column in SQL August 25, 2020 Select Multiple Rows in One Column in SQL By using FOR XML we can do this NAME MOBILE AAA 1234567890 AAA 3254656796 BBB 324324...Read More
Inserting Comma Separated Values into Individual Rows in MySQL August 25, 2020 DECLARE @String_Pos int,@String_Len int,@String_Cont nvarchar(100),@CommaSeparatedValues nvarchar(max) SET @CommaSeparatedValues='1|...Read More
SQL CURSOR August 25, 2020 A cursor is a temporary work area created in the system memory when a SQL statement is executed. A cursor contains information on a sele...Read More