
MySQL
rocksword
这个作者很懒,什么都没留下…
展开
-
查看MySQL运行状况
列举了几种查看MySQL运行状况的方法,总结一下。phpMyAdmin最简单的方式,在phpMyAdmin直接点击状态查看,详细如下图。这查看的是MySQL的一些运行状况数值,这种方式被大多数系统管理员所不齿,因为专业的MySQL服务器很少有能通过phpMyAdmin访问的,后面会介绍其他查看方式,但是phpMyAdmin提供优化建议还是很具有指导性和参考性的。SHOW转载 2014-04-23 09:17:45 · 299 阅读 · 0 评论 -
bTree vs HashTable
you can only access elements by their primary key in a hashtable. this is faster than with a tree algorithm ( O(1) instead of log(n)) you cannot select ranges (everything in between x and y). tree alg转载 2015-01-26 11:13:50 · 197 阅读 · 0 评论 -
mysql索引的不足
mysql索引尽管提高了查询的速度,但是也并不是尽善尽美的,mysql索引也有着自身的不足之处,下面就让我们一起来了解一下。mysql索引的不足之处过多的使用索引将会造成滥用。因此索引也会有它的缺点:◆虽然mysql索引大大提高了查询速度,同时却会降低更新表的速度,如对表进行 INSERT、UPDATE和DELETE。因为更新表时,MySQL不仅要保存数据,还要保存一下索引文件转载 2015-01-26 11:09:41 · 246 阅读 · 0 评论 -
In SQL, what's the difference between an inner and outer join?
Joins are used to combine the data from two tables, with the result being a new, temporary table. The temporary table is created based on column(s) that the two tables share, which represent meaningfu转载 2015-01-20 11:12:45 · 362 阅读 · 0 评论 -
MySQL Hash索引和B-Tree索引的区别
MySQL Hash索引和B-Tree索引的区别究竟在哪里呢?相信很多人都有这样的疑问,下文对两者的区别进行了详细的分析,供您参考。MySQL Hash索引结构的特殊性,其检索效率非常高,索引的检索可以一次定位,不像B-Tree 索引需要从根节点到枝节点,最后才能访问到页节点这样多次的IO访问,所以 Hash 索引的查询效率要远高于 B-Tree 索引。 可 能很多人又有疑问了,既然转载 2015-01-26 11:04:10 · 204 阅读 · 0 评论 -
Install LAMP Server (Apache, MySQL, PHP) On RHEL, CentOS
LAMP is a combination of operating system and open-source software stack. The acronym LAMP is derived from first letters of Linux, Apache HTTP Server, MySQL database, and PHP/Perl/Python.In this t转载 2015-03-18 14:34:54 · 215 阅读 · 0 评论 -
Installing MySQL Server on CentOS
MySQL is an open-source relational database. For those unfamiliar with these terms, a database is where an application keeps its data, and relational refers to how the data is organized and accessed w转载 2014-12-10 11:42:58 · 300 阅读 · 0 评论 -
Import CSV File Into MySQL Table
This tutorial shows you how to use LOAD DATA INFILE statement to import CSV file into MySQL table.The LOAD DATA INFILE statement allows you to read data from a text file and import the file’s dat转载 2014-12-10 11:38:21 · 918 阅读 · 0 评论 -
A Java MySQL INSERT example
Java MySQL INSERT example: Can you share a Java MySQL INSERT example, specifically using a Java PreparedStatement object?Sure. As the question implies, you can use the Java Statement class to issu转载 2014-12-10 16:23:29 · 485 阅读 · 0 评论 -
Load GeoIP data
system echo '*** DROP DATABASE iploc ...'DROP DATABASE if exists iploc;system echo '*** CREATE DATABASE iploc ...'CREATE DATABASE iploc;GRANT all on iploc.* to root@'%';USE iploc;原创 2014-12-10 13:57:41 · 316 阅读 · 0 评论 -
MySQL key size limit to 255
If you reduce the InnoDB page size to 8KB or 4KB by specifying the innodb_page_size option when creating the MySQL instance, the maximum length of the index key is lowered proportionally, based on原创 2014-04-11 11:11:55 · 407 阅读 · 0 评论 -
Migrate data from MySQL to PostgreSQL
1. Export data from MySQL$mysqldump -u root -p -c db_name table_name >table_name.sql原创 2014-04-23 14:10:08 · 382 阅读 · 0 评论 -
PostgreSQL与MySQL命令的使用比较
服务启动: 1)#service postgresql start 2)#/etc/init.d/postgresql start 3)#su postgresql $ pg_ctl startPostgreSQL的进程号:1210、1207、服务启动: 1)#service mysqld start 2)#/et转载 2014-04-23 10:55:14 · 296 阅读 · 0 评论 -
MySQL Engines - MyISAM vs Innodb
MySQL supports several different types of Table Engines also known as "Table Types". A database can have its tables being a mix of different table engine types or all of the same type. Here is more in转载 2015-04-27 18:38:02 · 306 阅读 · 0 评论