Bonsoir,
[quote] mysql -u root -h localhost -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 43
Server version: 5.5.37-0+wheezy1 (Debian)
Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.
mysql>
Ensuite, tu crées la base de données:
Code:
mysql> CREATE DATABASE wordpress DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
Query OK, 1 row affected (0.01 sec)
et tu donnes les autorisations à wpdb. En faisant cela tu crées aussi l’utilisateur.
Code:
GRANT ALL PRIVILEGES ON wordpress.* to wpdb identified by ‘Pierre’;
Query OK, 0 rows affected (0.00 sec)
Tu quittes mysql:
Code:
mysql> exit
Bye
tu vérifies que tu as bien les droits:
Code:
mysql -u wpdb -p wordpress
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 44
Server version: 5.5.37-0+wheezy1 (Debian)
Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.
mysql>
Juste en faisant ça, tu t’es connecté en tant que “wpdb” donc wpdb existe bien.
Regarde les droits de “wpdb”:
Code:
mysql> SHOW GRANTS FOR CURRENT_USER;
±----------------------------------------------------------------------------------------------------+
| Grants for wpdb@% |
±----------------------------------------------------------------------------------------------------+
| GRANT USAGE ON . TO ‘wpdb’@’%’ IDENTIFIED BY PASSWORD ‘EB346C6F51FE215CD0433734A37249192A62EF63’ |
| GRANT ALL PRIVILEGES ON wordpress
. TO ‘wpdb’@’%’ |
±----------------------------------------------------------------------------------------------------+
2 rows in set (0.01 sec)
Tu vois ici que “wpdb” a tout les privilèges sur la base “wordpress”.
As tu la possibilité de réaliser tout ca?[/quote]
Bon j’ai fait des progrès…
car j’arrive à aller jusque là sans problème et je ne préfère pas dire où j’avais fais l’erreur car même si le ridicule ne tue pas…
Par contre je bloque à cette commande :
Réponse :
cp: impossible d’évaluer << /var/www/wordpress/wp-config-sample.php >>: Aucun fichier ou dossier de ce type
Bon je cherche encore si dans la commande j’ai bien écris…
Bonne soirée !