Common MySQL database operations

Source: Internet
Author: User

Common MySQL database operations
Server operation (cmd)

Check whether the mysqld.exe process exists in the progress table)

  • Disable the server (ensure that mysql is a windows Service): net stop mysql56
    Check whether the process mysqld.exe exists in the process (does not exist)

  • Customer Login operation
    Cmd
    1. log on to the server: mysql-uroot-p123-hlocalhost //-hlocalhost can be omitted, which is the default
    -U: followed by the user name
    -P: Password followed
    -H: followed by IP Address
    2. exit the server: exit or quit

    MySQL storage blob data package backup and recovery is too large

    Com. mysql. jdbc. PacketTooBigException: Packet for query is too large (9802817> 1048576). You can change this value on the server by setting the max_allowed_packet 'variable.

    In my. ini, add max_allowed_packet = 10 M under [mysqld]. For example:

    [Mysqld]
    Max_allowed_packet = 64 M

    Encoding

    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.