| |||||
| Dernière réponse | |
|---|---|
| Sujet : Pb avec MySQL ! HELP | |
| madsurfer | Excuse j'avais pas vu
LOL ! |
| Aperçu |
|---|
| Vue Rapide de la discussion |
|---|
| madsurfer | Excuse j'avais pas vu
LOL ! |
| Plouf02 |
|
| Plouf02 |
|
| madsurfer | Comment on fait pour le spécifier au lancement.
Voila ce que j'ai essayé : [root@www bin]# ./mysql -S=/usr/local/mysql/mysql.sock ERROR 2002: Can't connect to local MySQL server through socket '=/usr/local/mysql/mysql.sock' (111) |
| ethernal | comme tu as compilé mysql dans /usr/local/mysql et que je suppose que tu n'as pas spécifié explicitement ou devais se trouver le socket de connexion, il y a de fortes chances pour qu'il soit créé en dessous de ton arborescence /usr/local/mysql/*
soit recompile le en spécifiant ou doit se trouver le socket, soit spécifie le au lancement, je pense que ça devrais fcter |
| madsurfer | Voici 1 de mes fichiers de LOG
[root@www init.d]# cat /usr/local/mysql/var/www.cs2i.fr.err 011108 19:02:27 mysqld started 011108 19:02:27 /usr/local/mysql/libexec/mysqld: Can't create/write to file '/usr/local/mysql/var/www.cs2i.fr.pid' (Errcode: 13) 011108 19:02:27 /usr/local/mysql/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13) 011108 19:02:27 /usr/local/mysql/libexec/mysqld: Error on delete of '/usr/local/mysql/var/www.cs2i.fr.pid' (Errcode: 13) 011108 19:02:27 mysqld ended 011108 19:03:18 mysqld started 011108 19:03:19 /usr/local/mysql/libexec/mysqld: Can't create/write to file '/usr/local/mysql/var/www.cs2i.fr.pid' (Errcode: 13) 011108 19:03:19 /usr/local/mysql/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13) 011108 19:03:19 /usr/local/mysql/libexec/mysqld: Error on delete of '/usr/local/mysql/var/www.cs2i.fr.pid' (Errcode: 13) 011108 19:03:19 mysqld ended 011108 19:03:31 mysqld started 011108 19:03:32 /usr/local/mysql/libexec/mysqld: Can't create/write to file '/usr/local/mysql/var/www.cs2i.fr.pid' (Errcode: 13) 011108 19:03:32 /usr/local/mysql/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13) 011108 19:03:32 /usr/local/mysql/libexec/mysqld: Error on delete of '/usr/local/mysql/var/www.cs2i.fr.pid' (Errcode: 13) 011108 19:03:32 mysqld ended 011108 19:03:39 mysqld started 011108 19:03:39 /usr/local/mysql/libexec/mysqld: Can't create/write to file '/usr/local/mysql/var/www.cs2i.fr.pid' (Errcode: 13) 011108 19:03:39 /usr/local/mysql/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13) 011108 19:03:39 /usr/local/mysql/libexec/mysqld: Error on delete of '/usr/local/mysql/var/www.cs2i.fr.pid' (Errcode: 13) 011108 19:03:40 mysqld ended 011108 19:32:15 mysqld started 011108 19:32:16 /usr/local/mysql/libexec/mysqld: Can't create/write to file '/usr/local/mysql/var/www.cs2i.fr.pid' (Errcode: 13) 011108 19:32:16 /usr/local/mysql/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13) 011108 19:32:16 /usr/local/mysql/libexec/mysqld: Error on delete of '/usr/local/mysql/var/www.cs2i.fr.pid' (Errcode: 13) 011108 19:32:16 mysqld ended 011108 19:32:45 mysqld started /usr/local/mysql/libexec/mysqld: Too many parameters /usr/local/mysql/libexec/mysqld Ver 3.23.44 for pc-linux-gnu on i586 Use '--help' or '--no-defaults --help' for a list of available options 011108 19:32:46 mysqld ended |
| madsurfer | J'ai compiler mysql avec root donc normalement c'est le proprio (j'ai créé l'utilisateur mysql parce que j'étais désespéré -> je l'ai aussi vu dans une doc)
L'utilisateur root, comme mysql ont tous les 2 le droits d'écrire dans le répertoire /tmp. /etc/init.d/mysql start n'existe pas. J'ai compilé mysql dans /usr/local/mysql |
| ethernal | 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)'
à l'origine il est stocké dans /tmp/, mais qd tu le recompiles, tu peux choisir ou tu veux le mettre. est-ce que le user mysql(enfin je sais pas sous quel utilisateur il tourne) à le droit d'écrire dans /tmp/ ? essaye de le lancer à partir des scripts fournis /etc/init.d/mysql start |
| madsurfer | [root@www bin]# ./mysql ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) [root@www bin]# Pour répondre à JoWiLe -> sur phpfrance c'est la procédure d'install pour Windobe ! Help ! |
| nicotine | laisse tomber , j'avais pas vu "mysqld ended " avec ton ./safe_mysql ... mouais , j'vois pas trop ...... |
| nicotine | et essaie de lancer mysql PUIS un mysqladmin ..... |
| madsurfer | PS je ne veux pas de RPM
Je n'ai pas d'interface graphique. |
| madsurfer | Salut à tous,
Je suis en train d'installé Apache+PHP+Mysql J'ai downloader les sources et je les ai compilé. Apache & PHP fonctionnent. Mais y a 1 gros prob avec MySQL j'ai fait: ./configure --prefix=/usr/local/mysql && make && make install La compile c'est bien passé J'ai ensuite tapé /usr/local/mysql/bin/mysql_install_db J'obtiens 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 ! This is done with: /usr/local/mysql/bin/mysqladmin -u root -p password 'new-password' /usr/local/mysql/bin/mysqladmin -u root -h www.cs2i.fr -p password 'new-password' See the manual for more instructions. NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run the /usr/local/mysql/bin/mysql_fix_privilege_tables. Otherwise you will not be able to use the new GRANT command! You can start the MySQL daemon with: cd /usr/local/mysql ; /usr/local/mysql/bin/safe_mysqld & You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory: cd sql-bench ; run-all-tests Please report any problems with the /usr/local/mysql/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 Je tape [root@www bin]# /usr/local/mysql/bin/mysqladmin -u root -p password Enter password: /usr/local/mysql/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)' Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists! [root@www bin]# ./safe_mysqld & [1] 20331 [root@www bin]# Starting mysqld daemon with databases from /usr/local/mysql/var 011108 19:02:27 mysqld ended[root@www bin]# ps aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.1 1148 68 ? S 14:44 0:04 init [3] root 2 0.0 0.0 0 0 ? SW 14:44 0:00 [kflushd] root 3 0.0 0.0 0 0 ? SW 14:44 0:02 [kupdate] root 4 0.0 0.0 0 0 ? SW 14:44 0:00 [kpiod] root 5 0.0 0.0 0 0 ? SW 14:44 0:00 [kswapd] bin 246 0.0 0.0 1144 0 ? SW 14:45 0:00 [portmap] root 298 0.0 0.4 1344 224 ? S 14:45 0:06 syslogd root 308 0.0 0.0 1424 0 ? SW 14:45 0:00 [klogd] daemon 323 0.0 0.2 1172 112 ? S 14:45 0:00 /usr/sbin/atd root 338 0.0 0.1 1308 64 ? S 14:45 0:00 inetd root 381 0.0 0.1 1180 52 ? S 14:45 0:00 gpm -t ps/2 xfs 397 0.0 0.1 2208 52 ? S 14:45 0:00 xfs -port -1 root 414 0.0 0.0 2228 0 tty1 SW 14:45 0:00 [login] root 415 0.0 0.0 2228 0 tty2 SW 14:45 0:00 [login] root 416 0.0 0.0 2228 0 tty3 SW 14:45 0:00 [login] root 417 0.0 0.0 1124 0 tty4 SW 14:45 0:00 [mingetty] root 418 0.0 0.0 1124 0 tty5 SW 14:45 0:00 [mingetty] root 419 0.0 0.0 1124 0 tty6 SW 14:45 0:00 [mingetty] root 422 0.0 1.7 2260 816 tty1 S 15:05 0:00 -bash root 474 0.0 1.7 2260 832 tty2 S 15:15 0:00 -bash root 504 0.0 1.1 2168 536 tty3 S 15:18 0:00 -bash root 11969 0.0 0.3 1792 180 ? S 15:59 0:08 telnetd: 192.168.0.1 [vt100] root 11970 0.0 0.0 2240 0 pts/2 SW 15:59 0:00 [login] cedric 12286 0.0 0.0 2136 0 pts/2 SW 16:00 0:00 [bash] root 12303 0.0 0.0 2084 0 pts/2 SW 16:00 0:00 [su] root 12337 0.0 1.5 2160 716 pts/2 S 16:00 0:00 -bash root 15993 0.0 3.0 3468 1452 ? S 16:21 0:00 /usr/local/apache/bin/httpd nobody 16652 0.0 4.0 3748 1888 ? S 16:27 0:00 /usr/local/apache/bin/httpd nobody 16653 0.0 4.0 3852 1920 ? S 16:27 0:00 /usr/local/apache/bin/httpd nobody 16654 0.0 4.2 4000 2008 ? S 16:27 0:00 /usr/local/apache/bin/httpd nobody 16655 0.0 4.1 3804 1932 ? S 16:27 0:00 /usr/local/apache/bin/httpd nobody 16656 0.0 2.7 3720 1292 ? S 16:27 0:00 /usr/local/apache/bin/httpd nobody 16905 0.0 2.7 3708 1284 ? S 16:29 0:00 /usr/local/apache/bin/httpd nobody 16930 0.0 2.6 3660 1236 ? S 16:31 0:00 /usr/local/apache/bin/httpd root 17155 0.0 2.0 2084 976 pts/2 S 16:52 0:00 su - root 17156 0.0 2.6 2152 1256 pts/2 S 16:52 0:00 -bash fred 17172 0.0 2.0 2084 972 pts/2 S 16:52 0:00 su fred fred 17173 0.0 2.6 2136 1244 pts/2 S 16:52 0:00 bash root 20278 0.0 2.1 2084 992 pts/2 S 18:40 0:00 su - root 20279 0.0 2.8 2268 1332 pts/2 S 18:40 0:00 -bash root 20422 0.0 1.8 2524 876 pts/2 R 19:04 0:00 ps aux J'ai essayé de cree 1 utilisateur mysql mais ça fonctionne pas mieux. HELP ! Ou est le prob! Je suis 1 newbe sous mysql. Donc faut tt m'expliquer. Merci à tous |




