Error (near “ON” at position 25) while importing Table for WORDPRESS ( A foreign key Error)

后端 未结 8 1877
野的像风
野的像风 2020-12-23 12:00

I try to import a large file to my Database (WordPress), it shows some error like this:

Error

Static analysis:

1 errors were found during analysis.

    Un         


        
8条回答
  •  醉梦人生
    2020-12-23 12:21

    This happens because of the importing connectivity issue with phpmyadmin when you import large DB, here is how you can import large data base to the phpmyadmin. First change the following files according to your DB size.


    Changing php.ini at C:\xampp\php\php.ini

    max_execution_time = 600
    max_input_time = 600
    memory_limit = 1024M
    post_max_size = 1024M
    

    Changing my.ini at C:\xampp\mysql\bin\my.ini

    max_allowed_packet = 1024M
    

    then run the shell from xampp control panel and enter the following command.

    #mysql -p -u root DBname < c:\xampp\DBfolder\db.sql
    
    EnterPassword: (usually it is blank).
    

    then the process will start. :):):)

提交回复
热议问题