Migration finally succeed, I just drop the php-script I used to rebuild the sql permessions:
PHP
- <?php
- $mysqli = new mysqli("localhost", "root", "", "imscp");
- if ($mysqli->connect_errno) {
- printf("Connect failed: %s\n", $mysqli->connect_error);
- exit();
- }
- $query = "
- SELECT
- sqlu_name as dbuser,
- sqlu_host as dbhost,
- sqld_name as dbname,
- sqlu_pass as dbpass
- FROM sql_user sqlu
- INNER JOIN sql_database sqldb
- ON sqlu.sqld_id = sqldb.sqld_id
- ";
- if ($result = $mysqli->query($query)) {
- while ($row = $result->fetch_assoc()) {
- $query2 = "GRANT ALL ON `{$row['dbname']}`.* TO '{$row['dbuser']}'@'{$row['dbhost']}' IDENTIFIED BY '{$row['dbpass']}';";
- $mysqli->query($query2);
- echo $query2."\n";
- }
- $result->free();
- }
- ?>