Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1410 connectés 

  FORUM HardWare.fr
  Programmation
  SQL/NoSQL

  Mysql ne démarre pas [debian etch ]

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Mysql ne démarre pas [debian etch ]

n°1855405
bakastef
Posté le 26-02-2009 à 09:58:24  profilanswer
 

Salut les gens,  :bounce:  :hello:  
 
 
Je viens d'installer mysql sur un tout récemment installé debian lenny.
Comme j'ai absolument besoin de mysql 5.0.33, j'ai fait une install à partir des sources mysql.
 
Un "./configure, make install" plus tard, tout s'est bien passé (apparement), mais pas moyen de lancer mysql:
 

Code :
  1. Replic:~# mysql start
  2. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
  3. Replic:~#


 
J'ai cherché du coté du my.cnf:

Code :
  1. #
  2. # The MySQL database server configuration file.
  3. #
  4. # You can copy this to one of:
  5. # - "/etc/mysql/my.cnf" to set global options,
  6. # - "~/.my.cnf" to set user-specific options.
  7. #
  8. # One can use all long options that the program supports.
  9. # Run program with --help to get a list of available options and with
  10. # --print-defaults to see which it would actually understand and use.
  11. #
  12. # For explanations see
  13. # http://dev.mysql.com/doc/mysql/en/ [...] ables.html
  14. # This will be passed to all mysql clients
  15. # It has been reported that passwords should be enclosed with ticks/quotes
  16. # escpecially if they contain "#" chars...
  17. # Remember to edit /etc/mysql/debian.cnf when changing the socket location.
  18. [client]
  19. port            = 3306
  20. socket         = /var/run/mysqld/mysqld.sock
  21. # Here is entries for some specific programs
  22. # The following values assume you have at least 32M ram
  23. # This was formally known as [safe_mysqld]. Both versions are currently parsed.
  24. [mysqld_safe]
  25. socket         = /var/run/mysqld/mysqld.sock
  26. nice            = 0
  27. [mysqld]
  28. #
  29. # * Basic Settings
  30. #
  31. user            = mysql
  32. pid-file       = /var/run/mysqld/mysqld.pid
  33. socket         = /var/run/mysqld/mysqld.sock
  34. port            = 3306
  35. basedir         = /usr
  36. datadir         = /var/lib/mysql
  37. tmpdir          = /tmp
  38. language        = /usr/share/mysql/english
  39. skip-external-locking
  40. #
  41. # Instead of skip-networking the default is now to listen only on
  42. # localhost which is more compatible and is not less secure.
  43. bind-address            = 127.0.0.1
  44. #
  45. # * Fine Tuning
  46. #
  47. key_buffer              = 16M
  48. max_allowed_packet      = 16M
  49. thread_stack            = 128K
  50. thread_cache_size       = 8
  51. thread_cache_size       = 8
  52. # This replaces the startup script and checks MyISAM tables if needed
  53. # the first time they are touched
  54. myisam-recover          = BACKUP
  55. #max_connections        = 100
  56. #table_cache            = 64
  57. #thread_concurrency     = 10
  58. #
  59. # * Query Cache Configuration
  60. #
  61. query_cache_limit       = 1M
  62. query_cache_size        = 16M
  63. #
  64. # * Logging and Replication
  65. #
  66. # Both location gets rotated by the cronjob.
  67. # Be aware that this log type is a performance killer.
  68. #log            = /var/log/mysql/mysql.log
  69. #
  70. # Error logging goes to syslog. This is a Debian improvement :)
  71. #
  72. # Here you can see queries with especially long duration
  73. #log_slow_queries       = /var/log/mysql/mysql-slow.log
  74. #long_query_time = 2
  75. #log-queries-not-using-indexes
  76. #
  77. # The following can be used as easy to replay backup logs or for replication.
  78. # note: if you are setting up a replication slave, see README.Debian about
  79. #       other settings you may need to change.
  80. #server-id              = 1
  81. #log_bin                        = /var/log/mysql/mysql-bin.log
  82. expire_logs_days        = 10
  83. max_binlog_size         = 100M
  84. #binlog_do_db           = include_database_name
  85. #binlog_ignore_db       = include_database_name
  86. #
  87. # * BerkeleyDB
  88. #
  89. # Using BerkeleyDB is now discouraged as its support will cease in 5.1.12.
  90. skip-bdb
  91. #
  92. # * InnoDB
  93. #
  94. # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
  95. # Read the manual for more InnoDB related options. There are many!
  96. # You might want to disable InnoDB to shrink the mysqld process by circa 100MB.
  97. #skip-innodb
  98. #
  99. # * Security Features
  100. #
  101. # Read the manual, too, if you want chroot!
  102. # chroot = /var/lib/mysql/
  103. #
  104. # For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
  105. #
  106. # ssl-ca=/etc/mysql/cacert.pem
  107. # ssl-cert=/etc/mysql/server-cert.pem
  108. # ssl-key=/etc/mysql/server-key.pem
  109. ...


 
Le chemin vers le socket est defini /var/run/mysqld/mysqld.sock, pkoi le chercher dans "/tmp/mysql.sock" ? (cf erreur du début)
Quelqu'un pourrait-il m'aider?   :??:  
 
 
Merci d'avance. :bounce:   :jap:  

mood
Publicité
Posté le 26-02-2009 à 09:58:24  profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  SQL/NoSQL

  Mysql ne démarre pas [debian etch ]

 

Sujets relatifs
Pb débutant PHP Mysql (easy PHP 3.0)Quoi choisir => Oracle ? MySQL ? Microsoft SQL ?
[MYSQL 5] Resultat d'une procédure stockée dans une table temporaireErreur MySQL ?
[RESOLU] [PHP/MYSQL] Problème d'exécution de requete imbriquéComment synchroniser des tables mysql ?
[PHP / MySQL] Saisie de texte et formatage[MySQL] Requête un peu spéciale...
probleme mysql 
Plus de sujets relatifs à : Mysql ne démarre pas [debian etch ]


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR