How to Fix PHPMyAdmin Error Incorrect Format Parameter xampp Cpanel in Ubuntu?

03-Apr-2023

.

Admin

How to Fix PHPMyAdmin Error Incorrect Format Parameter xampp Cpanel in Ubuntu?

Hello Friends,

This article will give you an example of how to fix the phpmyadmin error with the incorrect format parameter xampp cpanel in ubuntu. I would like to show you how to fix the phpmyadmin error incorrect format parameter that appeared while importing a database. I explained simply about solving phpmyadmin incorrect format parameter error. We will look at an example of phpmyadmin error incorrect format parameter and nail it easily.

PhpMyAdmin can encounter errors that may inconvenience its users. One of these errors is the "incorrect format parameter" error that occurs when using PhpMyAdmin in XAMPP on Ubuntu or cPanel. In this tutorial, you will learn how to fix/solve the phpmyadmin error "incorrect format parameter" on XAMPP, Ubuntu, and cPanel.

Solution 1: Change the character set encoding in PhpMyAdmin


The first solution to fix the “incorrect format parameter” error in PhpMyAdmin is to change the character set encoding in PhpMyAdmin to match the one used in the SQL file. To do this, follow these steps:

  • Login to PhpMyAdmin and select the database that you want to import the SQL file into.
  • Click on the “Import” tab at the top of the page.
  • In the “File to import” section, click on the “Choose File” button and select the SQL file that you want to import.
  • Scroll down to the “Format-specific options” section and select the correct character set encoding for the SQL file.
  • Click on the “Go” button to import the SQL file.
  • Solution 2: Increase the PHP limits

    Solutions to the “Incorrect format parameter” error

  • Increase the file upload limit: You can increase the file upload limit by modifying the “upload_max_filesize” and “post_max_size” values in the php.ini file. These values determine the maximum file size that can be uploaded or imported. You can increase these values to a higher limit to allow larger files to be uploaded or imported.
  • Increase the memory limit: You can increase the memory limit by modifying the “memory_limit” value in the php.ini file. This value determines the maximum amount of memory that PHP can use. You can increase this value to a higher limit to allow PHP to handle larger files.
  • Check server configuration: If the above solutions do not work, you should check the server configuration. Ensure that the server is running the latest version of PHP and MySQL. You can also try restarting the server to see if it resolves the issue.
  • Check server configuration: If the above solutions do not work, you should check the server configuration. Ensure that the server is running the latest version of PHP and MySQL. You can also try restarting the server to see if it resolves the issue.
  • So, Open your php.ini file and edit the php.ini file, in our case, the path is “/etc/php.ini”. You need to change the given values accordingly based on your requirements:

    max_execution_time = 3000

    max_input_time = 600

    memory_limit = 128M

    post_max_size = 100M

    upload_max_filesize = 100M

    Solution 3: Directly run using SQL tab

    In the third solution, You can open your SQL file in the text editor and copy from your SQL file into the SQL tab. Then run this into your PHPMyAdmin console. However, this option is less likely to succeed if the data is large and exceeds the default maximum execution time in PHP.

    Solution 4: import of Database using SSH Command

    If the above solution is none. Then you can import the backup of the database using the SSH option:

    mysql -u user -p database < backup_file.sql

    I hope it can help you...

    #Ubuntu