mySQL table editing question?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Danielle
    Confirmed User
    • Jun 2002
    • 1227

    #1

    mySQL table editing question?

    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?

    Hugs,
    Danielle
  • GrouchyAdmin
    Now choke yourself!
    • Apr 2006
    • 12085

    #2
    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.

    Comment

    • GrouchyAdmin
      Now choke yourself!
      • Apr 2006
      • 12085

      #3
      Dammit. Here's the homepage. Dunno why I did .org. I blame stupidity.

      Comment

      • Danielle
        Confirmed User
        • Jun 2002
        • 1227

        #4
        Thanks toonpornblog. I use phpmyadmin but it makes you edit one record at a time.

        Maybe exporting will work better. hmmmmm....

        Hugs,
        Danielle

        Comment

        • Adultnet
          Confirmed User
          • Sep 2003
          • 8713

          #5
          try tucows im sure you will find a nice and free mysql editor


          TrafficCashGold Paying Webmasters Since 1996!

          Awesome Conversions! Fast Weekly Payments! Over 125 Tours!

          Comment

          • bl4h
            Confirmed User
            • Jul 2006
            • 1282

            #6
            why would you need to do that. this is what myslq is all about. Editing entire database with single command

            Comment

            • teksonline
              So Fucking Banned
              • Jan 2005
              • 2904

              #7
              what field are you changing as are they unique? php is a web interface to mysql client, you execute queriues to do bulk changes

              <column> has 50004239492942 rows containing <column> = 1
              UPDATE <table> SET <column>='5' WHERE <column>='1';
              whee all done

              Comment

              • fetishblog
                Confirmed User
                • Sep 2005
                • 5995

                #8
                http://www.mysql.com/products/tools/administrator/

                Fling.com doesn't steal your traffic and sales unlike some other dating companies. I promote them, and so should you!

                Comment

                • 3M TA3
                  Confirmed User
                  • Aug 2005
                  • 2972

                  #9
                  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

                  Comment

                  • Danielle
                    Confirmed User
                    • Jun 2002
                    • 1227

                    #10
                    Originally posted by bl4h
                    why would you need to do that. this is what myslq is all about. Editing entire database with single command
                    Because I want to.

                    Hugs,
                    Danielle

                    Comment

                    • Danielle
                      Confirmed User
                      • Jun 2002
                      • 1227

                      #11
                      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.

                      Hugs,
                      Danielle

                      Comment

                      • teksonline
                        So Fucking Banned
                        • Jan 2005
                        • 2904

                        #12
                        you need database experience or a database admin to do these tasks for you, its a simple but multi-step proccess

                        connect to mysql client.. if you have shell access to server you can do something like

                        echo "SELECT field1, field2, field3, field4 FROM <tablename>"|mysql -u<username> -p <databasename> >filename.txt

                        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

                        Comment

                        • Danielle
                          Confirmed User
                          • Jun 2002
                          • 1227

                          #13
                          Originally posted by teksonline
                          you need database experience or a database admin to do these tasks for you, its a simple but multi-step proccess

                          connect to mysql client.. if you have shell access to server you can do something like

                          echo "SELECT field1, field2, field3, field4 FROM <tablename>"|mysql -u<username> -p <databasename> >filename.txt

                          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.

                          Hugs,
                          Danielle

                          Comment

                          • Adultnet
                            Confirmed User
                            • Sep 2003
                            • 8713

                            #14
                            Great tool... Im sure this can do


                            TrafficCashGold Paying Webmasters Since 1996!

                            Awesome Conversions! Fast Weekly Payments! Over 125 Tours!

                            Comment

                            • teksonline
                              So Fucking Banned
                              • Jan 2005
                              • 2904

                              #15
                              I think what you're looking for is a magic wand

                              Comment

                              • bl4h
                                Confirmed User
                                • Jul 2006
                                • 1282

                                #16
                                Originally posted by Danielle
                                Because I want to.

                                Hugs,
                                Danielle

                                Comment

                                • dissipate
                                  The Dirty Frenchman
                                  • Nov 2005
                                  • 8904

                                  #17
                                  Originally posted by toonpornblog
                                  Dammit. Here's the homepage. Dunno why I did .org. I blame stupidity.
                                  Gosh, you're retarded.

                                  Comment

                                  • Danielle
                                    Confirmed User
                                    • Jun 2002
                                    • 1227

                                    #18
                                    Originally posted by teksonline
                                    I think what you're looking for is a magic wand
                                    Nope.... Just a way to edit a mySQL table in a spreadsheet view.

                                    Hugs,
                                    Danielle

                                    Comment

                                    • V_RocKs
                                      Damn Right I Kiss Ass!
                                      • Nov 2003
                                      • 32449

                                      #19
                                      Hugs, Danielle?

                                      Comment

                                      • Danielle
                                        Confirmed User
                                        • Jun 2002
                                        • 1227

                                        #20
                                        bump. Anyone know of a script that will do this?

                                        Hugs,
                                        Danielle

                                        Comment

                                        • BitAudioVideo
                                          Confirmed User
                                          • Jul 2005
                                          • 1246

                                          #21
                                          you could probably find a programmer to write up a simple php script to do this in about 10 minutes
                                          Hi-Quality Encoding - Bulk Orders - On Time!
                                          http://bitaudiovideo.com
                                          icq 50476697 - aim n3r0xXx

                                          Comment

                                          • Adultnet
                                            Confirmed User
                                            • Sep 2003
                                            • 8713

                                            #22
                                            Originally posted by Danielle
                                            bump. Anyone know of a script that will do this?

                                            Hugs,
                                            Danielle
                                            Danielle, you got a good software for this allready posted inisde this topic..
                                            http://www.mysql.com/products/tools/query-browser/


                                            TrafficCashGold Paying Webmasters Since 1996!

                                            Awesome Conversions! Fast Weekly Payments! Over 125 Tours!

                                            Comment

                                            • fusionx
                                              Confirmed User
                                              • Nov 2003
                                              • 4618

                                              #23
                                              MySQL Tools Query browser

                                              Connect to the DB

                                              Run a query "select * from tablename"

                                              Edit whatever you want to edit

                                              Click Apply Changes at the bottom

                                              Done.

                                              Comment

                                              • Adultnet
                                                Confirmed User
                                                • Sep 2003
                                                • 8713

                                                #24
                                                Originally posted by Adultnet
                                                Danielle, you got a good software for this allready posted inisde this topic..
                                                http://www.mysql.com/products/tools/query-browser/
                                                comes with a demo...
                                                http://www.mysql.com/products/tools/...edit_rows.html


                                                TrafficCashGold Paying Webmasters Since 1996!

                                                Awesome Conversions! Fast Weekly Payments! Over 125 Tours!

                                                Comment

                                                • Danielle
                                                  Confirmed User
                                                  • Jun 2002
                                                  • 1227

                                                  #25
                                                  Thanks Adultnet and fusionx!

                                                  That looks like what I am looking for. Going to go download it and give it a try.

                                                  Hugs,
                                                  Danielle

                                                  Comment

                                                  • Fizzgig
                                                    Registered User
                                                    • Feb 2004
                                                    • 9649

                                                    #26
                                                    Originally posted by toonpornblog
                                                    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.
                                                    ---'-,-{@ Sassy Grrrl @}-'-,---

                                                    Comment

                                                    • Damian_Maxcash
                                                      So Fucking Banned
                                                      • Oct 2002
                                                      • 12745

                                                      #27
                                                      Have a look at http://navicat.com/

                                                      Its a windows prog that hooks into your MySql server and allows to edit tables etc.

                                                      Its so much easier than phpmyadmin - when importing large dumps it always times out ect - you can use this and it runs like clock work.

                                                      I use it for everything.

                                                      Comment

                                                      Working...