Tom's Guide > Forum > Systèmes d'exploitation (Windows, Mac OS, Linux...) > probleme de connexion mysql [config.inc.php]

probleme de connexion mysql [config.inc.php]

Forum Systèmes d'exploitation (Windows, Mac OS, Linux...) : probleme de connexion mysql [config.inc.php]

TomsGuide.com : 800 000 inscrits répondent à toutes vos questions high-tech et informatique. Pour obtenir de l'aide, inscrivez-vous gratuitement !
Mot :    Pseudo :           
 

bonjour je suis newbie sur linux mandrake.
j'ai monté un serveur linux avec le serveur apache de linux par défaut puis ajouter le rpm de phpmyadmin 2.6.2-rc1.

ce serveur est en local j'y heberge les pages de mon site pour y bosser en local lors de grosse mise a jour.

j'ai reussi hier a faire fonctionner phpmyadmin en paramétrant le fichier config.inc.php

j'ai bosser toute une soirée puis éteint le serveur.
il se trouve que cet après midi j'ai allumé mon serveur et la depuis la machine locale je ne peux plus acceder a mon site erreur mysql. j'ai essayer de me logger sur la base sql et rien ne fonctionne. je n'ai pourtant rien modiier dans le fichier config.inc

phpmyadmin me demande de me logger. je rentre utilisateur root sans mot de passe et rien ! il me jette alors que cet utilisateur root sans mot de passe est configuré dans le config.inc.php

bref j'ai réedité ce fichier et pourtant la config est resté la même !

y'aurait-il un sage de linux qui pourrait m'aider ! je vous remerci

voici la configuration du config.inc.php

