Visualizzazione dei risultati da 1 a 7 su 7

Discussione: Configurazione MySQL

  1. #1

    Configurazione MySQL

    Ho maledettamente impostato la password di MySQL su Ubuntu ed ora non riesco più a connettermi a MySQL:

    root@giuseppe-laptop:/home/giuseppe# ps aux | grep mysql
    root 18205 0.0 0.1 2896 772 pts/0 R+ 20:33 0:00 grep mysql

    root@giuseppe-laptop:/home/giuseppe# mysqladmin ping
    mysqladmin: connect to server at 'localhost' failed
    error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
    Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!

    root@giuseppe-laptop:/home/giuseppe# mysqladmin -u root -p ping
    Enter password:
    mysqladmin: connect to server at 'localhost' failed
    error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
    Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!

    root@giuseppe-laptop:/home/giuseppe# mysql
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

    Cosa devo fare aiutatemi!!
    Giuseppe SPECCHIO

  2. #2
    Utente di HTML.it
    Registrato dal
    Sep 2006
    Messaggi
    796

  3. #3
    Ho provato a seguire quei consigli ma nulla di fatto:

    root@giuseppe-laptop:/var/run/mysqld# kill `cat /mysql-data-directory/mysqld.pid`
    cat: /mysql-data-directory/mysqld.pid: Nessun file o directory
    kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
    root@giuseppe-laptop:/var/run/mysqld# ls
    root@giuseppe-laptop:/var/run/mysqld# cp /home/giuseppe/mysqld.pid /var/run/mysqld/mysqld.pid
    root@giuseppe-laptop:/var/run/mysqld# ls
    mysqld.pid
    root@giuseppe-laptop:/var/run/mysqld# mysqld_safe --init-file=mysqld.pid &
    [1] 20763
    root@giuseppe-laptop:/var/run/mysqld# Starting mysqld daemon with databases from /var/lib/mysql
    mysqld_safe[20805]: started
    STOPPING server from pid file /var/run/mysqld/mysqld.pid
    mysqld_safe[20823]: ended

    [1]+ Done mysqld_safe --init-file=mysqld.pid
    root@giuseppe-laptop:/var/run/mysqld# mysql
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)
    root@giuseppe-laptop:/var/run/mysqld#

    Aiuto!!
    Giuseppe SPECCHIO

  4. #4
    Possibile che non si riesce a sbloccare questa situazione? Vi prego aiutatemi non so + che fare!!
    Giuseppe SPECCHIO

  5. #5
    Utente di HTML.it L'avatar di cobra
    Registrato dal
    Aug 2006
    Messaggi
    216
    root@giuseppe-laptop:/home/giuseppe# ps aux | grep mysql
    root 18205 0.0 0.1 2896 772 pts/0 R+ 20:33 0:00 grep mysql
    Più che un problema di connessione a me sembra proprio che il server non sia attivo :master:
    Controlla quì: http://dev.mysql.com/doc/refman/5.0/...to-server.html

  6. #6
    Utente di HTML.it
    Registrato dal
    Sep 2006
    Messaggi
    796
    Originariamente inviato da cobra
    Più che un problema di connessione a me sembra proprio che il server non sia attivo :master:
    Controlla quì: http://dev.mysql.com/doc/refman/5.0/...to-server.html
    Non l'avevo visto

    Dormo troppo poco

  7. #7

    Risolto

    Ecco la soluzione grazie di tutto:

    root@giuseppe-laptop:/home/giuseppe# mysql
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
    root@giuseppe-laptop:/home/giuseppe# mysql -p
    Enter password:
    Welcome to the MySQL monitor. Commands end with ; or \g.
    Your MySQL connection id is 20
    Server version: 5.0.38-Ubuntu_0ubuntu1-log Ubuntu 7.04 distribution

    Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

    mysql>

    :quote:
    Giuseppe SPECCHIO

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.