arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mysql-server and phpmyadmin problem
#10
(03-12-2019, 08:31 AM)Rehan Wrote: for now i want to import database from my Windows system to ubuntu server via terminal is it possible?

That is certainly possible.

1. Backup the database on your Windows server into the .sql format (you can also compress it if you like).

2. Transfer the .sql file to your Linux server (extract it if you compressed it).

3. Start the MySQL command line and login as root:
mysql -u root -p

4. Create a empty database where you want to import the backup into:
CREATE DATABASE databasenamehere;
(Replace "databasenamehere" with your desired database name.)

5. Exit the MySQL command line with a simple "exit" command.

6. Import the database backup into the new empty database:
mysql -u root -p databasenamehere < databasebackupfile.sql
(Again remember to adjust database name and the database backup file name.)

7. Wait until the import is complete.


That's it actually. Works on MySQL and MariaDB.
[Image: zHHqO5Q.png]


Messages In This Thread
mysql-server and phpmyadmin problem - by Rehan - 03-08-2019, 02:14 PM
RE: mysql-server and phpmyadmin problem - by Mashiro - 03-12-2019, 12:04 PM

Possibly Related Threads…
Thread
Author
Replies
Views
Last Post
12,588
03-21-2019, 09:12 PM
Last Post: amontes

person_pin_circle Users browsing this thread: 2 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting