Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[MySQL] il demarre pas :(
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Ulrar
n00b
n00b


Joined: 25 May 2006
Posts: 74

PostPosted: Mon Sep 01, 2008 11:32 am    Post subject: [MySQL] il demarre pas :( Reply with quote

Bonjour,
J'ai installer un LAMP, la partie apache/php fonctionne, mais MySQL pas moyen.
Je suis sous gentoo, donc j'ai suivi http://gentoo-wiki.com/HOWTO_MySQL.

Quand je l'installe, ça demare parfaitement.
Je fais les reglages, c'est a dire le secure_install et le set_permission , je remove donc la table test et l'user de test, un mot de passe pour le compte root, le droit de se connecté qu'en local tout ça, et j'ai crée un autre user avec tout les droits mais sur une table precise que j'ai crée (site) avec le set_permission.
Aucune erreur dans les scripts, ils disent tout les deux que tout est bon.

Donc j'ai fait un
Code:
/etc/init.d/mysql restart


et la, c'est le drame (xD).
ça me dis ça :
Code:
* Starting mysql ...
 * Starting mysql (/etc/mysql/my.cnf)
 * MySQL NOT started (1)                                                  [ !! ]




Les deux premieres etoiles sont verte, et la derniere est rouge.
J'ai chercher sur google mais j'ai trouvé qu'un type qui avait le meme probleme que moi, et personne lui a repondu.
J'ai essayé de desintaller mysql, de supprimer tout ses fichiers de config pour recommencer propre, mais meme chose encore une fois.
Merci =)
Back to top
View user's profile Send private message
Oupsman
Veteran
Veteran


Joined: 19 Jul 2004
Posts: 1042

PostPosted: Mon Sep 01, 2008 11:42 am    Post subject: Reply with quote

Les fichiers de logs dans /var/log/mysql contiendront peut être un message d'erreur pour faciliter l'analyse ... Parce que ma boule de cristal est en panne actuellement :wink:
_________________
--
L'idéal de nouveauté semble avoir remplacé l'idéal de progrès. C'est bien triste.

----
Unix philosophy: "Do one thing and do it well."
systemd: "Try to do everything and do it wrong."
Back to top
View user's profile Send private message
Ulrar
n00b
n00b


Joined: 25 May 2006
Posts: 74

PostPosted: Mon Sep 01, 2008 1:05 pm    Post subject: Reply with quote

en panne ? mince !
Tu l'a envoyé chez le reparateur ? c'est grave ? ^^

Bon, j'ai regarder les logs, y en a trois.
Deux vide et mydsld.err qui est plein ... d'erreur (sans blague ?).

J'ai pas une grande experience de mysqld (pour ne pas dire aucune) donc je copie le fichier log ici.
Code:
080829 18:49:01 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=mysqld-bin' to avoid this problem.
080829 18:49:01 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=mysqld-bin' to avoid this problem.
080829 18:49:02 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=mysqld21309-bin' to avoid this problem.
080829 18:49:02 [Note] //usr/sbin/mysqld: ready for connections.
Version: '5.0.60-log'  socket: '//var/run/mysqld/mysqld15870.sock'  port: 0  Gentoo Linux mysql-5.0.60-r1
080829 18:49:10 [Note] //usr/sbin/mysqld: Normal shutdown

080829 18:49:12 [Note] //usr/sbin/mysqld: Shutdown complete

080829 21:35:58 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=mysqld-bin' to avoid this problem.
080829 21:35:58 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=mysqld-bin' to avoid this problem.
080829 21:46:16 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=mysqld-bin' to avoid this problem.
080829 21:46:16 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=mysqld-bin' to avoid this problem.
080829 21:47:17  mysqld started
nohup: ignoring input
080829 21:47:17 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=mysqld-bin' to avoid this problem.
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
080829 21:47:17  InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
080829 21:47:17  InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
080829 21:47:18  InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
080829 21:47:18  InnoDB: Started; log sequence number 0 0
080829 21:47:18 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.0.60-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  Gentoo Linux mysql-5.0.60-r1
080830 14:26:00 [Note] /usr/sbin/mysqld: Normal shutdown

080830 14:26:00  InnoDB: Starting shutdown...
080830 14:26:01  InnoDB: Shutdown completed; log sequence number 0 43655
080830 14:26:01 [Note] /usr/sbin/mysqld: Shutdown complete

080830 14:26:01  mysqld ended

080830 14:26:33 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=mysqld-bin' to avoid this problem.
080830 14:26:33 - mysqld got signal 4 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.

key_buffer_size=0
read_buffer_size=262144
max_used_connections=0
max_connections=100
threads_connected=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 76800 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

thd=(nil)
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
frame pointer is NULL, did you compile with
-fomit-frame-pointer? Aborting backtrace!
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
080830 14:27:02 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=mysqld-bin' to avoid this problem.
080830 14:27:02 - mysqld got signal 4 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.

key_buffer_size=0
read_buffer_size=262144
max_used_connections=0
max_connections=100
threads_connected=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 76800 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

thd=(nil)
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
frame pointer is NULL, did you compile with
-fomit-frame-pointer? Aborting backtrace!
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
080830 14:28:50 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=mysqld-bin' to avoid this problem.
080830 14:28:50 - mysqld got signal 4 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.

key_buffer_size=0
read_buffer_size=262144
max_used_connections=0
max_connections=100
threads_connected=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 76800 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

thd=(nil)
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
frame pointer is NULL, did you compile with
-fomit-frame-pointer? Aborting backtrace!
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
080830 15:11:57 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=mysqld-bin' to avoid this problem.
080830 15:11:57 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=mysqld-bin' to avoid this problem.
080830 15:11:58 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=mysqld26631-bin' to avoid this problem.
080830 15:11:58 [Note] //usr/sbin/mysqld: ready for connections.
Version: '5.0.60-log'  socket: '//var/run/mysqld/mysqld20324.sock'  port: 0  Gentoo Linux mysql-5.0.60-r1
080830 15:12:06 [Note] //usr/sbin/mysqld: Normal shutdown

080830 15:12:08 [Note] //usr/sbin/mysqld: Shutdown complete

080830 15:12:29 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=mysqld-bin' to avoid this problem.
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
080830 15:12:29  InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
080830 15:12:29  InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
080830 15:12:29  InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
080830 15:12:29  InnoDB: Started; log sequence number 0 0
080830 15:12:29 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.0.60-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  Gentoo Linux mysql-5.0.60-r1
080830 15:20:11 [Note] /usr/sbin/mysqld: Normal shutdown

080830 15:20:11  InnoDB: Starting shutdown...
080830 15:20:11  InnoDB: Shutdown completed; log sequence number 0 43655
080830 15:20:11 [Note] /usr/sbin/mysqld: Shutdown complete

080830 15:20:15 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=mysqld-bin' to avoid this problem.
080830 15:20:15 - mysqld got signal 4 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.

key_buffer_size=0
read_buffer_size=262144
max_used_connections=0
max_connections=100
threads_connected=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 76800 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

thd=(nil)
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
frame pointer is NULL, did you compile with
-fomit-frame-pointer? Aborting backtrace!
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
080901 13:29:29 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=mysqld-bin' to avoid this problem.
080901 13:29:29 - mysqld got signal 4 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.

key_buffer_size=0
read_buffer_size=262144
max_used_connections=0
max_connections=100
threads_connected=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 76800 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

thd=(nil)
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
frame pointer is NULL, did you compile with
-fomit-frame-pointer? Aborting backtrace!
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.


Bon voila, c'est un peu gros mais j'ai aucune idée de ce qui sert et ce qui sert pas.
En gros ce qu'il dis, c'est que c'est mal compilé ?
J'ai quelque chose dans ma variable use que je devrait pas peut etre ?
Back to top
View user's profile Send private message
YetiBarBar
Guru
Guru


Joined: 23 Dec 2005
Posts: 532

PostPosted: Mon Sep 01, 2008 4:04 pm    Post subject: Reply with quote

Code:
/etc/mysql/my.conf
?[/code]

En particulier, vérifie les droits sur le fichier ibdata1 qui doit figuré dans ce fichier...
Back to top
View user's profile Send private message
Ulrar
n00b
n00b


Joined: 25 May 2006
Posts: 74

PostPosted: Mon Sep 01, 2008 7:16 pm    Post subject: Reply with quote

Eh bien, il n'existe pas.
ça explique sans doute bien des choses, mais pourquoi est ce qu'il n'a pas été crée ? ^o) .

