K
K
Kirill Sidorov2011-03-10 06:16:03
MySQL
Kirill Sidorov, 2011-03-10 06:16:03

MySQL export with users?

There was a task to move on other VDS. ISPManager is installed on both machines, but it refuses to import the user - constantly errors. I decided to do it manually, but I really don’t want to create MySQL users again, then write them in scripts and do other related things.
Is it possible to somehow export all databases along with users, saving their passwords?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
LIAL, 2011-03-10
@LIAL

phpMyAdmin cost?? if it is, it has an export function to .sql; if not, then you can run something like this through the console to the server or with cron (taking into account your database location):
mysqldump -h localhost -u DB_NAME -pservice!579_ -d lialbiz_service > /_mybackups/lialbiz_db_service.sql

V
voooz, 2011-03-10
@voooz

Update tar - import errors will disappear (more on the ispsystem forum)

S
shadowalone, 2011-03-10
@shadowalone

If the MySQL versions are identical on both servers, and the same OS, then just copy /var/lib/mysql completely from one to the other, and no problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question