Skip to main content
Maher Sakka's Blog
Main navigation
  • Home
  • Free Tools
    • Personal Salary Budgeting Calculator
    • Find My IP Address
    • Htpasswd Generator
  • Contact me
Language switcher
  • English
  • عربي
Breadcrumb
  1. Home
  2. Blog
  3. Database

Database

How to detect tables wihtout primary key in a database

How to detect tables wihtout primary key in a database

Tags
  • Database

Primary keys in Database are essential for many reasons; they maintain entity integrity and help the database work faster when searching or linking data.

Sometimes, the primary keys aren't set for some tables. It's better to create the keys for these tables for better performance and integrity.

The following SQL query list all tables without Primary Key in a specific Database (<database_name>):

  • Read more about How to detect tables wihtout primary key in a database
How to export Database with time-stamped file name in phpMyAdmin

How to export Database with time-stamped file name in phpMyAdmin

Tags
  • Database

To export Database with time-stamped file name in phpMyAdmin, you have to change the parameter  Output: > Save output to a file > File name template from :

@DATABASE@

to :

  • Read more about How to export Database with time-stamped file name in phpMyAdmin
How to clear Drupal cache via database

How to clear Drupal cache via database

Tags
  • Drupal
  • Database

It is usually not possible to clear the Drupal cache via the site administration or via the command:

 drush cache-rebuild

In this case the only way available is to clear the cache via the database with the command

 TRUNCATE

The question now is which tables should be flushed and which ones are cached?

  • Read more about How to clear Drupal cache via database
Database
Free Tools
  • Personal Salary Budgeting Calculator
  • Find My IP Address
  • Htpasswd Generator
Tags
  • Laravel
  • Linux
  • Drupal
  • Database
  • Tips & Tricks
  • Mobile
  • Servers
  • SEO
Recent posts
  • New Free Web Tools: IP Lookup & Htpasswd Generator
  • How to bypass the "PHP Fatal error: Allowed memory size of X bytes exhausted" error in Drush
  • How to detect tables wihtout primary key in a database
Monthly archive
  • May 2017 (2)
  • August 2018 (1)
  • October 2020 (1)
  • August 2023 (1)
  • July 2024 (2)
  • November 2024 (1)
  • July 2025 (10)
  • October 2025 (6)
  • December 2025 (1)
  • January 2026 (1)
Projects
  • elmanager.tn
  • 365mathex.com
  • vpop.tn
  • toufoula.tn
  • writethemoney.com
  • dinartunisien.com
RSS feed

mahersakka.com © 2024 
Build Your IT Skills, Grow Your Wealth with Maher Sakka