Why can't make dumps of MySQL DB even though I have ALL privileges?

Just wondering, why I can’t make dumps of database even though I have ALL PRIVILEGES granted. +———————————————————-+ | Grants for me@% | +———————————————————-+ | GRANT USAGE ON *.* TO `me`@`%` | | GRANT ALL PRIVILEGES ON `me`.* TO `me`@`%` | +———————————————————-+ 2 rows in set (0.01 sec) When trying mysqldump –single-transaction –skip-add-locks –routines –triggers –column-statistics=FALSE… Read More Why can't make dumps of MySQL DB even though I have ALL privileges?

Permissions problems with proc_open

I’m having permissions problems when running the following PHP script as root: #!/usr/bin/php <?php $ph = proc_open(‘whoami’, [[‘pipe’,’r’],[‘pipe’,’w’],[‘file’,’/tmp/foo.bar’, ‘w’]], $fds); if ($ph) { echo ‘command output: ‘ . stream_get_contents($fds[1]); proc_close($ph); } else { echo ‘proc_open failed’ . PHP_EOL; } The script itself runs fine if /tmp/foo.bar doesn’t exist, or is owned by root. But if… Read More Permissions problems with proc_open

getting error on creating a file mkdir: cannot create directory ‘name’: Read-only file system

I have a system of dual boot windows installed in HDD Linux installed in SSD When I am trying to change any file say create a new folder using my Linux system in HDD mkdir name I am getting errors like mkdir: cannot create directory ‘name’: Read-only file system I have also tried to change… Read More getting error on creating a file mkdir: cannot create directory ‘name’: Read-only file system

AttributeError: 'Request' object has no attribute 'DELETE'

I am trying to add permission for deleting an object. views.py class DeleteView(APIView): permission_classes = [IsAllowedDelete] def delete(self, request, id): obj = Mymodel.objects.get(id=id) obj.delete() return Response({"detail" : "Deleted successfully"}, status.HTTP_204_NO_CONTENT) urls.py path(‘remove/<int:id>’, vm.DeleteView.as_view(), name=’delete_view’), permissions.py class IsAllowedDelete(permissions.BasePermission): def has_permission(self, request, view): if request.method == "DELETE": print(‘id : ‘,request.DELETE["id"]) return True else: return False But I… Read More AttributeError: 'Request' object has no attribute 'DELETE'