Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Application and Web Development > PHP

Reply
 
LinkBack Thread Tools Display Modes
Old 04-27-2004, 11:31 PM   #1 (permalink)
infinite_root
Registered User
 
infinite_root's Avatar
 
Join Date: Apr 2004
Posts: 26
infinite_root is on a distinguished road
open another mysql database using phpMyAdmin

Is it possible to open another mysql database server on the same maching using phpMyAdmin aside running from localhost?

I want to open the content of mysql server 192.168.0.4 from my Webserver which are hosting PhpMyAdmin tool. 192.168.0.2?

If this is possible how can I do this?

Thanks and more power.

Last edited by infinite_root; 04-28-2004 at 12:40 AM.
infinite_root is offline   Reply With Quote
Old 04-28-2004, 12:25 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,446
sde is on a distinguished road
i don't think phpadmin supports multiple servers. just install 2 different instances of phpmyadmin.

localhost/phpmyadmin1/
localhost/phpmyadmin2/
__________________
Mike
sde is offline   Reply With Quote
Old 04-28-2004, 05:32 PM   #3 (permalink)
idx
Senior Grasshopper
 
idx's Avatar
 
Join Date: Jun 2003
Location: FL
Posts: 317
idx is on a distinguished road
Actually I think I set it up at one point to admin more than one server. Just make sure server 2 allows connections from #1. (typically they'll only be setup to allow access from localhost)


Look in config.inc.php where it has something like:

Code:
$i++;
$cfg['Servers'][$i]['host']            = '';
$cfg['Servers'][$i]['port']            = '';
$cfg['Servers'][$i]['socket']          = '';
$cfg['Servers'][$i]['connect_type']    = 'tcp';
$cfg['Servers'][$i]['controluser']     = '';
$cfg['Servers'][$i]['controlpass']     = '';
$cfg['Servers'][$i]['auth_type']       = 'config';

After the $i++ just plug in server 2's info. Then do the same for all your other servers as well.

-r
idx is offline   Reply With Quote
Old 04-28-2004, 05:33 PM   #4 (permalink)
bdl
Senior Contributor
 
Join Date: May 2002
Location: vta.ca.usa
Posts: 555
bdl is on a distinguished road
Not to be argumentative, (heh) but yes, you can configure and administer multiple servers. I know this because my companies' hosts' site has a phpMyAdmin frontend to about 6 servers, and it says so in the documentation.

http://www.phpmyadmin.net/documentation/
bdl is offline   Reply With Quote
Old 04-28-2004, 05:45 PM   #5 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,446
sde is on a distinguished road
oh cool .. that makes sense.. i shoulda known, i've looked at that config file many times.
__________________
Mike
sde is offline   Reply With Quote
Old 04-28-2004, 08:04 PM   #6 (permalink)
infinite_root
Registered User
 
infinite_root's Avatar
 
Join Date: Apr 2004
Posts: 26
infinite_root is on a distinguished road
To All,

Thanks for all your help.
infinite_root is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
New to MySQL - (need help please) bobredcar Everything SQL ( MySQL, MSSQL, DB2, Postgre, Oracle, etc...) 11 08-23-2004 07:47 AM
Can't see MySql database records in Mozilla monicao PHP 3 05-02-2004 05:19 PM
Methods of moving a database... DarkTwilkitri PHP 8 11-19-2003 05:02 AM
permissions in MySQL trevor PHP 3 01-10-2003 01:47 PM


All times are GMT -8. The time now is 11:23 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting