Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 3rd, 2004, 08:20 AM
Authorized User
Join Date: Jun 2003
Location: , , .
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default 2 db's on one server

Hello All,

Just a quick question! Is it a good or bad idea to have 2 databases such as Mysql and Postgres on a linux server?

Becasue the website and shopping cart is on linux using Postgres, and I am more comfortable using Mysql and do not want to touch Postgres can i have mysql installed on there as my alternative... Also is there a interface available to use and connect from a windows box to linux to connect to mysql?

Reply With Quote
  #2 (permalink)  
Old May 5th, 2004, 04:59 PM
Friend of Wrox
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post

I am not sure if you can have postgres and mysql both on the same linux box. Logically it should be possible. As I have had both sybase and mysql on same linux box, similarly sybase and mssql on same windows box.

Regarding the interface to connect from windows box to linux mysql server, you can search for "MySQL control center" and install the same. It is something similar to the MSSQL enterprise manager, but not much features as seen there. Still a tool worth working from windows.

I found that myself, here it is some information about how to use and configure - http://www.mysql.com/products/mysqlcc/

Download from - http://dev.mysql.com/downloads/mysqlcc.html


-Vijay G
Reply With Quote
  #3 (permalink)  
Old May 12th, 2004, 05:49 AM
Friend of Wrox
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 256
Thanks: 0
Thanked 0 Times in 0 Posts

Certainly, there is no inherent problem with having two DBMS programs running at once, other than the extra system resources they both consume, as long as they listen on different ports (which, by default, they do: MySQL uses Port 3306, while Postgres listens on Port 5432 - although, as a further proviso, I'll add that Postgres installs with it's actual TCP/IP socket closed, by default, so it isn't possible to log onto a Postgres database from anywhere other than localhost without editing the postgres.config file, amongst others: that's a side issue, though, so i'll say no more about it).

To get onto your Linux machine's MySQL database, you have to ensure that any firewall between them (and even XP has a "firewall", of sorts, these days, remember) allows connections via Port 3306, first of all. Next, add a user (I usually create a specific one, with only SELECT, INSERT, UPDATE and DELETE privilages) whose host IP address or name is known within the local network. Create this user within your MySQL DBM's own special "mysql" database, in the "user" table, with "host" entry equal to your Windows machine's IP address or hostname: something along the lines of:


Followed by a quick:


(where you insert your own relevant data, instead of all that IP address and username/password nonsense, above. If you are on DHCP within a Unix environment, this may be aproblem, since your IP will be assigned dynamically on a default timeout of 30 minutes, if your sys admins haven't changed things. if you are on a Windows server network, it probably won't matter either way. Microsoft's implementation of the DHCP daemon defaults to a timeout of 7 days, and is actually only used by most Windows sys admins as a lazy way of building static IP networks.)

Once all that is done, and you've locked down everything else, WRT security to the connection between your Linux machine and the Windows machine, you can connect to your MySQL database using just about any software you choose - even Access, if you wish - although I'd only use that to import tables on a temporary basis for producing schema diagrams. There are many commercial and free client programs for MySQL available. A commercial offering such as Navicat may make sense - and you can try it out on a 30 day trial basis - or you can use MySQL's own Control Centre software, which isn't too bad.

That said, I actually tend to open the SSH port and login in using the commandline secure shell client PuTTY, in order to run MySQL's own commandline program, "mysql". I always run any root login via this route, anyway, since the extra inconvenience is far outweighed by the seldomness with which I need to make major table alterations, and it's always good to have to type in at least some of the SQL you are using on a daily basis: I tended to use the commandline tool in SQL Server, for the same reasons!

On a final note, this doesn't just apply to Windows clients, or course (after all, we're ALL using Berkley's TCP/IP stack :). You could just as easily apply the same steps to getting another Linux desktop client connected, or a Macintosh, or, in my case, my FreeBSD laptop.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Techniques for connecting to SQL Server 2k5 db's tmni BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 2 August 25th, 2007 05:18 AM
Connecting WroxUnited DB's in SQL Server 2000 TritonOps ASP.NET 2.0 Basics 8 September 7th, 2006 11:29 PM
Inserting information into different dB's tables. mccray_26 SQL Server ASP 1 September 11th, 2003 06:47 PM
SQL , List Boxes/Menu Boxes, DB's Ginzu3 Classic ASP Databases 1 June 30th, 2003 04:07 AM

All times are GMT -4. The time now is 09:18 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.