Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-05-2006, 06:26 AM
|
#1
|
Member
Registered: Mar 2006
Posts: 62
Rep:
|
Remote Mysql connectivity support???
Hello folks,
I have two Linux red hat 9 servers. On one php 5.1 is configured with Apache and Oracle is the database. I have the other server configured with mysql database. I need to access the mysql database from server 1. My dilemma is, "Do I need to install mysql and reconfigure php in Server 1 to enable mysql support??" OR "Is there somethng that will enable mysql support without installing mysql"
Can somebody help me with the requirements to achieve the same. Any help is appreiated??? Thx a ton.
|
|
|
05-05-2006, 07:03 AM
|
#2
|
Member
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419
Rep:
|
If you have installed PHP from RPMs, then you just need the correct php-mysql RPM and that should take care of it.
If you have installed from source, you'll need to recompile it to add MySQL support by including --with-mysql in the configure command. PHP 5 and greater no longer includes MySQL support by default, nor is it bundled with the headers and libraries. You won't need the full installation of MySQL, but you will need to install the headers and libraries for the appropriate MySQL version. You will want MySQL-devel-standard installed on Server 1 for whatever version of MySQL you have on Server 2. You can download it here: http://dev.mysql.com/downloads/
|
|
|
05-05-2006, 07:17 AM
|
#3
|
Member
Registered: Mar 2006
Posts: 62
Original Poster
Rep:
|
Thx zaichik for your response. I really appreciate that. I have installed Php5.1 from source. My installed Mysql version is 5.0.15. Could you please let me know the exact number and names of header files and libraries that needs to be installed. I clicked on the downloads link but really didnt find anything specific. I am still looking though.
I am really sorry if the question is elementary but since this is a clients server I really dont want to install and uninstall unwanted things. I hope you understand my situation. Thx very much for the help. Waiting for your response.
|
|
|
05-05-2006, 07:57 AM
|
#5
|
Member
Registered: Mar 2006
Posts: 62
Original Poster
Rep:
|
Thx zaichik once again. I have downloaded it. Will try to configure it with php and try the remote connectivity with Mysql. Hopefully it should go smoothly. Just one more thing: Is there any special configuration required on the Mysql server like creating users and granting rights and privileges etc or simply use the server 2 ip, mysql root and password in my php configuration file on server 1. Thx in advance.
|
|
|
05-05-2006, 08:04 AM
|
#6
|
Member
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419
Rep:
|
Absolutely there is access configuration needed. You will need to set up a user@host combination, provide a password (highly recommended) and grant them the necessary privileges to execute the queries they need on the database(s) and table(s).
You'll want to thoroughly understand the MySQL privilege system before you starting allowing access from remote hosts. Their online docs on this ( http://dev.mysql.com/doc/refman/5.0/...ge-system.html) should help out considerably.
|
|
|
05-05-2006, 08:19 AM
|
#7
|
Member
Registered: Mar 2006
Posts: 62
Original Poster
Rep:
|
Thx a toooooooooooooooonnnnnnnnn for all the help zaichik. Had lot of doubts before posting these questions but feeling much better. Will do the necessary steps and update this thread soon. You have a nice day buddy. Cheeers.
|
|
|
05-05-2006, 09:14 AM
|
#8
|
Member
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419
Rep:
|
You're welcome. If you have any more questions, especially about the MySQl privilege system, I'll be glad to help out.
|
|
|
All times are GMT -5. The time now is 06:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|