Pagina 1 di 1

Myql e php

Inviato: ven 27 gen 2006, 20:42
da hendrixiano
Avrei un problema, vorrei installare lo script phpMyAdmin, ho configurato apache in modo da leggere il php e ho attivato mysql come servizio (seguendo slack4dummies), ho editato il file /etc/my-conf in questo modo:

Codice: Seleziona tutto

server-id       = 2
master-host     =   localhost
master-user     =   hendrixiano
master-password =   mia_password
ho riavviato mysql, inserita la directory decompressa dello script nella mia document root, ho modificato il file config.inc.php e puntato il browser all'index, il risultato è questo:

Codice: Seleziona tutto

phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in config.inc.php and make sure that they correspond to the information given by the administrator of the MySQL server.
Error
MySQL said: Documentation
#1045 - Access denied for user 'hendrixiano'@'localhost' (using password: YES) 
per vedere meglio l'errore:
http://hendrixiano.hopto.org/phpMyAdmin/index.php

Non capisco perchè questo errore. Potete aiutarmi? Grazie.[/url]

Inviato: ven 27 gen 2006, 23:51
da masalapianta
lo script php tenta una connessione tcp a mysql? hai verificato di aver configurato mysql per accettare connessioni tcp e non usare solo socket di dominio unix?

Inviato: sab 28 gen 2006, 22:32
da vanescar
# /usr/bin/mysqladmin -u hendrixiano password 'TUAPASS'

#reboot (potresti ranche solo iavviare solo il server mysql)

poi da browser lancia phpMyAdmin

Inviato: sab 28 gen 2006, 23:42
da hendrixiano
vanescar ha scritto:# /usr/bin/mysqladmin -u hendrixiano password 'TUAPASS'

#reboot (potresti ranche solo iavviare solo il server mysql)

poi da browser lancia phpMyAdmin

Codice: Seleziona tutto

mysqladmin: unable to change password; error: 'Access denied for user ''@'localhost' to database 'mysql''
:(

Inviato: dom 29 gen 2006, 11:03
da vanescar
io di solito dopo l'installazione la prima configurazione di mysql
molto importante e configurare la conessione in TCP/ip
in /etc/my-conf trova e commenta
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networkin
creo accesso al server
# /usr/bin/mysqladmin -u root password 'TUAPASS'
# reboot


da hendrixiano a root