MySQL Learning-Installation and startup

Source: Internet
Author: User
Tags log log

  • Install MySQL
    RPM-IVH mysql-server....rpm
    After installation, you will be prompted/usr/bin/mysqladmin-u root password ' new-password '
    You can also use Msyqladmin--version to see if the installation was successful
    /var/lib/mysql      //MySQL database file storage path /usr/share/mysql   // profile directory /usr/bin        // related commands directory /etc/init.d/mysql   // start and stop related scripts

  • Booting from MySQL
    Chkconfig MySQL on
    Chkconfig--list | grep MySQL
    or NTSYSV

  • Modify Character Set
     //  view character set  show variables Like ' character% ' ;show variables like  '%char% '; 
     /*  =============================  */ //  Modify in my.cnf file  [client]  default -character-set=< Span style= "COLOR: #000000" >utf8[mysqld]character_set_server  =utf8character_ Set_client  =utf8collation -server=utf8_ General_ci[mysql]  default -character-set=utf8 

     

     

  • Configuration file
    Binary log log-bin, mainly used for master-slave replication error log-errors, the default is to turn off the query log, the default is also closed data files: frm storage table structure, MYD storage data myi Storage Index

  • Storage Engine
    // View the storage engine used by MySQL  '%storage_engine% '; the main engines used by ======================== are MyISAM and InnoDB: MyISAM does not support transactions and primary foreign keys, table space is small, table locks are used, cache indexes, data is not cached, Mainly focused on performance InnoDB support for primary foreign keys and transactions, row-level locks, suitable for high concurrency operations, large table space, cache indexes and data, mainly focus on the transaction

MySQL Learning-Installation and startup

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.