Re: Updating MySQL Database after install

From: Date: Wed, 05 May 2010 03:29:46 +0000
Subject: Re: Updating MySQL Database after install
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-47138@lists.php.net to get a copy of this message
You need to use the ALTER statement. doc: http://dev.mysql.com/doc/refman/5.1/en/alter-table.html <http://dev.mysql.com/doc/refman/5.1/en/alter-table.html>example: http://www.1keydata.com/sql/sql-foreign-key.html On Wed, May 5, 2010 at 8:21 AM, Karl DeSaulniers <karl@designdrumm.com>wrote: > Hi, > I am wanting to get some pointers on how to update my MySQL database after > there is already members. > For eg, I am trying to set some foreign keys that were not part of my > database when I installed it. > There are members in that database. Can I update the database with the new > .sql file without loosing my current info? If so, how? > Fields in the user table have not changed except foreign keys have been > assigned to it. > TIA, > > Karl DeSaulniers > Design Drumm > http://designdrumm.com > >

« previous php.db (#47138) next »