Jump to content

[SOLVED] exporting database


jkkenzie

Recommended Posts

Hi!

when i export a database with text field that contain html codes like <p> , it causes my mysql to get errors when running the SQL to create tables.

 

How can i export a database successfully without errors caused by html contents in the fields.?

 

Thanks in advance.

Joseph

Link to comment
Share on other sites

-I open phpadmin of WAMP.

-i select my database .

- I click Export.

-I Select SQL on the EXPORT PANE.

- SQL options has below selected:

              SQL compatibility mode NONE

 

-The Structure pane has below selected:

                Structure

                Add AUTO_INCREMENT value

                Enclose table and field names with backquotes

- The Data pane has the blow selected:

                data

                Complete inserts

                Extended inserts

                Maximal length of created query

                Use hexadecimal for binary fields

                Export type INSERT

-Compression = none

-THEN i click "GO"

 

_then i copy the result and save as notepad.

_then i create new database with same name as source or alter the result as above to be same as the new database.

_then i open my new database.

_then i click SQL.

_then i paste my notepad result to the (Run SQL query/queries on database mydatabasename) and click "Go"

That is it.

If there were html codes in my fileds , they would result in errors.

 

thanks in advance.

 

Regards,

Joseph

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.