Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to access phpMyAdmin from local and from Internet

0 views
Skip to first unread message

Stefan Mueller

unread,
Apr 15, 2005, 11:58:56 AM4/15/05
to
I've just installed phpMyAdmin.

If I have the line
$cfg['PmaAbsoluteUri'] = 'http://localhost/php/phpmyadmin';
in my config.inc.php I can login to phpMyAdmin without any problems from my
local machine. But it's not working from the Internet.

To access it from the Internet I have modify the line
$cfg['PmaAbsoluteUri'] = 'http://www.myserver.com/php/phpmyadmin';

But now I'm not able to access it from the local machine.

Is there any solution for my problem?
Stefan


J.O. Aho

unread,
Apr 15, 2005, 12:09:25 PM4/15/05
to
Damn that I already did answer your question, if I had known you are a
multiposter, I never would have replyed, if you have to post the same message
to more than one newsgroup, make a crosspost.

//Aho

Scriptdude

unread,
Apr 15, 2005, 12:27:33 PM4/15/05
to
> Stefan Mueller wrote:
>
>> I've just installed phpMyAdmin.
>>
>> If I have the line
>> $cfg['PmaAbsoluteUri'] = 'http://localhost/php/phpmyadmin';
>> in my config.inc.php I can login to phpMyAdmin without any problems
>> from my local machine. But it's not working from the Internet.
<snip>

Have a look at SQLyog. It allows you to connect to your remote database
via a GUI, even if the remote server uses localhost for the database.

All you have to do is dump the SQLyog PHP file on your remote server and
you can access your databases.

Cool tool.

http://www.webyog.com/sqlyog/index2.php

And no, I'm not affiliated with them :-)

--
Computers will never take the place of books. You can't stand on a
floppy disk to reach a high shelf.
I thought 'Deep Throat' was a movie about a giraffe :/

Scriptdude

unread,
Apr 15, 2005, 12:30:23 PM4/15/05
to
Just noticed that the PHP script is not included in the FREE version...
bummer, my apologies for wetting your panties before killing the moment.

/me crawls back under his rock

Adam King

unread,
Apr 15, 2005, 6:58:50 PM4/15/05
to

Stefan Mueller wrote:
> But now I'm not able to access it from the local machine.

If there is any kind of security on the server (and it was set-up by
someone else) there is probably a firewall preventing access from any IP
other than 127.0.0.1.

Have you tried uploading the code onto your webserver and running the
whole thing from there?

Sorry, if your an expert and that was all obvious to you... I wasn't
sure how expert you were! :-)

Also, while I'm here... I would recommend phpFlashMyAdmin from
www.tufat.com. It's a Flash front end for phpMyAdmin and it rocks!

All the Best...
Adam

Adam King

unread,
Apr 15, 2005, 7:00:47 PM4/15/05
to
Bugger.. Sorry I misinterpreted your problem!
Ignore what I wrote!

Durrrr...

Kadett

unread,
Apr 16, 2005, 12:36:55 PM4/16/05
to

Try to add the www.myserver.com to your hosts file.

ie.
127.0.0.1 localhost
192.168.0.1 www.myserver.com

--
Johan

Stefan Mueller

unread,
Apr 16, 2005, 3:46:21 PM4/16/05
to
Hello

Thanks a lot for your reply.
Your solution works fine for the described problem but it's not woking if
I'd like to access phpMyAdmin from another computer within the internal
network. Therefore I would have to modify the hosts file of each internal
computer. But if I use my "internal" laptop sometimes from the internet, so
it's not working.
Or am I wrong?

Regards
Stefan


"Kadett" <pt...@hotmail.com> wrote in message
news:Hab8e.134697$dP1.4...@newsc.telia.net...

Kadett

unread,
Apr 17, 2005, 4:58:09 AM4/17/05
to
Stefan Mueller wrote:
> Hello
>
> Thanks a lot for your reply.
> Your solution works fine for the described problem but it's not woking if
> I'd like to access phpMyAdmin from another computer within the internal
> network. Therefore I would have to modify the hosts file of each internal
> computer. But if I use my "internal" laptop sometimes from the internet, so
> it's not working.
> Or am I wrong?
>

<snip>

The simple way is to edit every computers hosts file, or export the one
you edited, unfortunatly it also means that you can't access it from
Internet w/o removing the lines in the hosts file.

Personaly i have solved the similar problem via a local DNS-server for
my network set as first DNS under my networksettings.

A simplier soloution might be to create a link on the desktop to the
hosts file or might dual hostfiles and a batch-script and just let them
change names by a click.

--
Johan

Stefan Mueller

unread,
Apr 19, 2005, 8:52:51 AM4/19/05
to
Okay, I guess I'll need a local DNS-server.

Many thanks for your help
Stefan

"Kadett" <pt...@hotmail.com> wrote in message

news:Byp8e.22088$d5.1...@newsb.telia.net...

0 new messages