WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Database Discussion Forum This is the place to find help resolving those nagging questions you have about implementing and using all kinds of databases. Need help writing a query? Need an opinion on Oracle? Post here!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-06-2003, 09:14 AM
matauri matauri is offline
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: Western Australia
Posts: 2,105
matauri RepRank 0
Default PHP/mysql Forum problem

I have a prob I am having problems nutting out, so hoping someone can figure out whats wrong for me.

I am in middle of transferring my site to another server. On the old one I have been hosting some external & internal forums done in phpbb with a mysql 4.0 (I think). They all work fine on old server..no probs.

Prob I have had so far, and expect to have maybe with others being transferred......

The new db has been setup on clients new server (at least I am pretty sure it is), and the forum works fine. I have backed up the old db & tried to restore it on clients new server. When we try to restore it, this error keeps coming up.......

Error importing backup file DEBUG MODE SQL Error : 1048 Column 'group_id' cannot be null INSERT INTO fox_auth_access (group_id, forum_id, auth_view, auth_read, auth_post, auth_reply, auth_edit, auth_delete, auth_sticky, auth_announce, auth_vote, auth_pollcreate, auth_attachments, auth_mod) VALUES( NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)

Any ideas?


Cindy
__________________
Web Development Community ::: Forum ::: Library

It' time for Progressive Web & IT Development!
Reply With Quote
  #2 (permalink)  
Old 12-06-2003, 09:35 AM
matauri matauri is offline
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: Western Australia
Posts: 2,105
matauri RepRank 0
Default

Just a footnote to above.....

Client is having concerns about the db names. The db he has set up has one name, and when he goes to restore he is saying old db has diff name (which I kinda figured it would).


Cindy
__________________
Web Development Community ::: Forum ::: Library

It' time for Progressive Web & IT Development!
Reply With Quote
  #3 (permalink)  
Old 12-06-2003, 12:03 PM
cyanide cyanide is offline
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: Toronto, Canada
Posts: 2,193
cyanide RepRank 0
Default

The name of the database doesn't really matter.
There is a config file in the program that points to the database, you just have to re-name it.

Now, what I would suggest when moving a program from one domain(server) to another, is:
On the new server, install phpbb as a new install. Because it has an auto-installer it will make the connections (username/password/database name) automatically.

Then go into phpMyAdmin of the new install and dump the data of all tables. Not the structure, just the data.
Then on the old domain, go into phpMyAdmin and export only the data of all tables and import that into the new database.

does that make sense?
__________________
|
Web Hosting Guru
| Need Help For Your Forum?
Reply With Quote
  #4 (permalink)  
Old 12-06-2003, 02:18 PM
redcircle's Avatar
redcircle redcircle is offline
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Grand Rapids, MI USA
Posts: 553
redcircle RepRank 0
Default

how are you exporting you database. My advice is to use a current version of phpMyAdmin some of the older versions had some real bugs in them and cause flakey results. On the new site make sure the database is created but no tables and import it in. It should work like a charm.

If you think it's a problem with the db names then check to make sure your configuration is correct.

Column 'group_id' cannot be null

The index cannot have a null value that's what that error means (assuming group_id is the index)
Reply With Quote
  #5 (permalink)  
Old 12-07-2003, 07:39 AM
matauri matauri is offline
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: Western Australia
Posts: 2,105
matauri RepRank 0
Default

Thanks guys. Finally got db going ok ! Now I jsut gotta figure out some wrong php pathway with the login, but thats prob a pathway I missed somewhere. Will scour thru them.

But thanks for help so far :-)


Cindy
__________________
Web Development Community ::: Forum ::: Library

It' time for Progressive Web & IT Development!
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum
Tags: forum, phpmysql, problem



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Search Engine Friendly URLs by vBSEO 3.0.0