If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Advanced Guestbook  XML
Forum Index » Support Forum
Author Message
Anonymous



Hi,when i go to www.mydomain.com/admin.php i get this error

MySQL Error : Database Error
Error Number: 1046 No Database Selected

What do i do?

In conf.inc.php, where it says


$GB_DB["dbName"] = "";
$GB_DB["host"] = "localhost";
$GB_DB["user"] = "";
$GB_DB["pass"] = "";

I put the right info , but do i edit anything else in the conf.inc.php file, and if so what, and what do i put etc.

Please help.
khan
Beginner
[Avatar]

Joined: 04/12/2003 16:49:52
Messages: 27
Offline

hi
first of all you must have a database if your database name is ex"gbook" your database user name ex"shiela" and your database pass ex"1234" so you configure your admin/config.inc.php file like this:

$GB_DB["dbName"] = "gbook";
$GB_DB["host"] = "localhost";
$GB_DB["user"] = "shiela";
$GB_DB["pass"] = "1234";

once you do it make sure your all files uploaded to server then type http://www.yourdomain.com/yourdir/install.php and press enter you will got the next step thier is 4 boxes fill it with same info as you put in admin/config.inc.php file and press the first one left button "Create Table" and follow Screen Instructions.Hope this will solve your problem.And please don,t forget to register with this forum to get more advantage.

http://www.al-majroh.com/forums/signature.php
http://www.al-majroh.com/forums/includes/signature.php
[Email]
Anonymous



What if I don't have a password? Should I just leave that field blank?
Anonymous



Never mind.
khan
Beginner
[Avatar]

Joined: 04/12/2003 16:49:52
Messages: 27
Offline

Hi
"Sorry many for any delay"
I was out of location so got too late replying to you.
well if you don,t have database password you can leave it blank But I don,t Think that your database have no pass.Maybe you don,t know your database pass so that you are saying
What if I don't have a password? Should I just leave that field blank?
I suggest you should confirm from your host.

http://www.al-majroh.com/forums/signature.php
http://www.al-majroh.com/forums/includes/signature.php
[Email]
Anonymous



hi Im new in php and mysql, how can i have the database?, this come with the script or i have to make it?, and how it has to look like? if any wanna help me with this my email is landivarcorp@comcast.net thanks.
Anonymous



nevermind
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum