MySQL Query :
DELETE FROM `Tablename` WHERE id NOT IN ( SELECT MIN(id) FROM (SELECT * FROM Tablename ) as t1 GROUP BY field1, field2, field3, field4, field5 )
Here fields are column on which you want to group the duplicate rows.
MySQL Query :
DELETE FROM `Tablename` WHERE id NOT IN ( SELECT MIN(id) FROM (SELECT * FROM Tablename ) as t1 GROUP BY field1, field2, field3, field4, field5 )
Here fields are column on which you want to group the duplicate rows.
find to search for the quota_v1 and quota_v2 modules in the /lib/modules/... directory:LABEL=/home /home ext2 defaults,usrquota,grpquota 0 0
edquota to Set a User Quota# edquota ramesh Disk quotas for user jagdeep (uid 50001): Filesystem blocks soft hard inodes soft hard /dev/sda3 1419352 0 0 1686 0 0
# edquota ramesh Disk quotas for user jagdeep (uid 50001): Filesystem blocks soft hard inodes soft hard /dev/sda3 1419352 100M 110M 1686 0 0Save and close the file
setquota to Set a User Quota# repquota /home
*** Report for user quotas on device /dev/sda3
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 566488 0 0 5401 0 0
nobody -- 1448 0 0 30 0 0
jagdeep -- 1419352 0 0 1686 0 0
john -- 26604 0 0 172 0 0
php-fpm, which mean for "fastCGI process manager". Nginx to pass PHP requests to this software for processing.php-fpm module along with an additional helper package for mysql database server php-mysql, which will allow PHP to communicate with your database backend. Do this by typing:server {
listen 80;
root /var/www/html;
index index.php index.html index.htm index.nginx-debian.html;
server_name test.com;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}
Test your new configuration file for syntax errors by typing:info.php in your document root:<?php
phpinfo();
# Default server configuration
server {
listen 80 default_server;
listen [::]:80 default_server;
# SSL configuration
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name example.com www.example.com;
location ~ ^/~(.+?)(/.*)?$ {
alias /home/$1/public_html$2;
index index.html index.htm;
autoindex on;
}
}