DevArticles.In
  • Home
  • Hindi to Unicode
  • PHP Debug
  • CakePHP Captcha
  • How-To
  • About
  • Contact

Tag: MySQL

Database rollback transactions in Laravel

May 19, 2022 Arvind KumarLaravelLeave a Comment on Database rollback transactions in Laravel

In this post I will show you an example of database rollback in Laravel application. Rolling back database changes in your Laravel application is required when you have many db operations to run in the process of completing a particular…

Read More→

How to create a user in MySQL/MariaDB and grant permissions on a specific database

September 11, 2021September 11, 2021 Arvind KumarMySQLLeave a Comment on How to create a user in MySQL/MariaDB and grant permissions on a specific database
mysql-logo

To create a user in MySQL or MariaDB and granting it permissions to access a database is a basic task when deploying a new website on a LAMP stack server. To read and write data on a database is a very common…

Read More→

How to enable MySQL slow query log and analyze it on Linux

December 30, 2019December 30, 2019 Arvind KumarMySQLLeave a Comment on How to enable MySQL slow query log and analyze it on Linux
mysql-logo

MySQL slow query log is helpful when you needed to debug slow down or failure of your MySQL server. Slow query log can house queries which took more than n number of seconds.

MySQL ‘show tables’: How to list tables in a MySQL database?

February 21, 2019February 21, 2019 Arvind KumarMySQLLeave a Comment on MySQL ‘show tables’: How to list tables in a MySQL database?
mysql-logo

This is very commonly asked question: How do I show or list all the tables in a MySQL (or MariaDB) database using mysql command line tool? In brief, to show the tables in a MySQL database, run the command:

Database date between query build file in CodeIgnitor administrator

June 19, 2012June 27, 2012 Arvind KumarCodeIgnitorLeave a Comment on Database date between query build file in CodeIgnitor administrator

Here’s the path to DB file in CodeIgnitor admin end which contains query related stuff. Like building order, qhere and select blocks. One may want to do some debugging in this file. In this file i need to make no…

Read More→

How to update a mysql table with the count of another table while using like statement

February 16, 2011February 16, 2011 Arvind KumarMySQLLeave a Comment on How to update a mysql table with the count of another table while using like statement

While working on a web links directory i wanted to update categories table’s num_listings column with the count of listings under each category. The category id was stored something like this in listings table:

A few notes on joining a MySQL table to itself to get unique combination of field data

October 6, 2010October 30, 2010 Arvind KumarMySQLLeave a Comment on A few notes on joining a MySQL table to itself to get unique combination of field data

Just a few notes on joining a MySQL table to itself to get unique combination of data stored in its fields. Suppose we have a MySQL table named `keywords` having fields `word1`, `word2` and `word3`. Once we have got a…

Read More→

Fixing ‘mysql’ is not recognized as an internal or external command in Windows7

October 6, 2010October 30, 2010 Arvind KumarMiscelleneous, MySQL, WAMP, Windows14 Comments on Fixing ‘mysql’ is not recognized as an internal or external command in Windows7

Having WAMP installed when i try to type mysql in my windows command prompt it would give me the following error:

MYSQL custom sorting – order by field value

May 27, 2009October 19, 2010 Arvind KumarMySQL, PHP2 Comments on MYSQL custom sorting – order by field value

Yesterday i had a somewhat new (for me ) and different kind of requirement while displaying MySQL result on a page. I had a category menu in which masters and slaves were sorted alphabetically and in ascending order.

Full-text search in MySQL

April 14, 2009April 18, 2009 Arvind KumarMySQLLeave a Comment on Full-text search in MySQL

Normally, most of us use “SELECT * FROM table WHERE field1 LIKE ‘%$keyword%’” OR field2 LIKE ‘%$keyword%‘ ..etc” to search our table and get results. This is slow and inefficient approach, as it does return all (too many) rows in…

Read More→

Recent Posts

  • Sending Laravel Notifications Email to Single Email Address
  • Database rollback transactions in Laravel
  • Automatic Deployment of your Git Push to Remote Server
  • CSV Content Validation with FormRequest Rules in Laravel
  • Using Unique Validation Rule in Form Request in Laravel
Copyright © All rights reserved.
Blog Kit by WP Charms