Time of Update: 2014-11-04
標籤:command mysql local 原因:這是由於系統預設會尋找/usr/bin下的命令,如果這個命令不在這個目錄下,當然會找不到命令,我們需要做的就是映射一個連結到/usr/bin目錄下,相當於建立一個連結檔案。首先得知道mysql命令或mysqladmin命令的完整路徑,比如mysql的路徑是:/usr/local/mysql/bin/mysql,我們則可以這樣執行命令:# ln
Time of Update: 2014-11-03
標籤:blog http ar sp 資料 div 問題 log bs http://zhangxugg-163-com.iteye.com/blog/1666673而本文所描述的 f
Time of Update: 2014-11-04
標籤:mac nginx安裝nginxbrew install nginx修改設定檔vim /usr/local/etc/nginx/nginx.conf添加相應的server安裝mysqlbrew install mysqlmac內建php-fpm,無潔癖的人直接使用,否則自行安裝cp /private/etc/php-fpm.conf.default /private/etc/php-fpm.conf修改設定檔:vim /private/etc/php-fpm.conf開啟並修改:
Time of Update: 2014-11-04
標籤:mysql主從複製Mysql主從複製的原理:
Time of Update: 2014-10-31
標籤:style blog http io color os ar sp div http://zetcode.com/db/mysqlcsharptutorial/ MySQL C#
Time of Update: 2014-10-31
標籤:des blog http io os ar 使用 for sp 一、啟動與關閉1.1 Linux下啟動mysql 的命令:a. rpm包安裝:service mysqld startb.
Time of Update: 2014-10-29
標籤:des http os ar 使用 sp strong 資料 div MySQL是世界上最流行的開來源資料庫。目前很多人都在使用資料庫管理工具,協助自己開發程式。像Navicat和phpa
Time of Update: 2014-10-29
標籤:io ar sp 資料 on art cti bs as 什麼是事務一組sql語句操作單元組內所有sql完成一個業務如果整組成功,意味著組內的全部的sql成功如果其中任何一個失敗,意味著整
Time of Update: 2014-10-29
標籤:blog http io ar 使用 sp strong 資料 on MySQl伺服器CPU佔用很高1.
Time of Update: 2014-10-28
標籤:mysql 索引 資料 sql 檢索出不存在相同值的列表可以加上DISTINCT關鍵字SELECT DISTINCT vend_id FROM products;可以使用LIMIT子句來限制返回結果的數量SELECT prod_name FROM products LIMIT
Time of Update: 2014-10-29
標籤:style color os sp 資料 on 代碼 bs ef 首先是建立視圖CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost`
Time of Update: 2014-10-28
標籤:mysql 串連數量 配置資訊 命令: show processlist; 如果是root帳號,你能看到所有使用者的當前串連。如果是其它普通帳號,只能看到自己佔用的串連。 show processlist;只列出前100條,如果想全列出請使用show full processlist; mysql> show processlist; 命令:
Time of Update: 2014-10-28
標籤:des style color os ar 使用 for sp strong 查看資料庫擷取伺服器上的資料庫列表通常很有用。執行show
Time of Update: 2014-10-28
標籤:style blog io color ar sp 資料 div on 先過濾條件然後再根據表串連 同時在表中建立相關查詢欄位的索引這樣在大資料多表聯集查詢的情況下速度相當快SELECT
Time of Update: 2014-10-29
標籤:style io for sp on 問題 bs ad size 1.下載ubuntu版mysql2.解壓mysql3.安裝sudo dpkg -i mysql-common_5.6.21
Time of Update: 2014-10-29
標籤:php pdo串連mysql最近在linux裝了新的環境,php5.6+mysql5.5+nginx。然後用原來的mysql連結資料庫出現的錯誤。原因就是說串連資料庫的方法太舊。建議我用mysqli和PDO來連結資料庫。好吧,咱也不能落後,使用mysqli的確也簡單了不少,但是PDO貌似更簡單。效率也會得到提升。根據官方文檔,貌似對於sql注入的一些風險也做了屏蔽。所以今天寫的
Time of Update: 2014-10-29
標籤:style blog http color os ar 使用 sp strong 一、資料庫範式
Time of Update: 2014-10-29
標籤:style blog http color ar 使用 sp strong 資料
Time of Update: 2014-10-28
標籤:mysql php 查看資料庫擷取伺服器上的資料庫列表通常很有用。執行show databases;命令就可以搞定。mysql> show databases;建立資料庫mysql> create database db_test;Query OK, 1 row affected (0.00 sec)使用資料庫資料庫一旦建立,就可以通過“使用”(use命令)資料庫,將其指定為預設的工作資料庫。mysql>
Time of Update: 2014-10-28
標籤:style blog http io color os ar java for Mysql 筆記二 Mysql 筆記二Table of Contents1. 前言2.