kevinjansen
Basic Pleskian
- Server operating system version
- Centos 7
- Plesk version and microupdate number
- Obsidian 18.0.51
Dear Community.
I am trying to make a migration script and came to the part where i need to export/import the database.
I can create a database and import the database content from the old mysql server without a problem.
But now i need to create the database user. And i like to dont change the customers password.
I can export the mysql.user password hash from the current Mysql server. But i am not able to give that password hash to plesk.
When i use the plesk cli command it thinks its a plain text password and create a new hash based of that hash.
And then i want to update the database i get a error:
UPDATE mysql.user SET Password='*81E76F9718E4ECC1DEF72BA47D2648A7818C7A2B' WHERE User='testdatabase_export'; FLUSH PRIVILEGES;
ERROR 1356 (HY000): View 'mysql.user' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
How can i reuse the password hash cause i dont know the actual password. (yes i can search in all the wp-config.php / configuration.php files ect)
I am trying to make a migration script and came to the part where i need to export/import the database.
I can create a database and import the database content from the old mysql server without a problem.
But now i need to create the database user. And i like to dont change the customers password.
I can export the mysql.user password hash from the current Mysql server. But i am not able to give that password hash to plesk.
When i use the plesk cli command it thinks its a plain text password and create a new hash based of that hash.
And then i want to update the database i get a error:
UPDATE mysql.user SET Password='*81E76F9718E4ECC1DEF72BA47D2648A7818C7A2B' WHERE User='testdatabase_export'; FLUSH PRIVILEGES;
ERROR 1356 (HY000): View 'mysql.user' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
How can i reuse the password hash cause i dont know the actual password. (yes i can search in all the wp-config.php / configuration.php files ect)