Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
phpmyadmin
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
geps2
Apprentice
Apprentice


Joined: 12 Jul 2006
Posts: 267

PostPosted: Fri Mar 16, 2007 8:41 pm    Post subject: phpmyadmin Reply with quote

Non riesco a far andare phpmyadmin. Ho visto su internet, ho controllato su questo forum, ho cercato di fare tutto quello che viene consigliato, ma non va nel modo più assoluto.
Dopo l'installazione ho fatto quello che mi ha detto:

Code:
=================================================================
POST-INSTALL INSTRUCTIONS
=================================================================

0. If this is a new installation, create MySQL's grant tables and the pmadb
   database. NOTE: this will change the existing pma password to a random
   string!

     mysql -u root -p < /usr/share/webapps/phpmyadmin/2.10.0.2/sqlscripts/mysql/2.10.0.2_create.sql

1. Create config.inc.php. You can use the web-based installer:
   http://localhost//phpmyadmin/scripts/setup.php

   Alternatively, use the default config file in libraries/config.default.php

   mkdir /var/www/localhost/htdocs/phpmyadmin/config
   chmod o+rw /var/www/localhost/htdocs/phpmyadmin/config
   # if you want to edit existing configuration:
   cp /var/www/localhost/htdocs/phpmyadmin/config.inc.php /var/www/localhost/htdocs/phpmyadmin/config/
   chown -R apache:apache /var/www/localhost/htdocs/phpmyadmin/config

2. Be sure that the libraries/ directory is not visible. You can use the
provided .htaccess file.

===============


tranne che il punto 2, non ho capito a cosa si riferisce: il problema è che qualsiasi credenziali metta sulla schermata di login, mi dice sempre
Code:
#1045 - Access denied for user 'pma'@'localhost' (using password: YES)

Ho creato il file config.inc.php, e ho provato a modificarlo qua e la, ma senza successo: neanche l'help in linea mi è stato di molto aiuto... in ogni caso ve lo incollo qui:
Code:
$cfg['blowfish_secret'] = 'password'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

/*
 * Servers configuration
 */
$i = 0;

/*
 * First server
 */
