LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-16-2012, 07:32 PM   #1
tinar697
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Rep: Reputation: Disabled
Help me


need to link our database to open suse for class project
need to figure out how to do that. my database is mysql.
need to link it to our website that we made up.
the teacher is no help at all. he claims it is easy but he won't help us in any way

Last edited by tinar697; 02-16-2012 at 08:07 PM.
 
Old 02-16-2012, 07:38 PM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 243Reputation: 243Reputation: 243
Simple, create a new database in open suse, then copy your database content to the new database
 
Old 02-16-2012, 07:52 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,329

Rep: Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473
Quote:
Originally Posted by tinar697 View Post
need to link our database to open suse for class project
need to figure out how to do that
You also need to provide details when asking questions.
  • Saying "database" tells us nothing. WHAT database? MySQL, postgreSQL, Oracle, and Sybase are ALL databases, among MANY others. So how to 'link' it depends on what DB
  • 'Link it' how? Over network? Same machine? Via dump/restore?
  • 'open suse'...version? 10.3, 11, 11.1/2/3, 12? What???
If you don't know the details, you should ask your professor/teacher
 
Old 02-16-2012, 08:03 PM   #4
tinar697
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
my database is mysql.
need to link it to our website that we made up.
the teacher is no help at all. he claims it is easy but he won't help us in any way
 
Old 02-16-2012, 08:19 PM   #5
sag47
Senior Member
 
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,853
Blog Entries: 36

Rep: Reputation: 455Reputation: 455Reputation: 455Reputation: 455Reputation: 455
And your website is in what language? If it's php then google "howto php mysql". You're still not providing enough details for us to assist you with your problem.

What code are you currently using to link to the database? If the code you have throws errors what are they? Post some source so that we can see what you've written so far. That way we could guide you in the right direction or point you at a good guide to solve your problem.

One line responses with no effort will not get you very good answers.

Last edited by sag47; 02-16-2012 at 08:21 PM.
 
Old 02-16-2012, 09:16 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
You need to provide more detail, as per TB0ne's qns.
Your qn is way too vague.
 
Old 02-16-2012, 10:34 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,245

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
being homework we will not do it for you
but

we can point you to the needed information

you have not informed us as to WHAT language this " web site" is in
a stab in the dark
PHP ,mysql, Apache

make sure mod-php5 is running on apache
install phpmyadmin
connect to mysql
make the database tables
wright the php/ html code to call the database

I am betting it is the last one you are stumped on

calling the DB from a web page

look it up in the text books
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration