Pagina 4 di 5 primaprima ... 2 3 4 5 ultimoultimo
Visualizzazione dei risultati da 31 a 40 su 47
  1. #31
    up2

  2. #32
    Senza avviare il demone da fedora prova ad avviarlo dalla shell direttamente appena accedi al sistema. Si avvia???

    Dato che stiamo facendo queste prove, sarebbe meglio evitare di combinare l'uso del menù di fedora con la linea di comando. Evitiamo così di fare confusione.
    Linux everywhere!!!

  3. #33
    dopo aver levato dall'avvio in automatico il demone, lo ho avviato dalla shell col comando :
    codice:
    /etc/init.d/mysqld start
    il comando mi restituisce:
    codice:
    Timeout error occurred trying to start MySQL Daemon.
    e poi mi dice failed
    ricapitolo:
    nel my.cnf :
    codice:
    [mysqld]
    datadir=/var/lib/mysql
    socket  =/tmp/mysql.sock
    ut error occurred trying to start MySQL Daemon.
    
    
    
    [mysql.server]
    user=mysql
    basedir=/var/lib
    
    [safe_mysqld]
    err-log=/var/log/mysqld.log
    pid-file=/var/run/mysqld/mysqld.pid
    nel php.ini


    codice:
    mysql.default_socket =/tmp/mysql.sock
    codice:
    /**
     * Server(s) configuration
     */
    $i = 0;
    // The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use $cfg['Servers'][0].
    // You can disable a server config entry by setting host to ''.
    $i++;
    $cfg['Servers'][$i]['host']          = 'localhost'; // MySQL hostname or IP address
    $cfg['Servers'][$i]['port']          = '';          // MySQL port - leave blank for default port
    $cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave blank for default socket
    $cfg['Servers'][$i]['connect_type']  = 'socket';       // How to connect to MySQL server ('tcp' or 'socket')
    $cfg['Servers'][$i]['extension']     = 'mysql';     // The php MySQL extension to use ('mysql' or 'mysqli')
    $cfg['Servers'][$i]['compress']      = FALSE;       // Use compressed protocol for the MySQL connection
                                                        // (requires PHP >= 4.3.0)
    $cfg['Servers'][$i]['controluser']   = '';          // MySQL control user settings
                                                        // (this user must have read-only
    $cfg['Servers'][$i]['controlpass']   = '';          // access to the "mysql/user"
                                                        // and "mysql/db" tables).
                                                        // The controluser is also
                                                        // used for all relational
                                                        // features (pmadb)
    $cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)?
    $cfg['Servers'][$i]['user']          = 'root';      // MySQL user
    $cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed
                                                        // with 'config' auth_type)
    $cfg['Servers'][$i]['only_db']       = '';          // If set to a db-name, only
                                                        // this db is displayed in left frame
                                                        // It may also be an array of db-names, where sorting order is relevant.
    $cfg['Servers'][$i]['verbose']       = '';          // Verbose name for this host - leave blank to show the hostname
    
    $cfg['Servers'][$i]['pmadb']         = '';          // Database used for Relation, Bookmark and PDF Features
                                                        // (see scripts/create_tables.sql)
                                                        //   - leave blank for no support
    ......................
    $i++;
    $cfg['Servers'][$i]['host']            = '';
    $cfg['Servers'][$i]['port']            = '';
    $cfg['Servers'][$i]['socket']          = '';
    $cfg['Servers'][$i]['connect_type']    = 'socket';
    $cfg['Servers'][$i]['extension']       = 'mysql';
    $cfg['Servers'][$i]['compress']        = FALSE;
    $cfg['Servers'][$i]['controluser']     = '';
    $cfg['Servers'][$i]['controlpass']     = '';
    $cfg['Servers'][$i]['auth_type']       = 'config';
    $cfg['Servers'][$i]['user']            = 'root';
    $cfg['Servers'][$i]['password']        = '';
    $cfg['Servers'][$i]['only_db']         = '';
    $cfg['Servers'][$i]['verbose']         = '';
    $cfg['Servers'][$i]['pmadb']           = ''; // 'phpmyadmin' - see scripts/create_tables.sql
    $cfg['Servers'][$i]['bookmarktable']   = ''; // 'pma_
    ..................
    $i++;
    $cfg['Servers'][$i]['host']            = '';
    $cfg['Servers'][$i]['port']            = '';
    $cfg['Servers'][$i]['socket']          = '';
    $cfg['Servers'][$i]['connect_type']    = 'socket';
    $cfg['Servers'][$i]['extension']       = 'mysql';
    $cfg['Servers'][$i]['compress']        = FALSE;
    $cfg['Servers'][$i]['controluser']     = '';
    $cfg['Servers'][$i]['controlpass']     = '';
    $cfg['Servers'][$i]['auth_type']       = 'config';
    $cfg['Servers'][$i]['user']            = 'root';
    $cfg['Servers'][$i]['password']        = '';
    $cfg['Servers'][$i]['only_db']         = '';
    $cfg['Servers'][$i]['verbose']         = '';
    $cfg['Servers'][$i]['pmadb']           = ''; // 'phpmyadmin' - see scripts/create_tables.sql
    $cfg['Servers'][$i]['bookmarktable']   = ''; // 'pma_bookmark'
    $cfg['Servers'][$i]['relation']        = ''; // 'pma_relation'
    $cfg['Servers'][$i]['table_info']      = ''; // 'pma_table_info'
    $cfg['Servers'][$i]['table_coords']    = ''; // 'pma_table_coords'
    $cfg['Servers'][$i]['pdf_pages']       = ''; // 'pma_pdf_pages'
    $cfg['Servers'][$i]['column_info']     = ''; // 'pma_column_info'
    $cfg['Servers'][$i]['history']         = ''; // 'pma_history'
    $cfg['Servers'][$i]['verbose_check']   = TRUE;
    $cfg['Servers'][$i]['AllowRoot']       = TRUE;
    bo!!!!
    ps. vorrei qui ripetere una cosa che forse è interessante

    se cerco di rimuovere mysql con l'applicazione di fedora, non mi fa rimuovere mysql e mi dice che :

    code:Packages Not Found

    The following packages could not be found on your system. Installation cannot continue until they are installed.
    libodbc.so.1 ('php-odbc','4.3.9','3')
    libodbcpsql.so.2 ('php-odbc','4.3.9','3')





    che significa, sono questi i pacchetti che mi sono perso?

    se si dove li trovo e dove li metto?

  4. #34
    Hai installato mysql dai sorgenti?

    ma cosa centra questa riga:

    ut error occurred trying to start MySQL Daemon

    nel my.cnf???

    Per sicurezza (anche se non credo che sia molto attinente ai nostri problemi) prova a dare un tab prima dell'uguale in ogni riga del my.cnf, se poi ti rendi conto che non cambia niente rimetti tutto a posto
    Linux everywhere!!!

  5. #35
    la riga nel my.cnf è solo un errore di copia incolla nel tread, nel my.cnf originale non c'è, mysql lo ho installato dal cd di fedora core 3, come posso fare per eliminarlo tutto e poi ricompilarlo, magari guidato da voi?

    grazie della tua attenzione

  6. #36
    Qui servirebbe un esperto fi Fedora Core 3 purtroppo io non uso la Fedora ma vivo in casa debian!
    Sicuramente c'è qualche gestore di pacchetti come in debian. Prova a chiedere a qualcuno che sonosce fedora.

    Linux everywhere!!!

  7. #37
    Ciao,

    fai attenzione che come host per MySQL "localhost", 127.0.0.1 e l'indirizzo della scheda di rete NON sono uguali, nel senso che se dai come parametro di connessione -h localhost ti connetti tramite socket, se dai gli altri due ti connetti traite TCP/IP, anche se sei sempre in locale. Questo ha rilevanza nel settare i permessi di accesso degli utenti, compreso root, che dovrà avere due entry, una riferita a localhost e l'altra a 127.0.0.1, oltre eventuali altri IP, per cui ti consiglio di collegarti tramite console e di digitare:

    GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY "<tua password>" WITH GRANT OPTION;

    e poi:

    GRANT ALL PRIVILEGES ON *.* TO root@127.0.0.1 IDENTIFIED BY "<tua password>" WITH GRANT OPTION;
    Marco Allegretti
    shishii@tiscalinet.it
    Lang: PERL, PHP, SQL.
    Linux user n° 268623 Fedora Core 10, Fedora Core 6, Debian Sarge on mips

  8. #38
    allora, ho reimpostato nei file php.ini e my.cnf le directory di default(/var/lib/mysql/mysql.sock), cosi il server mysqld mi parte, lanciandolo da riga di comando, poi digitando mysql mi dice:
    codice:
    ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)
    e anche se uso il comendo mysql -p root e la password non entra ????
    perche?

  9. #39
    se invece do il comando mysql -u mysql entra senza problemi ma applicando i comandi da te descritti mi dice
    codice:
    ERROR 1045: Access denied for user: '@localhost' (Using password: NO)

  10. #40
    dopo che hai inserito le due righe GRANT per entrare in Mysql devi digitare:

    > mysql -uroot -p<tua password>
    Marco Allegretti
    shishii@tiscalinet.it
    Lang: PERL, PHP, SQL.
    Linux user n° 268623 Fedora Core 10, Fedora Core 6, Debian Sarge on mips

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 © 2026 vBulletin Solutions, Inc. All rights reserved.