Je vais aller regarder sur google ce que je suis cencé mettre la dedans.
Back to top
View user's profile Send private message
Ulrar
n00b
n00b


Joined: 25 May 2006
Posts: 74

PostPosted: Fri Sep 05, 2008 4:33 pm    Post subject: Reply with quote

Bon, je comprend pas, le fichier y est maintenant.
Apres un reboot ... (oui je m'y prend tard mais j'ai été pas mal occupé).
Bref, il est bien la, bien remplis. Et quand je lance mysql, c'est la meme chose, mais avec un 0 a la place du 1 entre les parentheses.

Le voila :
Code:
# /etc/mysql/my.cnf: The global mysql configuration file.
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/files/my.cnf-4.1,v 1.3 2006/05/05 19:51:40 chtekk Exp $

# The following options will be passed to all MySQL clients
[client]
#password               = your_password
port                  = 3306
socket                  = /var/run/mysqld/mysqld.sock

[mysql]
character-sets-dir=/usr/share/mysql/charsets
default-character-set=utf8

[mysqladmin]
character-sets-dir=/usr/share/mysql/charsets
default-character-set=utf8

[mysqlcheck]
character-sets-dir=/usr/share/mysql/charsets
default-character-set=utf8

[mysqldump]
character-sets-dir=/usr/share/mysql/charsets
default-character-set=utf8

[mysqlimport]
character-sets-dir=/usr/share/mysql/charsets
default-character-set=utf8

[mysqlshow]
character-sets-dir=/usr/share/mysql/charsets
default-character-set=utf8

[myisamchk]
character-sets-dir=/usr/share/mysql/charsets

[myisampack]
character-sets-dir=/usr/share/mysql/charsets

# use [safe_mysqld] with mysql-3
[mysqld_safe]
err-log                  = /var/log/mysql/mysql.err

# add a section [mysqld-4.1] or [mysqld-5.0] for specific configurations
[mysqld]
character-set-server      = utf8
default-character-set      = utf8
user                   = mysql
port                   = 3306
socket                   = /var/run/mysqld/mysqld.sock
pid-file                = /var/run/mysqld/mysqld.pid
log-error                = /var/log/mysql/mysqld.err
basedir                = /usr
datadir                = /var/lib/mysql
skip-locking
key_buffer                = 16M
max_allowed_packet          = 1M
table_cache             = 64
sort_buffer_size          = 512K
net_buffer_length          = 8K
read_buffer_size          = 256K
read_rnd_buffer_size       = 512K
myisam_sort_buffer_size    = 8M
language                = /usr/share/mysql/english

# security:
# using "localhost" in connects uses sockets by default
# skip-networking
bind-address            = 127.0.0.1

log-bin
server-id                = 1

# point the following paths to different dedicated disks
tmpdir                   = /tmp/
#log-update             = /path-to-dedicated-directory/hostname

# you need the debug USE flag enabled to use the following directives,
# if needed, uncomment them, start the server and issue
# #tail -f /tmp/mysqld.sql /tmp/mysqld.trace
# this will show you *exactly* what's happening in your server ;)

#log                  = /tmp/mysqld.sql
#gdb
#debug                  = d:t:i:o,/tmp/mysqld.trace
#one-thread

# uncomment the following directives if you are using BDB tables
#bdb_cache_size            = 4M
#bdb_max_lock            = 10000

# the following is the InnoDB configuration
# if you wish to disable innodb instead
# uncomment just the next line
#skip-innodb
#
# the rest of the innodb config follows:
# don't eat too much memory, we're trying to be safe on 64Mb boxes
# you might want to bump this up a bit on boxes with more RAM
innodb_buffer_pool_size = 16M
# this is the default, increase it if you have lots of tables
innodb_additional_mem_pool_size = 2M
#
# i'd like to use /var/lib/mysql/innodb, but that is seen as a database :-(
# and upstream wants things to be under /var/lib/mysql/, so that's the route
# we have to take for the moment
#innodb_data_home_dir      = /var/lib/mysql/
#innodb_log_arch_dir      = /var/lib/mysql/
#innodb_log_group_home_dir   = /var/lib/mysql/
# you may wish to change this size to be more suitable for your system
# the max is there to avoid run-away growth on your machine
innodb_data_file_path = ibdata1:10M:autoextend:max:128M
# we keep this at around 25% of of innodb_buffer_pool_size
# sensible values range from 1MB to (1/innodb_log_files_in_group*innodb_buffer_pool_size)
innodb_log_file_size = 5M
# this is the default, increase it if you have very large transactions going on
innodb_log_buffer_size = 8M
# this is the default and won't hurt you
# you shouldn't need to tweak it
set-variable = innodb_log_files_in_group=2
# see the innodb config docs, the other options are not always safe
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50

[mysqldump]
quick
max_allowed_packet          = 16M

[mysql]
# uncomment the next directive if you are not familiar with SQL
#safe-updates

[isamchk]
key_buffer                = 20M
sort_buffer_size          = 20M
read_buffer             = 2M
write_buffer             = 2M

[myisamchk]
key_buffer                = 20M
sort_buffer_size          = 20M
read_buffer             = 2M
write_buffer             = 2M

[mysqlhotcopy]
interactive-timeout


Quand a ibdata1, je vois pas de chemin dans ce fichier ... ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum