Can't connect to local MySQL server through socket '/tmp/mysql.sock' (13)

Déjà fait :
Bloc de code:
127:~ romain$ sudo find /usr/local/mysql/data -type f -exec rm {} ';'
127:~ romain$ sudo hostname 127.0.0.1
127:~ romain$ cd /usr/local/mysql
127:/usr/local/mysql romain$ sudo ./scripts/mysql_install_db
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
050203 23:05:29 Warning: Setting lower_case_table_names=2 because file system for /usr/local/mysql-standard-4.0.23-apple-darwin6.8-powerpc/./data/ is case insensitive
050203 23:05:29 ./bin/mysqld: Shutdown Complete


To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h 127.0.0.1 password 'new-password'
See the manual for more instructions.

You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the ./bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com

127:/usr/local/mysql romain$ sudo chown -R mysql data/
127:/usr/local/mysql romain$ sudo chown -R mysql data/
127:/usr/local/mysql romain$ sudo ./bin/mysqld_safe &
[1] 27164
127:/usr/local/mysql romain$ Starting mysqld daemon with databases from /usr/local/mysql/data
STOPPING server from pid file /usr/local/mysql/data/127.0.0.1.pid
050203 23:05:47  mysqld ended

NB : Le 127 a remplacé le prompt précédent après que j'ai essayé une première fois la méthode, apparemment 127.0.0.1 c'est trop dur pour lui.
 
salut,

bon alors, je viens aux nouvelles un peu tardivement, mais je constate une fois de plus que Supermoquette a fait honneur à ses points Saint Maclou :D.... t'en es où ?

Désolé de ne revenir que maintenant :(... j'avais piscine hier avec mon pdg... mais promis, aujourd'hui, je vais rien glander au boulot et essayer de suivre l'affaire ;).
 
Mmmhh c'est de l'acharnement thérapeutique ça ! ton système est-il sain ? si tu reboot après un update_prebinding et une répa des auto ça le fait toujours ???? :mouais:
 
Dark Templar a dit:
Ouais ça ressemble pas mal à mon problème, donc en français je doit faire quoi ? :confused:

Déjà lis tous les reply au lien de GrandGibus, y en a pas des masses des vraiment pertinents.

En même temps dans le Terminal tape mysqladmin et il te liste toutes ses commandes. Il est indépendant du démon mysql. Si je trouve mieux je repasse.

En particulier pour tester crées une nouvele base via :

mysqladmin create nouvelllebase

ensuite :

Where command is a one or more of: (Commands may be shortened)
create databasename Create a new database
drop databasename Delete a database and all its tables
extended-status Gives an extended status message from the server
flush-hosts Flush all cached hosts
flush-logs Flush all logs
flush-status Clear status variables
flush-tables Flush all tables
flush-threads Flush the thread cache
flush-privileges Reload grant tables (same as reload)
kill id,id,... Kill mysql threads
password new-password Change old password to new-password
ping Check if mysqld is alive
processlist Show list of active threads in server
reload Reload grant tables
refresh Flush all tables and close and open logfiles
shutdown Take server down
status Gives a short status message from the server
start-slave Start slave
stop-slave Stop slave
variables Prints variables available
version Get version info from server
 
En gros faut que je recrée la base, et pour ça faut que je réinstalle une version plus ancienne (4.0.17 par ex) de MySQL, puis que je copie le contenu de 4.0.17/data dans 4.0.23/data, c'est ça (mysqladmin je sais pas quoi faire avec :nailbiting: ) ?

[Edit]
Bloc de code:
PowerMac:~ romain$ cd /usr/local/mysql
PowerMac:/usr/local/mysql romain$ mysqladmin create nouvelllebase
-bash: mysqladmin: command not found
PowerMac:/usr/local/mysql romain$ ./bin/mysqladmin create test    
./bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
Qu'est-ce que j'ai raté ?

[Rédit]4.0.17, pas 4.1.7, pardon
 
J'ai exactement le même problème que toi SuperMoquette.
Mais malgrés la doc de Fred (dosolé GrandGibus, il est en face de moi), cela ne change rien.
 
supermoquette a dit:
Tu l'as pécho ou cette 4.1.7, en suivant entropy j'ai la 4.0.23 ????????????????
Moi aussi, et c'est celle qui est installée et qui ne marche pas (la 4.0.22 ne marchait pas non plus). Mais le type donc grandgibus a filé un lien a réussi à faire fonctionner une 4.1.8 en copiant le répertoire data de la 4.1.7 si j'ai bien compris, donc c'est pour ça que je demandais.

En gros voilà où j'en suis : la 4.0.16 fonctionnait, à un moment MySQL s'est arrêté de fonctionné et je pense que c'est quand je suis passé à la 4.0.22. A l'heure actuelle j'essaye d'installer la 4.0.23 mais ça ne marche pas.
 
J'ai la 4.1.9, et ca ne marche pas non plus.
Il faudrais chopper une version qui fonctionne, mais laquelle?
 
Gibus le Grand a la version 4.0.20 et elle à l'air de fonctionner
 
Le sticky ne change rien,
La réparation des droits sur le disque ne change rien,
La recopie du répertoire data de la version 4.0.20 vers 4.1.9 ne change rien,

Le mystère reste entier.

La 4.0.20 fonctionne sur le poste à Gibus le Grand, mais pas sur mon poste.

? reste le changement du nom de poste. Pourquoi?

Par contre, maintenant je n'ai plus la même erreur dans les logs:
050204 14:53:09 mysqld started
050204 14:53:10 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/mysql/data/ is case insensitive
050204 14:53:10 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
050204 14:53:10 InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 0 43634.
InnoDB: Doing recovery: scanned up to log sequence number 0 43634
050204 14:53:11 InnoDB: Flushing modified pages from the buffer pool...
050204 14:53:11 InnoDB: Started; log sequence number 0 43634
050204 14:53:11 [ERROR] Fatal error: Can't open privilege tables: Table 'mysql.host' doesn't exist
050204 14:53:11 mysqld ended