Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Nov 12, 2011 9:20 am 
Offline
Junior Member

Joined: Fri Nov 11, 2011 11:07 pm
Posts: 22
I am trying to install wordpress on my vps but even if i configured the wp_config file it says "database connection"

i think i am missing something in here;

Code:
define('DB_NAME', 'mydatabasename');

/** MySQL database username */
define('DB_USER', 'username');


do i need to enter accountname in front of them?
for examle; user_mydatabasename

if yes how cause i tried it too but nothing changed. thanks.


fixed it. thread can be closed.


Top
   
 Post subject:
PostPosted: Sat Nov 12, 2011 11:39 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Threads are never closed until a fix is posted ;-)


Top
   
 Post subject:
PostPosted: Sat Nov 12, 2011 12:23 pm 
Offline
Junior Member

Joined: Fri Nov 11, 2011 11:07 pm
Posts: 22
Hehe ok =) What i did is actually corrected my mysql commands to create the db and user. I dont remember the old commands i used which didnt work for me but here is the commands that worked for me;

Code:
mysql -u root -p


Code:
mysql> grant all privileges on *.* to wp_user@localhost identified by "wp_pa55w0rd";
mysql> create database wp_dbase;
mysql> quit


That's it :oops: :D


Top
   
 Post subject:
PostPosted: Sat Nov 12, 2011 2:44 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Thanks!

I probably won't run into this problem myself, but this thread is now part of the Great Internet Mind. In a couple years, someone will have the exact problem you had, Duck it, find this thread, and then -- bam -- fixed. I am here to represent the future.

To the future!


Top
   
 Post subject:
PostPosted: Sat Nov 12, 2011 11:39 pm 
Offline
Junior Member

Joined: Fri Nov 11, 2011 11:07 pm
Posts: 22
okay now another error occurs during the wordpress setup. it is passing the database setup with out a problem but after i want to finish setup it says;

Code:
WordPress database error: [Duplicate entry '0-0' for key 'PRIMARY']
INSERT INTO `wp_nok2term_relationships` (`term_taxonomy_id`,`object_id`) VALUES ('0','0')


any idea?

thanks.


Top
   
 Post subject:
PostPosted: Sun Nov 13, 2011 1:37 am 
Offline
Junior Member

Joined: Fri Nov 11, 2011 11:07 pm
Posts: 22
Ok , i took screenshot for the error.

with a clean installation I've got the following errors during the installation:

Image

And if I try to login with the given credentials it says:

Image


Top
   
 Post subject:
PostPosted: Sun Nov 13, 2011 8:21 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
1) Delete the database and recreate it
2) Make sure the user for the database has all permissions to the database
3) Restart wordpress installation

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Sun Nov 13, 2011 8:52 am 
Offline
Junior Member

Joined: Fri Nov 11, 2011 11:07 pm
Posts: 22
Ahh yeahh now it worked! Thank you obs.


Top
   
 Post subject:
PostPosted: Fri Nov 18, 2011 9:45 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
hoopycat wrote:
Thanks!

I probably won't run into this problem myself, but this thread is now part of the Great Internet Mind. In a couple years, someone will have the exact problem you had, Duck it, find this thread, and then -- bam -- fixed. I am here to represent the future.

To the future!


Dear Randall:

At first, I thought this was merely a coincidence:

Image

Then I looked at the mouse-over.

Thanks for reading the Linode Forums. -rt


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group