Загрузка...

How to copy data from one user source database to another user destination database?

This video was made with Clipchamp
In this video we may copied data from one user source database to another user destination database.
you need to first log in as source user name and select database to be copied.
To export the data from the source user's database, use the mysqldump command.
mysqldump -u source_user -p source_database data_dump.sql
Replace data_dump.sql with the name you want for the SQL dump file and source_database with the name of the database you want to export.
Enter MySQL as the user you want to receive the SQL files by copying them. To access the database, you must have the destination user's credentials.
mysql -u destination_user -p
Create the Destination Database (if needed):
If the destination database doesn't exist yet, create it:
CREATE DATABASE destination_database;

Substitute the appropriate name for the new database for destination_database.
Data Import from SQL:
The SQL dump file can be imported into the target database using the mysql command.

mysql -u destination_user -p destination_database data_dump.sql
Change destination_user to the username you're using, data_dump.sql to the location of your SQL dump file, and destination_database to the name of the destination database.

Видео How to copy data from one user source database to another user destination database? канала Innovative Technical Information
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять