User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 374,156 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,439 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser:
Views: 542 | Replies: 4 | Solved
Reply
Join Date: Apr 2008
Posts: 3
Reputation: Mekano is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Mekano Mekano is offline Offline
Newbie Poster

How do I edit a file in MySql please?

  #1  
Apr 11th, 2008
Hi,

I put websites together using Xoops and OsCommerce. I need to know how to edit mysql databases using Cpanel. Please could you point me in the direction of some tutorials? There are some which show how to se up a database but not how to edit one.

For example, in a client's Oscommerce cart I have to delete all the items from the Best Seller box so he can start a new list there. I found some instructions on the web. The Best Seller box is reset like this:

You can use now phpMyAdmin and go to the product database and set products_ordered to "0".

I can find the file under the structure tab in mySql but dont know what to do next!

Would appreciate any leads.

Thank you.

Mekano
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2005
Posts: 494
Reputation: techniner is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 18
techniner techniner is offline Offline
Posting Pro in Training

Re: How do I edit a file in MySql please?

  #2  
Apr 11th, 2008
Click the "Browse" tab and you should be able to modify it from there.

Or Click the small icon next to the table name.

To delete all items from a table you have two options.

Browse to the table then click the red "Empty" tab.

The other option is to click the SQL tab and write the query.

delete from osCommerceProductTableName;

Then click go and it will wipe the table.
Did my post help?
Visit Little Jon's Web Portal


Generate Traffic with Maximum Traffic Software
Reply With Quote  
Join Date: Feb 2008
Posts: 7
Reputation: jimesten is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
jimesten's Avatar
jimesten jimesten is offline Offline
Newbie Poster

Re: How do I edit a file in MySql please?

  #3  
Apr 17th, 2008
I sounds like they want you to set a particular value to 0 in a table. If you've found the table, you're golden. The left nav panel of phpMyAdmin shows you all the tables once you've selected a database. Click on the table you need. This will bring that table active, but showing he schema. You want to look at what is in the table. Click Browse .. sounds like there are a limited number of rows in the table (perhaps only one). Click the green check mark to edit the record. This pops open a form that lets you edit each value in the row. When finished, scroll to bottom and click the Go button. Mission accomplished. If you need to set the value in a number of rows, a single sql command will likely be faster. As an example, I have a table that I reuse on sites, but need to change an email address that appears in all records. Each row has an id number that starts at one so I run a simple update statement that sets the email address to a new value for all records where the id > 0 (which is all of them..)

hope that helps .. once you get comfortable with phpMyAdmin, you'll be able to really fly around it. Quite powerful tool to have available!

cheers,

Jim
Reply With Quote  
Join Date: Sep 2007
Location: North Bay Ontario
Posts: 174
Reputation: trudge is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 20
trudge trudge is offline Offline
Junior Poster

Re: How do I edit a file in MySql please?

  #4  
Apr 20th, 2008
Why not just access the database using the 'mysql' client side program?

mysql -hwww.yourwebsite.com -uyourusername -p

This will prompt you for the password. Once you are logged in you have direct access to the database.

Unless of course the admins have not granted permissions to access from remote. In which case you are stuck using PHPmyAdmin - yuck. I stopped using that after a few databases got mangled during a dump.

Best option is the one I suggested if it is available. Otherwise I use HeidiSQL.
Amer Neely - Web Mechanic
"Others make web sites. We make web sites work!"
Reply With Quote  
Join Date: Apr 2008
Posts: 3
Reputation: Mekano is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Mekano Mekano is offline Offline
Newbie Poster

Re: How do I edit a file in MySql please?

  #5  
May 2nd, 2008
Just wanted to say thank you all so very much for your help and sorry not to have said so before. Thanks again

Mekano
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb MySQL Marketplace
Thread Tools Display Modes

Other Threads in the MySQL Forum

All times are GMT -4. The time now is 3:33 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC