The SQL commands you used are only necessary when the "No auto value on zero" is not checked or not supported on your server. This option only works on MySQL servers and as far as I can understand from MySQL's documentation it will only work on MySQL 5.5 or later. If you are restoring to a non-MySQL database or an old version of MySQL you will have to run your custom SQL commands.
Two very important things to note.
1. Magento (and Drupal) do it wrong. It's not my assessment, it's according to the MySQL documentation. Magento and Drupal use the numerical value 0 on an auto_increment column. This is discouraged by the MySQL documentation because it will cause problems when exporting and reimporting that database contents. We can try to coerce MySQL into restoring 0 values in auto_increment columns but it's up to the database server to decide if it wants to honour this instructions.
2. Magento and Drupal are not officially supported for use with Akeeba Backup and Akeeba Solo. What you are asking is having an official support. This won't happen any time soon since an officially supported script must also be reconfigured by the specialised ANGIE installer. Due to the way Magento and Drupal are written this is impossible to do automatically when you are restoring your site(s) on a different server, domain, subdomain or subdirectory.
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!