Visualizzazione dei risultati da 1 a 6 su 6
  1. #1
    Utente di HTML.it
    Registrato dal
    Feb 2014
    Messaggi
    3

    #1045 Impossibile eseguire il login nel server MySQL

    Buongiorno a tutti,
    incontro il seguente problema quando provo a connettermi a phpMyAdmin. Ho cercato nel forum visto che il problema é abbastanza comune, ma nessuna delle soluzioni proposte mi permette di risolverlo e per questo ho iniziato una nuova discussione.

    Io uso XAMPP 3.2.1 e ho Windows Vista. In fondo al post metto il file config.inc.php. Ho provato a modificarlo in vari modi per poter accedere (con soluzioni presi da altri post inerenti), visto che la seguente configurazione mostrata non funzionava:

    - ho provato a inserire una password nella linea seguente (e ad accedere con quella pwd)
    $cfg['Servers'][$i]['password'] = '';


    - ho commentato le linee
    $cfg['Servers'][$i]['controluser'] = 'pma';
    $cfg['Servers'][$i]['controlpass'] = 'pwdtest';


    - Ho cambiato le il parametro cookie con config e http nella linea:
    $cfg['Servers'][$i]['auth_type'] = 'cookie';//'config';

    -
    Ho disinstallato e reinstallato XAMPP


    Il tutto senza risultati. Grazie in anticipo a chi potrà aiutarmi, e scusate la banalità della questione.

    Alberto





    <?php


    $cfg['blowfish_secret'] = 'xampp';
    $i = 0;




    $i++;

    $cfg['Servers'][$i]['auth_type'] = 'cookie';//'config';
    $cfg['Servers'][$i]['user'] = 'root';
    $cfg['Servers'][$i]['password'] = '';
    $cfg['Servers'][$i]['extension'] = 'mysqli';
    $cfg['Servers'][$i]['AllowNoPassword'] = true;
    $cfg['Lang'] = '';


    /* Bind to the localhost ipv4 address and tcp */
    $cfg['Servers'][$i]['host'] = '127.0.0.1';
    $cfg['Servers'][$i]['connect_type'] = 'tcp';


    /* User for advanced features */
    $cfg['Servers'][$i]['controluser'] = 'pma';
    $cfg['Servers'][$i]['controlpass'] = 'pwdtest';


    /* Advanced phpMyAdmin features */
    $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
    $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]['designer_coords'] = 'pma_designer_coords';
    $cfg['Servers'][$i]['tracking'] = 'pma_tracking';
    $cfg['Servers'][$i]['userconfig'] = 'pma_userconfig';
    $cfg['Servers'][$i]['recent'] = 'pma_recent';
    $cfg['Servers'][$i]['table_uiprefs'] = 'pma_table_uiprefs';


    ?>

  2. #2
    Non potrebbe semplicemente essere che il server MySql non sia avviato?

    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

  3. #3
    Utente di HTML.it
    Registrato dal
    Feb 2014
    Messaggi
    3
    Quote Originariamente inviata da piero.mac Visualizza il messaggio
    Non potrebbe semplicemente essere che il server MySql non sia avviato?
    Grazie della risposta.

    Dal control panel di XAMPP MySQL risulta avviato.

  4. #4
    http://www.apachefriends.org/it/index.html

    qui vedo una versione diversa da quella (XAMPP 3.2.1) di cui stai parlando tu.
    Prova la versione ufficiale e non quella distribuita da spammer.

    https://www.google.it/#q=xampp

    prova a sostituire 127.0.0.1 con localhost. E' la stessa cosa se nel file hosts hai l'associazione. Sempre local loop ma forse nella configurazione di mysql non hai l'host 127.0.0.1

    questo tipo di errore significa uno dei seguenti casi:

    1) server non avviato
    2) host errato
    3) user errato
    4) password errata.

    Se imposti phpMyAdmin con l'utilizzo dei cookie e ti presenta il form di accesso significa che il server e' avviato.

    codice:
    $i++;
    /* Authentication type */
    $cfg['Servers'][$i]['auth_type'] = 'cookie';
    /* Server parameters */
    $cfg['Servers'][$i]['host'] = 'localhost';
    $cfg['Servers'][$i]['connect_type'] = 'tcp';
    $cfg['Servers'][$i]['compress'] = false;
    /* Select mysql if your server does not have mysqli */
    $cfg['Servers'][$i]['extension'] = 'mysqli';
    $cfg['Servers'][$i]['AllowNoPassword'] = false;

    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

  5. #5
    Utente di HTML.it
    Registrato dal
    Feb 2014
    Messaggi
    3
    Per quanto riguarda la versione di XAMPP mi ero sbagliato, ho la versione 1.8.3,
    mentre la 3.2.1. era quella del configuration panel.

    Ho provato a fare i cambi che mi hai indicato nel file di configurazione,
    ma non sono riuscito a connettermi.


    Metto qui sotto il file mysql.error in caso possa essere di aiuto (per me non lo é, ma mi sembra strano che non specifichi nessun IP..)
    Grazie nuovamente del supporto



    2014-02-07 18:06:28 10080 [Note] Plugin 'FEDERATED' is disabled.
    2014-02-07 18:06:28 28a4 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
    2014-02-07 18:06:28 10080 [Note] InnoDB: The InnoDB memory heap is disabled
    2014-02-07 18:06:28 10080 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
    2014-02-07 18:06:28 10080 [Note] InnoDB: Compressed tables use zlib 1.2.3
    2014-02-07 18:06:28 10080 [Note] InnoDB: Not using CPU crc32 instructions
    2014-02-07 18:06:28 10080 [Note] InnoDB: Initializing buffer pool, size = 16.0M
    2014-02-07 18:06:28 10080 [Note] InnoDB: Completed initialization of buffer pool
    2014-02-07 18:06:28 10080 [Note] InnoDB: Highest supported file format is Barracuda.
    2014-02-07 18:06:28 10080 [Note] InnoDB: The log sequence numbers 1626294 and 1626294 in ibdata files do not match the log sequence number 1626354 in the ib_logfiles!
    2014-02-07 18:06:28 10080 [Note] InnoDB: Database was not shutdown normally!
    2014-02-07 18:06:28 10080 [Note] InnoDB: Starting crash recovery.
    2014-02-07 18:06:28 10080 [Note] InnoDB: Reading tablespace information from the .ibd files...
    2014-02-07 18:06:28 10080 [Note] InnoDB: Restoring possible half-written data pages
    2014-02-07 18:06:28 10080 [Note] InnoDB: from the doublewrite buffer...
    2014-02-07 18:06:29 10080 [Note] InnoDB: 128 rollback segment(s) are active.
    2014-02-07 18:06:29 10080 [Note] InnoDB: Waiting for purge to start
    2014-02-07 18:06:29 10080 [Note] InnoDB: 5.6.14 started; log sequence number 1626354
    2014-02-07 18:06:29 10080 [Note] Server hostname (bind-address): '*'; port: 3303
    2014-02-07 18:06:29 10080 [Note] IPv6 is available.
    2014-02-07 18:06:29 10080 [Note] - '::' resolves to '::';
    2014-02-07 18:06:29 10080 [Note] Server socket created on IP: '::'.
    2014-02-07 18:06:30 10080 [Note] Event Scheduler: Loaded 0 events
    2014-02-07 18:06:30 10080 [Note] c:\xampp\mysql\bin\mysqld.exe: ready for connections.
    Version: '5.6.14' socket: '' port: 3303 MySQL Community Server (GPL)

  6. #6
    Server hostname (bind-address): '*'; port: 3303

    quello che mi sembra strano e' che la porta di default per mysql e' 3306 e non la 3303

    puo' essere che xampp utilizzi quella porta (3303) non conosco questi tools di configurazione, trovo cosi' semplice installare apache, php e mysql per proprio conto ed avere una condizione standard su pc.

    Comunque sia se la porta non e' quella di default devi indicarla esplicitamente nella connessione:

    $cfg['Servers'][$i]['host'] = 'localhost:3303';

    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

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