LinuxQuestions.org
Review your favorite Linux distribution.
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 10-10-2007, 10:55 AM   #1
payjoe
LQ Newbie
 
Registered: Apr 2007
Posts: 13

Rep: Reputation: 0
What is basic databse information for mysql


Hello,

I purchased a script and the instructions are very basic, except for this:

Open up data_conn.php that is located in the includes folder and enter your database information.

The file data_conn.php is empty what is the basic information required?

Anyone help

Here's my example

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

</head>
<body>

define('DB_NAME', 'username');
define('DB_USER', 'username');
define('DB_PASSWORD', 'password');
define('DB_HOST', 'localhost');
define('DB_HOST', 'mysql34.myhostserver:3307');
</body>
</html>

Would somebody correct me

Thank you in advance

gary
 
Old 10-10-2007, 01:11 PM   #2
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Well the script itself is pretty self-explanatory. Enter your desired MySQL database name, username, password, server, and host in the areas provided...
 
Old 10-10-2007, 01:49 PM   #3
payjoe
LQ Newbie
 
Registered: Apr 2007
Posts: 13

Original Poster
Rep: Reputation: 0
I have obtained an update file,

<?

$server = "localhost";
$dbuser = "gary1";
$dbpass = "48XY";
$dbname = "videoclick";



///////////////////////////////////////



$db = mysql_pconnect($server, $dbuser, $dbpass);
mysql_select_db($dbname);

if (!$db)
{
echo "<b>Error:</b> Could not connect to database";
exit;
}



?>


but receiving the following error


No database selected at line 7
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic information needed dark_stilskin Linux - Newbie 8 12-11-2006 11:59 PM
MySQL:: backup entire databse but with selected tables structure only using mysqldump Swakoo Linux - General 1 11-07-2006 03:38 PM
Databse connection in VC++ LinuxTiro Programming 4 05-27-2004 06:32 AM
some very basic information required sixth_sense Linux - Newbie 2 04-18-2004 01:39 AM
Basic network information dalraidia Linux - Newbie 7 12-16-2002 10:51 PM


All times are GMT -5. The time now is 02:46 PM.

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