the following error occured: No database selected
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexInstallation Issues
Author Message
HookerOne
Newbie


Joined: Nov 02, 2008
Posts: 40

PostPost subject: the following error occured: No database selected
Posted: Mon Jan 04, 2010 8:07 pm
Reply with quote

After many problems with hackers and security problems I was advised to completeley wipe my site clean and then do a complete reinstall. I have done this and when I am attempting to do the install I get the following message

On /cpgn/install.php
While executing query "SHOW TABLES"

the following error occured: No database selected

In: /hsphere/local/home/filbert0/rafmovs.com/cpgn/install/step3.php on line: 117

I am installing version 9.2.1

Any help would be very much appreciated.


HookerOne's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.2.4/4.1.20/5.1/9.2.1
Back to top
View user's profile Visit poster's website
greenday2k
Forum Admin


Joined: Aug 11, 2005
Posts: 484
Location: CO

PostPost subject: Re: Installation problem
Posted: Mon Jan 04, 2010 11:03 pm
Reply with quote

Follow this guide, step by step.
dragonflycms.org/Wiki/id=47.html

_________________
www.greenday2k.net



greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
Dizfunkshunal
Platinum Supporter


Joined: Mar 23, 2006
Posts: 2079

PostPost subject: Re: Installation problem
Posted: Tue Jan 05, 2010 2:49 am
Reply with quote

Not only have you had to wipe your site clean but you will also need to get it removed from all the hacker sites lists.

My browser stops your site from loading at all.

_________________
Diz Web Design Status: Open (Use of resources requires registration.)

Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Multiple Setups
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
HookerOne
Newbie


Joined: Nov 02, 2008
Posts: 40

PostPost subject: Re: Installation problem
Posted: Tue Jan 05, 2010 10:18 pm
Reply with quote

I am trying to do the installation with a database that I have been using prior to the hacking. I have done a search of this site and cant seem to find an answer.

HookerOne's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.2.4/4.1.20/5.1/9.2.1
Back to top
View user's profile Visit poster's website
Dizfunkshunal
Platinum Supporter


Joined: Mar 23, 2006
Posts: 2079

PostPost subject: Re: Installation problem
Posted: Tue Jan 05, 2010 10:49 pm
Reply with quote

ok lets start from the beginning.
1. did you use DF before the hacking?
2. if Yes what version?
3. If Yes has the hole in your server security been fixed?
4. Are you sure the db you want to use is clean?

_________________
Diz Web Design Status: Open (Use of resources requires registration.)

Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Multiple Setups
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
HookerOne
Newbie


Joined: Nov 02, 2008
Posts: 40

PostPost subject: Re: Installation problem
Posted: Sun Jan 10, 2010 8:11 am
Reply with quote

1. I was using 9.2.1, the same version I am attempting to reinstall.
2. I did use DF before the hacking. 9.2.1
3. I have been assured that the server is now secure.
4. I am attempting to use a db that I backed up prior to cleaning out all my files from the server.


HookerOne's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.2.4/4.1.20/5.1/9.2.1
Back to top
View user's profile Visit poster's website
Dizfunkshunal
Platinum Supporter


Joined: Mar 23, 2006
Posts: 2079

PostPost subject: Re: Installation problem
Posted: Sun Jan 10, 2010 4:17 pm
Reply with quote

ok here is the trick there is no more config.php file in the distribution for 9.2.1. It is created by the installer now.

So install DF just like you are making a new site. complete the install all the way through. this gets a config.php - /includes/config.php

Now you can do one of 2 things.
1. If you already have the database backup imported into a db you can just change the config.php db settings to connect to that db.
2. you can drop all the tables in the db you created for the new db and import your db backup.
Now for 2 you may have to make some changes. Unless you used the exact same table prefixes when you created the new db as the db backup uses or you will get errors. You can edit which table prefixes to use in the config.php as well if needed.

_________________
Diz Web Design Status: Open (Use of resources requires registration.)

Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Multiple Setups
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
HookerOne
Newbie


Joined: Nov 02, 2008
Posts: 40

PostPost subject: Re: Installation problem
Posted: Sat Jan 16, 2010 8:09 am
Reply with quote

The blank db that I create, does it have to have the same name and login details as the one I have backed up

HookerOne's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.2.4/4.1.20/5.1/9.2.1
Back to top
View user's profile Visit poster's website
Dizfunkshunal
Platinum Supporter


Joined: Mar 23, 2006
Posts: 2079

PostPost subject: Re: Installation problem
Posted: Sat Jan 16, 2010 1:39 pm
Reply with quote

no when you install df the config.php it will create will have the db name and login just change the table prefixes in the config.php to match those the db backup puts in the table.
_________________
Diz Web Design Status: Open (Use of resources requires registration.)

Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Multiple Setups
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
HookerOne
Newbie


Joined: Nov 02, 2008
Posts: 40

PostPost subject: Re: Installation problem
Posted: Sun Jan 24, 2010 8:45 am
Reply with quote

Site up and running again, have removed all those files that I wasnt using and was clutering the place up. Hopefully that will help stop anyone attempting to hack the site.

HookerOne's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.2.4/4.1.20/5.1/9.2.1
Back to top
View user's profile Visit poster's website
InspectorClueNo
Heavy poster


Joined: Mar 26, 2008
Posts: 215

PostPost subject: Re: the following error occured: No database selected
Posted: Tue Jan 26, 2010 10:23 pm
Reply with quote

@HookerOne

read dragonflycms.org/Forum...c/t=24083/ and see if you can help, I believe even a list of file names would still be enough.


InspectorClueNo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
none available
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexInstallation Issues All times are GMT
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

Dedicated Server & Bandwidth Sponsored by DedicatedNOW
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 1.2164 seconds with 20 DB Queries in 0.2309 seconds
Memory Usage: 2.99 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy