Help with this php?

by 5 replies
6
I copied all of the php pages from one script on my site I had designed for me.

I put them on another website of mine, and created a database and changed the settings in the php file on the additional site. However, I don't know how to actually put the database in the MSQL section of godaddy. I see where I can export as mysql - and then do I just import into the other database the same exact thing I download and it should work?

So right now I get a database error when I try to add something to the database, cause there's no tables actually in the database.

Not sure my explaination is good, it usually sucks, I apologize.
#programming #php
  • Doesn't your script include an installation file?

    Could you paste the exported .sql here?

    Cheers
    • [1] reply

    • Naturally I figured it out. I just exported as a file, and then imported that same file into the additional database and voila.

      I have no idea how I figure this NONSENSE out - it's truly a miracle. =)
  • You should be using PHPMYADMIN - it has an IMPORT feature where you can select SQL files to import into your database. Ask GoDaddy if they offer PHPMYADMIN - a standard feature of CPANEL.
    • [1] reply

    • That's exactly where I was and exported the data table. =)
  • You can not import or copy your table directly in mysql database. For that you should create new tables and import your existing data with constraint.

Next Topics on Trending Feed

  • 6

    I copied all of the php pages from one script on my site I had designed for me. I put them on another website of mine, and created a database and changed the settings in the php file on the additional site. However, I don't know how to actually put the database in the MSQL section of godaddy. I see where I can export as mysql - and then do I just import into the other database the same exact thing I download and it should work?