$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 mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysql';
/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = 'pmapass';
/* 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';


E' la prima volta che ho queste difficoltà con questo software: l'ho installato praticamente dappertutto, addirittura su windows, ma qui non ci sto veramente capendo nulla!
Qualcuno saprebbe aiutarmi?
Grazie per l'attenzione, ciao!
GePS
Back to top
View user's profile Send private message
guerro
Guru
Guru


Joined: 21 Jun 2004
Posts: 417
Location: Brescia

PostPosted: Sat Mar 17, 2007 8:51 am    Post subject: Reply with quote

Sei sicuro che l'utente pma sia dichiarato come utente in MySQL? Io proverei a cambiare l'utente magari prova come "root" con relativa password.....
(indicandolo anche nel file di configurazione di phpmyadmin)
_________________
(.(*. .*).)
.. G u e r r o ..
(.(.* *.).)
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Sat Mar 17, 2007 9:37 am    Post subject: Reply with quote

Moved from Forum italiano (Italian) to Forum di discussione italiano.
_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Sat Mar 17, 2007 10:35 am    Post subject: Reply with quote

per me l'unico modo per uscire da tali problemi è sempre stato questo.
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
MajinJoko
l33t
l33t


Joined: 20 Sep 2005
Posts: 639
Location: Bergamo / Verona

PostPosted: Sat Mar 17, 2007 10:57 am    Post subject: Re: phpmyadmin Reply with quote

geps2 wrote:
Code:
#1045 - Access denied for user 'pma'@'localhost' (using password: YES)


non so quanto possa esserti di aiuto, ma ti posso assicurare che io mi scontro con questo errore ogni volta che uso mysql.. e phpmyadmin non l'ho neppure installato.
credo dunque sia un errore da risolvere all'interno di mysql.


io ho trovato queste due soluzioni:
Code:
ysql> UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd')
    -> WHERE Host = 'some_host' AND User = 'some_user';
mysql> FLUSH PRIVILEGES;

GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' IDENTIFIED BY 'some_pass' WITH GRANT OPTION;
where you substitute username with the username you want and some_pass with a password you want.
e
Code:
First start the mysql server instance or daemon with the --skip-grant-tables option. (security setting)

Then Execute these statements.
# mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD('your_new_password') where USER='root';
mysql> FLUSH PRIVILEGES;


a volte me ne funziona una, a volte un'altra.. mi spiace ma di più non so dirti..
_________________
[(.. watashi wa Urumi Kanzaki ga suki da ..)]
Back to top
View user's profile Send private message
geps2
Apprentice
Apprentice


Joined: 12 Jul 2006
Posts: 267

PostPosted: Sun Mar 18, 2007 10:36 am    Post subject: Reply with quote

guerro wrote:
Sei sicuro che l'utente pma sia dichiarato come utente in MySQL? Io proverei a cambiare l'utente magari prova come "root" con relativa password.....
(indicandolo anche nel file di configurazione di phpmyadmin)


l'utente pma esiste è una delle prime cose che ho controllato: ho dato per scontato che lo script che ho lanciato dopo l'installazione lo creasse con i giusti permessi, ma probabilmente non è stato così. Con root entro... grazie per l'aiuto!
Back to top
View user's profile Send private message
geps2
Apprentice
Apprentice


Joined: 12 Jul 2006
Posts: 267

PostPosted: Sun Mar 18, 2007 2:06 pm    Post subject: Reply with quote

Peach wrote:
per me l'unico modo per uscire da tali problemi è sempre stato questo.


Grazie, l'articolo è molto interessante: quello che non ho capito è se è meglio usare l'utente pma per effettuare il login su phpmyadmin, e se sì, che privilegi devo dargli...
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Sun Mar 18, 2007 3:28 pm    Post subject: Reply with quote

geps2 wrote:
Peach wrote:
per me l'unico modo per uscire da tali problemi è sempre stato questo.


Grazie, l'articolo è molto interessante: quello che non ho capito è se è meglio usare l'utente pma per effettuare il login su phpmyadmin, e se sì, che privilegi devo dargli...


in teoria l'utente pma viene automaticamente impostato e aggiunto a mysql dall'ebuild e teoricamente non occorre fargli niente.
Infatti viene impostata una pwd in autoscramble per l'accesso di pma. Quella è l'unica cosa che non cambio. Gli unici problemi li ho rilevati nel settaggio delle pwd di accesso di root a mysql.
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
geps2
Apprentice
Apprentice


Joined: 12 Jul 2006
Posts: 267

PostPosted: Mon Mar 19, 2007 7:04 pm    Post subject: Reply with quote

Peach wrote:

in teoria l'utente pma viene automaticamente impostato e aggiunto a mysql dall'ebuild e teoricamente non occorre fargli niente.
Infatti viene impostata una pwd in autoscramble per l'accesso di pma. Quella è l'unica cosa che non cambio. Gli unici problemi li ho rilevati nel settaggio delle pwd di accesso di root a mysql.

allora è per quello che ho avuto problemi: a me l'utenza pma non ha nessun privilegio, e con root sono entrato solo quando gli ho specificato nome utente e password sul file config.ini.php (prima c'erano 'pma' e 'pmapass'):
Code:

$cfg['Servers'][$i]['controluser'] = 'root';
$cfg['Servers'][$i]['controlpass'] = 'password';

c'è qualcosa che mi sfugge...
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Mon Mar 19, 2007 10:35 pm    Post subject: Reply with quote

riesci a collegarti da linea di comando sul tuo server mysql e controlleresti che nella tabella users ci sia l'utente pma? ???

poi potresti postare la configurazione di $cfg['Servers'][$i] ?
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
geps2
Apprentice
Apprentice


Joined: 12 Jul 2006
Posts: 267

PostPosted: Tue Mar 20, 2007 7:15 pm    Post subject: Reply with quote

Peach wrote:
riesci a collegarti da linea di comando sul tuo server mysql e controlleresti che nella tabella users ci sia l'utente pma? ???

Code:
mysql> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> select user from user;
+------+
| user |
+------+
| pma  |
| root |
| root |
+------+
3 rows in set (0.00 sec)


Quote:
poi potresti postare la configurazione di $cfg['Servers'][$i] ?


Code:
$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 mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysql';
/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = 'pmapass';
/* 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';
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum