Software » MySQL - PHP
Rappel du message précédent
MySQL - PHP
Publié le 23/10/2006 @ 14:39:00,
Par zionben, si tout se passe en localhost, tu n'as pas besoin d'activer cette option.
qui dit qu'il a pas mis 127.0.0.1 dans zabbix?
![:joce: :joce:](images/smileys/joce.gif)
![:neowen: :neowen:](images/smileys/neowen.gif)
Je suis le Roy
![:ocube: :ocube:](images/smileys/ocube.gif)
MySQL - PHP
Publié le 23/10/2006 @ 14:41:42,
Par Jean-Christopheben, si tout se passe en localhost, tu n'as pas besoin d'activer cette option.
Sinon, tu peux tester des droits d'accès avec mysqlaccess:
mysqlaccess localhost zabbix tadb -U root -P
Sinon, tu peux tester des droits d'accès avec mysqlaccess:
mysqlaccess localhost zabbix tadb -U root -P
Voilà le résultat :
intranet:~# mysqlaccess localhost zabbix zabbix -U root -P
mysqlaccess Version 2.06, 20 Dec 2000
By RUG-AIV, by Yves Carlier (Yves.Carlier@rug.ac.be)
Changes by Steve Harvey (sgh@vex.net)
This software comes with ABSOLUTELY NO WARRANTY.
Password for MySQL superuser root:
Access-rights
for USER 'zabbix', from HOST 'localhost', to DB 'zabbix'
+-----------------+---+ +-----------------+---+
| Select_priv | Y | | Lock_tables_priv | Y |
| Insert_priv | Y | | Execute_priv | Y |
| Update_priv | Y | | Repl_slave_priv | Y |
| Delete_priv | Y | | Repl_client_priv | Y |
| Create_priv | Y | | Create_view_priv | Y |
| Drop_priv | Y | | Show_view_priv | Y |
| Reload_priv | Y | | Create_routine_priv | Y |
| Shutdown_priv | Y | | Alter_routine_priv | Y |
| Process_priv | Y | | Create_user_priv | Y |
| File_priv | Y | | Ssl_type | ? |
| Grant_priv | Y | | Ssl_cipher | ? |
| References_priv | Y | | X509_issuer | ? |
| Index_priv | Y | | X509_subject | ? |
| Alter_priv | Y | | Max_questions | 0 |
| Show_db_priv | Y | | Max_updates | 0 |
| Super_priv | Y | | Max_connections | 0 |
| Create_tmp_table_priv | Y | | Max_user_connections | 0 |
+-----------------+---+ +-----------------+---+
NOTE: A password is required for user `zabbix'
The following rules are used:
db : 'localhost','zabbix','zabbix','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','- Y','Y','Y','Y','Y'
host : 'Not processed: host-field is not empty in db-table.'
user : 'localhost','zabbix','xibbaz','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','- Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','','0',' 0','0','0'
mysqlaccess Version 2.06, 20 Dec 2000
By RUG-AIV, by Yves Carlier (Yves.Carlier@rug.ac.be)
Changes by Steve Harvey (sgh@vex.net)
This software comes with ABSOLUTELY NO WARRANTY.
Password for MySQL superuser root:
Access-rights
for USER 'zabbix', from HOST 'localhost', to DB 'zabbix'
+-----------------+---+ +-----------------+---+
| Select_priv | Y | | Lock_tables_priv | Y |
| Insert_priv | Y | | Execute_priv | Y |
| Update_priv | Y | | Repl_slave_priv | Y |
| Delete_priv | Y | | Repl_client_priv | Y |
| Create_priv | Y | | Create_view_priv | Y |
| Drop_priv | Y | | Show_view_priv | Y |
| Reload_priv | Y | | Create_routine_priv | Y |
| Shutdown_priv | Y | | Alter_routine_priv | Y |
| Process_priv | Y | | Create_user_priv | Y |
| File_priv | Y | | Ssl_type | ? |
| Grant_priv | Y | | Ssl_cipher | ? |
| References_priv | Y | | X509_issuer | ? |
| Index_priv | Y | | X509_subject | ? |
| Alter_priv | Y | | Max_questions | 0 |
| Show_db_priv | Y | | Max_updates | 0 |
| Super_priv | Y | | Max_connections | 0 |
| Create_tmp_table_priv | Y | | Max_user_connections | 0 |
+-----------------+---+ +-----------------+---+
NOTE: A password is required for user `zabbix'
![:sad: :sad:](images/smileys/sad.gif)
The following rules are used:
db : 'localhost','zabbix','zabbix','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','- Y','Y','Y','Y','Y'
host : 'Not processed: host-field is not empty in db-table.'
user : 'localhost','zabbix','xibbaz','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','- Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','','0',' 0','0','0'
Dernière édition: 23/10/2006 @ 14:45:18
MySQL - PHP
Publié le 23/10/2006 @ 14:48:34,
Par maxdonc normalement,
mysql -h localhost -u zabbix -p zabbix
[entrer le mot de passe]
et hop du accède à ta DB.
Mais il y a une petite erreur dans la commande pour changer ton mot de passe.
C'est
mysql -h localhost -u zabbix -p zabbix
[entrer le mot de passe]
et hop du accède à ta DB.
Mais il y a une petite erreur dans la commande pour changer ton mot de passe.
C'est
set password = password("yournewpassword");
Trololo
MySQL - PHP
Publié le 23/10/2006 @ 14:53:29,
Par Jean-ChristopheCa y est!
Ca marche
Après avoir remis le mot de passe avec la méthode de Max, je sais me connecter dessus et du coup, mon interface fonctionne
Merci les amis!
Ca marche
![:smile: :smile:](images/smileys/smile.gif)
Après avoir remis le mot de passe avec la méthode de Max, je sais me connecter dessus et du coup, mon interface fonctionne
![:youpi: :youpi:](images/smileys/youpi.gif)
Merci les amis!
MySQL - PHP
Publié le 23/10/2006 @ 15:17:03,
Par zionAutant pour moi
![:ddr555: :ddr555:](images/smileys/ddr555.gif)
Me rappelle par contre d'un soucis sur un vieux libmysql pour lequel il faut utiliser OLD_PASSWORD('plop')
![:oh: :oh:](images/smileys/oh.gif)
![:oh: :oh:](images/smileys/oh.gif)
Je suis le Roy
![:ocube: :ocube:](images/smileys/ocube.gif)
MySQL - PHP
Publié le 23/10/2006 @ 15:19:38,
Par cauetAvant MySQL 4.1
SET PASSWORD FOR 'root'@'localhost' = OLD_PASSWORD('votre mot de passe');
SET PASSWORD FOR 'root'@'localhost' = OLD_PASSWORD('votre mot de passe');