Code :
  1. <?php
  2. /* $Id: config.inc.php,v 2.52 2005/03/16 17:22:08 lem9 Exp $ */
  3. // vim: expandtab sw=4 ts=4 sts=4:
  4. /**
  5. * phpMyAdmin Configuration File
  6. *
  7. * All directives are explained in Documentation.html
  8. */
  9. /**
  10. * Sets the php error reporting - Please do not change this line!
  11. */
  12. if (!isset($old_error_reporting)) {
  13.     error_reporting(E_ALL);
  14.     @ini_set('display_errors', '1');
  15. }
  16. /**
  17. * Your phpMyAdmin url
  18. *
  19. * Complete the variable below with the full url ie
  20. *    http://www.your_web.net/path_to_your_phpMyAdmin_directory/
  21. *
  22. * It must contain characters that are valid for a URL, and the path is
  23. * case sensitive on some Web servers, for example Unix-based servers.
  24. *
  25. * In most cases you can leave this variable empty, as the correct value
  26. * will be detected automatically. However, we recommend that you do
  27. * test to see that the auto-detection code works in your system. A good
  28. * test is to browse a table, then edit a row and save it.  There will be
  29. * an error message if phpMyAdmin cannot auto-detect the correct value.
  30. *
  31. * If the auto-detection code does work properly, you can set to TRUE the
  32. * $cfg['PmaAbsoluteUri_DisableWarning'] variable below.
  33. */
  34. $cfg['PmaAbsoluteUri'] = 'http://192.168.1.50/admin/phpMyAdmin/';
  35. /**
  36. * Disable the default warning about $cfg['PmaAbsoluteUri'] not being set
  37. * You should use this if and ONLY if the PmaAbsoluteUri auto-detection
  38. * works perfectly.
  39. */
  40. $cfg['PmaAbsoluteUri_DisableWarning'] = TRUE;
  41. /**
  42. * Disable the default warning that is displayed on the DB Details Structure page if
  43. * any of the required Tables for the relationfeatures could not be found
  44. */
  45. $cfg['PmaNoRelation_DisableWarning']  = FALSE;
  46. /**
  47. * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
  48. * at least one server configuration uses 'cookie' auth_type, enter here a
  49. * passphrase that will be used by blowfish. The maximum length seems to be 46
  50. * characters.
  51. */
  52. $cfg['blowfish_secret'] = 'dvolv2';
  53. /**
  54. * Server(s) configuration
  55. */
  56. $i = 0;
  57. // The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use $cfg['Servers'][0].
  58. // You can disable a server config entry by setting host to ''.
  59. $i++;
  60. $cfg['Servers'][$i]['host']          = 'sql.divxonline'; // MySQL hostname or IP address
  61. $cfg['Servers'][$i]['port']          = '';          // MySQL port - leave blank for default port
  62. $cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave blank for default socket
  63. $cfg['Servers'][$i]['connect_type']  = 'tcp';      // How to connect to MySQL server ('tcp' or 'socket')
  64. $cfg['Servers'][$i]['extension']    = 'mysql';    // The php MySQL extension to use ('mysql' or 'mysqli')
  65. $cfg['Servers'][$i]['compress']      = FALSE;      // Use compressed protocol for the MySQL connection
  66.                                                     // (requires PHP >= 4.3.0)
  67. $cfg['Servers'][$i]['controluser']  = '';          // MySQL control user settings
  68.                                                     // (this user must have read-only
  69. $cfg['Servers'][$i]['controlpass']  = '';          // access to the "mysql/user"
  70.                                                     // and "mysql/db" tables).
  71.                                                     // The controluser is also
  72.                                                     // used for all relational
  73.                                                     // features (pmadb)
  74. $cfg['Servers'][$i]['auth_type']    = 'http';    // Authentication method (config, http or cookie based)?
  75. $cfg['Servers'][$i]['user']          = 'root';      // MySQL user
  76. $cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed
  77.                                                     // with 'config' auth_type)
  78. $cfg['Servers'][$i]['only_db']      = '';          // If set to a db-name, only
  79.                                                     // this db is displayed in left frame
  80.                                                     // It may also be an array of db-names, where sorting order is relevant.
  81. $cfg['Servers'][$i]['verbose']      = '';          // Verbose name for this host - leave blank to show the hostname
  82. $cfg['Servers'][$i]['pmadb']        = '';          // Database used for Relation, Bookmark and PDF Features
  83.                                                     // (see scripts/create_tables.sql)
  84.                                                     //  - leave blank for no support
  85.                                                     //    DEFAULT: 'phpmyadmin'
  86. $cfg['Servers'][$i]['bookmarktable'] = '';          // Bookmark table
  87.                                                     //  - leave blank for no bookmark support
  88.                                                     //    DEFAULT: 'pma_bookmark'
  89. $cfg['Servers'][$i]['relation']      = '';          // table to describe the relation between links (see doc)
  90.                                                     //  - leave blank for no relation-links support
  91.                                                     //    DEFAULT: 'pma_relation'
  92. $cfg['Servers'][$i]['table_info']    = '';          // table to describe the display fields
  93.                                                     //  - leave blank for no display fields support
  94.                                                     //    DEFAULT: 'pma_table_info'
  95. $cfg['Servers'][$i]['table_coords']  = '';          // table to describe the tables position for the PDF schema
  96.                                                     //  - leave blank for no PDF schema support
  97.                                                     //    DEFAULT: 'pma_table_coords'
  98. $cfg['Servers'][$i]['pdf_pages']    = '';          // table to describe pages of relationpdf
  99.                                                     //  - leave blank if you don't want to use this
  100.                                                     //    DEFAULT: 'pma_pdf_pages'
  101. $cfg['Servers'][$i]['column_info']  = '';          // table to store column information
  102.                                                     //  - leave blank for no column comments/mime types
  103.                                                     //    DEFAULT: 'pma_column_info'
  104. $cfg['Servers'][$i]['history']      = '';          // table to store SQL history
  105.                                                     //  - leave blank for no SQL query history
  106.                                                     //    DEFAULT: 'pma_history'
  107. $cfg['Servers'][$i]['verbose_check'] = TRUE;        // set to FALSE if you know that your pma_* tables
  108.                                                     // are up to date. This prevents compatibility
  109.                                                     // checks and thereby increases performance.
  110. $cfg['Servers'][$i]['AllowRoot']    = TRUE;        // whether to allow root login
  111. $cfg['Servers'][$i]['AllowDeny']['order']          // Host authentication order, leave blank to not use
  112.                                     = '';
  113. $cfg['Servers'][$i]['AllowDeny']['rules']          // Host authentication rules, leave blank for defaults
  114.                                     = array();
  115. $i++;
  116. $cfg['Servers'][$i]['host']            = '';
  117. $cfg['Servers'][$i]['port']            = '';
  118. $cfg['Servers'][$i]['socket']          = '';
  119. $cfg['Servers'][$i]['connect_type']    = 'tcp';
  120. $cfg['Servers'][$i]['extension']      = 'mysql';
  121. $cfg['Servers'][$i]['compress']        = FALSE;
  122. $cfg['Servers'][$i]['controluser']    = '';
  123. $cfg['Servers'][$i]['controlpass']    = '';
  124. $cfg['Servers'][$i]['auth_type']      = 'http';
  125. $cfg['Servers'][$i]['user']            = '';
  126. $cfg['Servers'][$i]['password']        = '';
  127. $cfg['Servers'][$i]['only_db']        = '';
  128. $cfg['Servers'][$i]['verbose']        = '';
  129. $cfg['Servers'][$i]['pmadb']          = ''; // 'phpmyadmin' - see scripts/create_tables.sql
  130. $cfg['Servers'][$i]['bookmarktable']  = ''; // 'pma_bookmark'
  131. $cfg['Servers'][$i]['relation']        = ''; // 'pma_relation'
  132. $cfg['Servers'][$i]['table_info']      = ''; // 'pma_table_info'
  133. $cfg['Servers'][$i]['table_coords']    = ''; // 'pma_table_coords'
  134. $cfg['Servers'][$i]['pdf_pages']      = ''; // 'pma_pdf_pages'
  135. $cfg['Servers'][$i]['column_info']    = ''; // 'pma_column_info'
  136. $cfg['Servers'][$i]['history']        = ''; // 'pma_history'
  137. $cfg['Servers'][$i]['verbose_check']  = TRUE;
  138. $cfg['Servers'][$i]['AllowRoot']      = TRUE;
  139. $cfg['Servers'][$i]['AllowDeny']['order']
  140.                                       = '';
  141. $cfg['Servers'][$i]['AllowDeny']['rules']
  142.                                       = array();
  143. $i++;
  144. $cfg['Servers'][$i]['host']            = '';
  145. $cfg['Servers'][$i]['port']            = '';
  146. $cfg['Servers'][$i]['socket']          = '';
  147. $cfg['Servers'][$i]['connect_type']    = 'tcp';
  148. $cfg['Servers'][$i]['extension']      = 'mysql';
  149. $cfg['Servers'][$i]['compress']        = FALSE;
  150. $cfg['Servers'][$i]['controluser']    = '';
  151. $cfg['Servers'][$i]['controlpass']    = '';
  152. $cfg['Servers'][$i]['auth_type']      = 'http';
  153. $cfg['Servers'][$i]['user']            = '';
  154. $cfg['Servers'][$i]['password']        = '';
  155. $cfg['Servers'][$i]['only_db']        = '';
  156. $cfg['Servers'][$i]['verbose']        = '';
  157. $cfg['Servers'][$i]['pmadb']          = ''; // 'phpmyadmin' - see scripts/create_tables.sql
  158. $cfg['Servers'][$i]['bookmarktable']  = ''; // 'pma_bookmark'
  159. $cfg['Servers'][$i]['relation']        = ''; // 'pma_relation'
  160. $cfg['Servers'][$i]['table_info']      = ''; // 'pma_table_info'
  161. $cfg['Servers'][$i]['table_coords']    = ''; // 'pma_table_coords'
  162. $cfg['Servers'][$i]['pdf_pages']      = ''; // 'pma_pdf_pages'
  163. $cfg['Servers'][$i]['column_info']    = ''; // 'pma_column_info'
  164. $cfg['Servers'][$i]['history']        = ''; // 'pma_history'
  165. $cfg['Servers'][$i]['verbose_check']  = TRUE;
  166. $cfg['Servers'][$i]['AllowRoot']      = TRUE;
  167. $cfg['Servers'][$i]['AllowDeny']['order']
  168.                                       = '';
  169. $cfg['Servers'][$i]['AllowDeny']['rules']
  170.                                       = array();
  171. // If you have more than one server configured, you can set $cfg['ServerDefault']
  172. // to any one of them to autoconnect to that server when phpMyAdmin is started,
  173. // or set it to 0 to be given a list of servers without logging in
  174. // If you have only one server configured, $cfg['ServerDefault'] *MUST* be
  175. // set to that server.
  176. $cfg['ServerDefault'] = 1;              // Default server (0 = no default server)
  177. $cfg['Server']        = '';
  178. unset($cfg['Servers'][0]);

Liens sponsorisés
Inscrivez-vous ou connectez-vous pour masquer ceci.
Tom's Guide > Forum > Systèmes d'exploitation (Windows, Mac OS, Linux...) > probleme de connexion mysql [config.inc.php]
Aller à :

Il y a 1477 utilisateurs connus et inconnus. Pour voir la liste des connectés connus, cliquez ici.

Attention

Vous allez répondre sur un sujet resté inactif pendant plus de 6 mois.
Assurez-vous d'apporter des éléments nouveaux à la discussion avant de poursuivre.

Répondre Annuler
Liens