![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
平凡但不平庸的码农
安安静静做码农、、、、
展开
-
MySql优化1
1.show engines; 2.innodb 支持事务,行及锁定,外键 3. show variables like 'innodb_file_per_table';//查看每个innodb表的数据和索引是否创建单独的文件存储 4. set global innodb_file_per_table=1; //设置每个innodb表的数据和索引创建单独的文件存储 5. 表结构文件orde...原创 2017-10-06 15:35:20 · 173 阅读 · 0 评论 -
MySQL优化2
1.创建分区 create table goods( -> id int auto_increment, -> name varchar(32) not null default ”, -> price int not null default 0, -> primary key (id) -> ) -&...原创 2017-10-07 15:03:49 · 202 阅读 · 0 评论 -
linus中mysql安装
1.查看mysql安装在哪里whereis mysql2.查看mysql的安装包:rpm -qa|grep mysql3.卸载mysqlyum remove mysql删除mysql的数据库文件:删除 /var/lib/mysql 4.安装mysql 4.1 下载对应的yum源包 rpm文件yum localinstall mysql-community-release-el6-5.noarch原创 2017-11-03 16:24:09 · 239 阅读 · 0 评论