Anyone know of a script that will load a mySQL table into a spreadsheet view and then allow you to edit all spreadsheet cells and then save the entire table?
Not as a spreadsheet, but most people do this with PhpMyAdmin.
Honestly, if you just want to do an edit, do a dump, then use your favorite text editor? I suppose you could export it as a CSV type, but that's going to cause issues.
hmm, you can always export the entire database in CSV which will be easy to import into excel, however, returning it to mysql will be a little tougher than exporting it.
phpmyadmin will let you mass update multiple tables with a single command and there are a lot of intuitive shortcuts in it.
just don't forget to back up you db before you start playing.
Dedicated and colo hosting: ICQ 291313057
"A problem cannot be solved from the same consciousness that created it. We must learn to see the world anew." - Albert Einstein
I think I should better describe what I want to do......
I have a table with the following fields.
field 1, field 2, field 3, field 4
I want to view all of the table in a spreadsheet view and be able to edit all the records and fields like you can in Excel. Then save the entire table back.
this will put all those records into filename.txt, then load into spreadsheet selecting proper formatting, might be a space or tab, between fields, i forget
offhand
you need to include the primary key field in your selects so when your done you can use the following commands to re-import
UPDATE <tablename> SET field2 = 'blah', field3 = 'blah' field4='blah' WHERE field1 = 'ID'; based off a written script of some sort that is reading the text file line by line
this will put all those records into filename.txt, then load into spreadsheet selecting proper formatting, might be a space or tab, between fields, i forget
offhand
you need to include the primary key field in your selects so when your done you can use the following commands to re-import
UPDATE <tablename> SET field2 = 'blah', field3 = 'blah' field4='blah' WHERE field1 = 'ID'; based off a written script of some sort that is reading the text file line by line
To much of a pain in the ass way to do it. That is why I am looking for a script that can do what I want.
Not as a spreadsheet, but most people do this with PhpMyAdmin.
Honestly, if you just want to do an edit, do a dump, then use your favorite text editor? I suppose you could export it as a CSV type, but that's going to cause issues.
I tried that once and had problems, but I thought it was just me.
Comment