1 |
On Thursday 16 February 2006 08:11, a tiny voice compelled Thomas T. Veldhouse |
2 |
to write: |
3 |
> Ernie Schroder wrote: |
4 |
> >I am just starting to play with php and mysql. I've got mysql working and |
5 |
> > can log into root accounts using a password. php scripts work on |
6 |
> >http://localhost. For example, http://localhost/php/index.php in a browser |
7 |
> >shows a whole lot of info re php, mysql and apache2. However, I can't seem |
8 |
> > to get phpmyadmin working. |
9 |
> >Going to http://localhost/phpmyadmin, gives me a window asking for |
10 |
> > username and password. If I insert my mysql username (root) and root's |
11 |
> > mysql password, I just get the same box with no error. I've tried adding |
12 |
> > a small |
13 |
> >config.inc.php file to /var/www/localhost/htdocs that is configured like |
14 |
> > so" |
15 |
> > |
16 |
> ><?php |
17 |
> >$cfg['PmaAbsoluteUri'] = 'http://localhost/phpmyadmin/'; |
18 |
> |
19 |
> Try 'http://127.0.0.1/phpmyadmin/ |
20 |
|
21 |
Tried that too. As well as hostname.domainname/phpmyadmin/ |
22 |
> |
23 |
> >$cfg['Servers'][$i]['host'] = 'MySQL.localhost'; |
24 |
> |
25 |
> '127.0.0.1' |
26 |
> |
27 |
> >$cfg['Servers'][$i]['auth_type'] = 'config'; |
28 |
> |
29 |
> 'cookie' |
30 |
> |
31 |
> >$cfg['Servers'][$i]['user'] = 'root'; |
32 |
> >$cfg['Servers'][$i]['password'] = 'password'; |
33 |
> |
34 |
> don't set the user and password |
35 |
|
36 |
Tried that too. |
37 |
> |
38 |
> >$cfg['blowfish_secret'] = '1234'; |
39 |
> >?> |
40 |
> >I restarted mysql and apache2 and still no joy |
41 |
> >Obviously, I'm missing something, but I can't find anything after many |
42 |
> > hours of searching that points me in the right direction. HELP ;>) |
43 |
> |
44 |
> When prompted for username and password, you probably want to start with |
45 |
> a superuser that you created in MySQL. |
46 |
> |
47 |
> Tom Veldhouse |
48 |
|
49 |
|
50 |
What I hadn't noticed when I emerged phpmyadmin, and none of the documentation |
51 |
I had read had told me, was there is a script installed by phpmyadmin located |
52 |
at: |
53 |
/usr/share/webapps/phpmyadmin/2.7.0_p1/sqlscripts/mysql/2.7.0_p1_create.sql |
54 |
that needs to be run to setup a database for phpmyadmin. |
55 |
I had to delete my previously created tables by doing: |
56 |
# rm -r /var/lib/mysql/* |
57 |
then, after starting mysql, |
58 |
# /usr/bin/mysql_install_db |
59 |
then I could login to mysql, set the root password and run the above script. |
60 |
All is well. I can now run phpmyadmin in the browser at: |
61 |
http://localhost/phpmyadmin/, |
62 |
http://127.0.0.1/phpmyadmin/ |
63 |
or |
64 |
hostname.domainname/phpmyadmin |
65 |
|
66 |
Only thing left to do is learn how to use all this neat stuff. |
67 |
-- |
68 |
Regards, Ernie |
69 |
-- |
70 |
gentoo-user@g.o mailing list |