MySQL using notes

Source: Internet
Author: User

One, query a field with multiple records and display only one row

Select  from Group  by  having Count > 1;

Second, MySQL to give other machine connection permissions

Grant  All  on *. *  to [Email protected] ' localhost '  by  Grantall on*. *  to [Email protected] ' % '  by "Root";

Third, MySQL data file

1, about My.ini profile: Before mysql5.6, my.ini configuration files, database files and MySQL installation directory are in the same directory, and after mysql5.6, my.ini configuration files, database files by default in the C-drive Programdata directory. 2, if you want to migrate the database files, can be configured in My.ini (temporarily do not know how to configure a My.ini in the installation directory to load without loading programdata my.ini files, so that you can let the My.ini configuration file, The database file and the MySQL installation directory are in the same directory).

MySQL using notes

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.