- 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