Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-10-2007, 09:55 AM   #1
LQ Newbie
Registered: Apr 2007
Posts: 13

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


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">


define('DB_NAME', 'username');
define('DB_USER', 'username');
define('DB_PASSWORD', 'password');
define('DB_HOST', 'localhost');
define('DB_HOST', 'mysql34.myhostserver:3307');

Would somebody correct me

Thank you in advance

Old 10-10-2007, 12:11 PM   #2
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, 12:49 PM   #3
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);

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


but receiving the following error

No database selected at line 7


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 10:59 PM
MySQL:: backup entire databse but with selected tables structure only using mysqldump Swakoo Linux - General 1 11-07-2006 02:38 PM
Databse connection in VC++ LinuxTiro Programming 4 05-27-2004 05:32 AM
some very basic information required sixth_sense Linux - Newbie 2 04-18-2004 12:39 AM
Basic network information dalraidia Linux - Newbie 7 12-16-2002 09:51 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:31 AM.

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