phpmyadmin

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lexx
Forum Newbie
Posts: 21
Joined: Sat Jun 08, 2002 10:30 pm

phpmyadmin

Post by lexx »

I installed phpmyadmin and it works fine, but it doesnt ask for login or anything.... so everyone can go to the page and change mysql database and stuff....

How can I "protect" that....

Thanks for any help.
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

Post by phice »

Go onto google, and search for .htaccess
Image Image
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Edit your phpadmin config file as per the installation instructions to use cookie or http authentication (read the bits in the documentation called 'Using authentication modes:' and 'Configuration'). You do need to have set up usernames and passwords on the MySQL database for this to work in a secure way (highly recommended anyway for security). Is there a reason why you didn't read the readme file when you installed the program?

Mac
lexx
Forum Newbie
Posts: 21
Joined: Sat Jun 08, 2002 10:30 pm

Post by lexx »

I set the thing to cookie
$cfgServers[$i]['controluser'] = 'blah';
$cfgServers[$i]['controlpass'] = 'blah';
$cfgServers[$i]['auth_type'] = 'cookie';

So I go to admin page now it asks me to enter username and password
What do I enter?
I tried to enter my admin and blah stuff it tells me
Access denied for user: 'blah@[host stuff]' (Using password: YES)
Elfstone
Forum Newbie
Posts: 21
Joined: Tue Jun 11, 2002 2:25 am
Location: NJ, USA

Post by Elfstone »

I've never used phpMyAdmin, but from looking at the variables you pasted it seems the user and pass for the account are blah.
Post Reply