One database every day (1), Database (

Source: Internet
Author: User

One database every day (1), Database (

Connect to the database:

mysql -uroot -p

Enter the Database Password to log on.

View mysql version information:

mysql> select version();+-------------------------+| version()               |+-------------------------+| 5.7.20-0ubuntu0.17.04.1 |+-------------------------+1 row in set (0.00 sec)

View the current time:

mysql> select now();+---------------------+| now()               |+---------------------+| 2017-11-09 23:27:41 |+---------------------+1 row in set (0.01 sec)

Implements file transfer between Windows and Ubuntu virtual machines.

In fact, it is easy to install a VMware tools.

Open file management and there is a VM tar package. If there is no tar package, you need to mount a cd drive.

Right-click, set,

I have two cd drives, one for Ubuntu and the other for VM installation. Copy the tar package to the desktop to extract the file.

tar -xzvf  VMwareTools-10.0.6-3595377.tar.gz

Switch to the decompressed directory and execute:

sudo ./wmware-install.pl

Press enter. However, I cannot drag files after installation, so I have to use lrzsz.

sudo apt install lrzsz

Upload successful.

Data Transfer Method

When the machine is changed (or after the dual system is installed), you need to import the previous database information.

Step 1: store the database information to the physical hard disk.

C:\Users\jeffd>mysqldump -uroot -p dbsys > D:\dbsys.sqlEnter password: ********

The database file is generated in the corresponding path.

Create a new database on the machine to be transferred.

Mysql-uroot-p database name <D: \ dbsys. SQL

The database is imported successfully.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.