LinuxQuestions.org
Review your favorite Linux distribution.
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 07-02-2004, 03:17 AM   #1
nitinku5021a
LQ Newbie
 
Registered: Jul 2004
Location: IIT Kharagpur
Distribution: Fedora Core 2
Posts: 2

Rep: Reputation: 0
SQL Server on Fedora Core ! Newbie Help


Hi thr,
please provide me some link or tutorial on "How to Setup a SQL server on Fedora Core 2.
I have installed the software and have created some tables too....but then when i wrote a *.php file to get it worked...............nothing happened
my php script for that is :
** where "nk1.sql" is the table which i made through that SQL software..( sorry if i m using some wrong term...i m completely newbie to this things...so please bear with me )


<?
$user="nitin";
$password="";
$database="nk1";
mysql_connect(localhost,$user,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="CREATE TABLE contacts (id int(6) NOT NULL auto_increment,first varchar(15) NOT NULL,last varchar(15) NOT NULL,phone varchar(20) NOT NULL,mobile varchar(20) NOT NULL,fax varchar(20) NOT NULL,email varchar(30) NOT NULL,web varchar(30) NOT NULL,PRIMARY KEY (id),UNIQUE id (id),KEY id_2 (id))";
mysql_query($query);
mysql_close();
?>

what is the problem.....i cudnt figure it out till now...

ps: my apache server is working okay .
BUT ONE MORE THING..........MY PHPINFO.PHP Script is not showing anything abt MySQL Server..........
 
Old 07-04-2004, 04:05 AM   #2
dugas
Member
 
Registered: Jul 2004
Location: louisiana
Distribution: fedora 4/kubuntu
Posts: 116

Rep: Reputation: 15
php mysql

You must compile php to work with mysql. The php rpm for fedora comes compiled with support for mysql, I didn't have good luck using the fedora rpms. Try following this tutorial http://www.madpenguin.org/cms/?m=show&id=751. It is written for fedora 1, but it should work for you. Let me know if you need help.
 
Old 07-04-2004, 04:31 AM   #3
nitinku5021a
LQ Newbie
 
Registered: Jul 2004
Location: IIT Kharagpur
Distribution: Fedora Core 2
Posts: 2

Original Poster
Rep: Reputation: 0
MY PHP thing is working fine..........problem is...i m unable to connect with MySQL database....
created a table but...dont know..how to connect it..
thanx for ur concern
regards
nitin
 
Old 07-04-2004, 06:47 AM   #4
dugas
Member
 
Registered: Jul 2004
Location: louisiana
Distribution: fedora 4/kubuntu
Posts: 116

Rep: Reputation: 15
it doesn't matter

it doesn't matter if your php is working. THat does not mean that it is working with your mysql. It must show that it was configured with the mysql option. Look at your phpinfo(); output and see if it was e.g --enable-mysql=/path/to/mysql in the configuration switches.
 
  


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
Fedora Core 4 newbie problem EvilAngel Fedora - Installation 8 11-24-2005 02:07 PM
Uninstalling Fedora Core 3 : Newbie darkknight1984 Fedora 1 02-12-2005 10:17 AM
2 Newbie questions about Fedora Core 2 hahler2 Fedora 6 06-16-2004 02:56 PM
Fedora Core 1-Newbie Help Please Paul Fox Linux - Newbie 65 06-16-2004 02:46 PM
Fedora core 1 newbie help please bumble Fedora 0 06-01-2004 03:27 PM

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

All times are GMT -5. The time now is 10:32 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