Skip to content
Snippets Groups Projects
Commit 953d3c36 authored by ines mkacher's avatar ines mkacher
Browse files

Update bddcheck.md

parent 28a66975
No related branches found
No related tags found
2 merge requests!14Mise à jour arborescence,!131.0
......@@ -83,12 +83,11 @@ psql -U user database < name_file.sql
### Trouver les mails non envoyés
```psql
maarchcourrier=# select alt_identifier from mlb_coll_ext where res_id in (select DISTINCT CAST(document->>'id' as int) from emails where status = 'ERROR' and document->>'id' is not null);
=# select alt_identifier from mlb_coll_ext where res_id in (select DISTINCT CAST(document->>'id' as int)
from emails where status = 'ERROR' and document->>'id' is not null);
```
```psql
psql VOTREBDD
select fulltext_result FROM res_letterbox where fulltex_result is not null
```
......@@ -124,7 +123,6 @@ ou
```psql
$ select * from users where firstname ilike '%lanie%';
```
ou
```psql
......@@ -145,6 +143,8 @@ $ update notif_email_stack set exec_date=NULL, exec_result='';
### Remettre un utilisateur supprimé (de manière logique en actif)
Changer le statut d'un utilisateur via la BDD
Au statut OK
```psql
......@@ -252,90 +252,55 @@ root@MaarchCourrier:/var/www/MaarchCourrier/custom/cs_MaarchCourrier/apps/maarch
```
502 service postgres restart
505 service postgresql status
506 su postgres
507 service postgresql
508 service postgresql restart
509 nano /etc/postgresql/9.6/main/postgresql.conf
510 su postgres
511 netstat -l |grep postgres
su postgres
512 pg_ctlcluster 9.6 main restart
service postgresql restart
513 systemctl status postgresql@9.6-main.service
service postgresql status
514 service postgresql status
nano /etc/postgresql/9.6/main/postgresql.conf
515 systemctl start postgresql@9.6-main.service
netstat -l |grep postgres
516 netstat -a
pg_ctlcluster 9.6 main restart
517 systemctl start postgresql
systemctl status postgresql@9.6-main.service
518 systemctl start postgresql@9.6-main.service
service postgresql status
519 pg_ctlcluster 9.6 main restart
systemctl start postgresql@9.6-main.service
520 pg_ctlcluster 9.6 main restart
netstat -a
521 systemctl daemon-reload
systemctl start postgresql@9.6-main.service
522 pg_ctlcluster 9.6 main restart
pg_ctlcluster 9.6 main restart
523 man pg_ctlcluster
systemctl daemon-reload
524 pg_ctlcluster status
pg_ctlcluster 9.6 main restart
525 man pg_ctlcluster
pg_ctlcluster --status
526 pg_ctlcluster sstatus
pg_ctlcluster 9.6 status
527 pg_ctlcluster -status
cd /var/lib/postgresql/9.6
528 pg_ctlcluster --status
postgres pg_ctlcluster 9.6 main start
529 man pg_ctlcluster
pg_ctlcluster 9.6 main start
530 pg_ctlcluster 9.6 status
journalctl -xn
531 cd /var/lib/postgresql/
htop
532 ls -ltr
top
533 cd 9.6
kill -9 25116
534 ls -ltr
top
535 postgres pg_ctlcluster 9.6 main start
536 pg_ctlcluster 9.6 main start
537 journalctl -xn
538 df -h
539 htop
540 top
541 kill -9 25116
542 top
543 pg_ctlcluster 9.6 main start
544 su postgres
545 history
pg_ctlcluster 9.6 main start
```
......@@ -386,8 +351,8 @@ SELECT nextval('seq_nuu_filtreelement')
```
```
493 service apache2 restart
494 service apache2 status
service apache2 restart
service apache2 status
```
```
......@@ -425,12 +390,10 @@ maarch=# update notif_email_stack set recipient = 'martine.trani@ville-agde.fr'
UPDATE 1
maarch=# \q
l
```
```
maarch=# update notif_email_stack set exec_date = null where email_stack_sid = 14158;
UPDATE 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment