MySQL using Notes

Source: Internet
Author: User

1. How to export the database of MySQL

    • Go to command line, use "CMD"
    • CD C:\Program files\mysql\mysql Server 5.5\bin
    • mysqldump-hx.x.x.x (IP)-p3306-uroot-pxxx db_nls > D:/db_nls.sql
    • Finish the export, SQL file is Db_nls.sql

2. How to import the database of MySQL

    • Go to command line, use "CMD"
    • CD C:\Program files\mysql\mysql Server 5.5\bin
    • mysql-hx.x.x.x (IP)-uroot-pxxx
    • Create a database "test" by MySQL Workbench
    • mysql> Use test
    • Mysql> Source D:/db_nls.sql
    • Finish the import.

Or

    • mysql-hx.x.x.x (IP)-uroot-pxxx-p3306 Db_nls < D:\db_nls.sql

3. How to convert ACCESS database to MySQL

    • Use the Tool:access2mysql
    1. Difference between MySQL and Access
    • Store escape characters are different. MySQL needs to convert the string, "\ \" to "\\\\", "'" to "," and access simply translates "'" "" ".
4. How to set Mysql support multiple language
    • Modify the My.ini which is located in MySQL installed folder
    • Set "Default-character-set =utf8", "Character-set-server=utf8"
    • Restart MySQL Service
5. How to change the password of user:root in MySQL
    • Go to command line, use "CMD"
    • CD C:\Program files\mysql\mysql Server 5.5\bin
    • mysqladmin-uroot-padmin Password xxx

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.