LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 10-20-2006, 04:31 AM   #1
mikeotieno
Member
 
Registered: Jun 2006
Location: Kenya
Distribution: SUSE OSS 10.1, Fedora 9 x86-64
Posts: 71

Rep: Reputation: 15
Cool configure php to link to MySql in Suse 10.1


Hi,
Pliz could someone help me please i have php configured and its doing good, while also i have mysql running i create databases and tables from the MySql CLI, but when i try connecting my php applications to the databases created in MySql i cant get any positive results, I have not changed anything in the php.ini file. And again is there any package i can use that comes with the Open Suse 10.1 that is MySqlAdmin for the GUI mysql. Thanx for help.
 
Old 10-21-2006, 04:46 AM   #2
karpi
Member
 
Registered: Oct 2005
Location: Germany
Distribution: Suse
Posts: 134

Rep: Reputation: 15
Hi,

are there any error-messages while connecting to MySQL?
(Maybe you have to enable displaying errors with the normal php output - Display_Errors in the PHP.INI)
--restart the Apache after saving any changes to the php.in

A (good) GUI for MySQL is phpMyAdmin. phpMyAdmin is part of OpenSuse. You can install it with YaST.
phpMyAdmin is Browserbased. To start it enter http://hostname/phpMyAdmin
But you have to provide the usernaem and password to access MySQL

HTH
 
Old 10-25-2006, 09:29 AM   #3
mikeotieno
Member
 
Registered: Jun 2006
Location: Kenya
Distribution: SUSE OSS 10.1, Fedora 9 x86-64
Posts: 71

Original Poster
Rep: Reputation: 15
thanx alot for the reply but i cant see te MySqlAdmin in my yast software management, also when i load the script to connect to mysql i dont get any reply the page is just empty. Is there anything i need to change in the php.ini file?
 
Old 10-25-2006, 10:00 AM   #4
karpi
Member
 
Registered: Oct 2005
Location: Germany
Distribution: Suse
Posts: 134

Rep: Reputation: 15
Hi,

Mysqladmin is a commandline-tool. You have to look for phpMyAdmin.

Place a script in /srv/www/htdocs called phptest.php with

<?php
echo phpinfo();
?>

and check if the mysql extension is installed/activated.

phpinfo will give you also the path to the php.ini file.
Activate the error-reporting by

display_errors=On

Or you must look at /var/log/apache2/errors.log

HTH
 
Old 10-25-2006, 10:09 AM   #5
mikeotieno
Member
 
Registered: Jun 2006
Location: Kenya
Distribution: SUSE OSS 10.1, Fedora 9 x86-64
Posts: 71

Original Poster
Rep: Reputation: 15
thanx for quic reply but i have alredy run the script of phpinfo.php and its responding positively its displaying the php page and showing me the modules included plus the mysql module but now when i connect it to any database i crete in mysql commandline interface its not showing anything on the page. Its blank. Any idea to this response?
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP 5 configure error with mysql kamran_pro Linux - Software 7 08-15-2007 08:00 AM
PHP - MySQL link StarLion Fedora 4 09-10-2005 11:05 AM
PHP & MYSQL => session object using db link resource ldp Programming 2 03-19-2005 02:38 AM
Updating MySQL DB when a link is clicked with PHP Erik Thorsson Programming 2 12-03-2004 07:35 AM
How do i configure RH-9, apache 2.0, php and mysql rolling_titan Linux - General 4 10-18-2003 06:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration