Time of Update: 2016-09-04
標籤:#獲得當前日期+時間(date + time)函數select now()#獲得目前時間戳函數select current_timestamp, current_timestamp()#Date/Time to Str(日期/時間轉換為字串)函數select date_format(‘2008-08-08 22:23:01‘, ‘%Y%m%d%H%i%s‘)#字串轉換為日期函數select str_to_date(‘08/09/2008‘, ‘%m/%d/%Y‘); -- 2008-08-
Time of Update: 2016-09-04
標籤:centos7下快速安裝mysql CentOS
Time of Update: 2016-09-04
標籤:password database protocol 伺服器 source MySQL用戶端工具mysql --user, -u --host, -h --password, -p
Time of Update: 2016-09-02
標籤:mysql<html> <head> </head> <body> <form action="7.php">
Time of Update: 2016-09-02
標籤:apache php mysql安裝:yum install -y httpd php查看版本:、rpm -qa httpd php httpd-2.2.15-54.el6.centos.x86_64 php-5.3.3-48.el6_8.x86_64修改apache設定檔:vim /etc/httpd/conf/httpd.conf在#ServerName www.example.com:80行下添加一行ServerName localhost:80將裡面的
Time of Update: 2016-09-03
標籤:1.jdbc串連資料庫要添加mysql-connector-java-5.1.38-bin.jar庫2.odbc串連資料庫要添加odbc資料來源3.測試代碼DBHelper.java代碼jdbc串連資料庫import java.beans.Statement;import java.sql.DriverManager;import com.mysql.jdbc.Connection;import com.mysql.jdbc.PreparedStatement;import
Time of Update: 2016-09-04
標籤:http://www.splaybow.com/post/mysql-prompt-introduce.htmlmysql> 準備好接受新命令。 說明:正常等待輸入的提示符。 -> 等待多行命令的下一行。 說明:這是將一個SQL語句分多行輸入時的提示。前提是你輸入了一個不以分號結尾的SQL語句。 ‘> 等待下一行,等待以單引號(“‘”)開始的字串的結束。 說明:前面你應
Time of Update: 2016-09-01
標籤:1.linux版mysql下載(建議不要下5.7,安裝的時候各種bug啊,5.6是最好)到mysql官網下載mysql編譯好的二進位安裝包,在下載頁面Select Platform:選項選擇linux-generic,然後把頁面拉到底部,64位系統下載Linux - Generic (glibc 2.5) (x86, 64-bit),32位系統下載Linux - Generic (glibc 2.5) (x86, 32-bit)2.解壓安裝包進入安裝包所在目錄,執行命令:tar
Time of Update: 2016-09-02
標籤:功能概述: 由於在centos 6.7下通過yum安裝的mysql是5.1版本的,不滿足需求,因此經常性需要編譯安裝mysql服務等。一、安裝mysql 1、安裝前提 1)安裝編譯mysql代碼所依賴的包 [[email protected] ~]# yum -y install make gcc-c++ cmake bison-devel ncurses-devel 2
Time of Update: 2016-08-31
標籤:查看Mysql日誌InnoDB: Initializing buffer pool, size = 128.0MInnoDB: mmap(137363456 bytes) failed; errno 12InnoDB: Completed initialization of buffer poolInnoDB: Fatal error: cannot allocate memory for the buffer pool[ERROR] Plugin ‘InnoDB‘ init
Time of Update: 2016-09-02
標籤:轉自:http://blog.csdn.net/zhuxineli/article/details/14455029(單純學習而轉)explain顯示了MySQL如何使用索引來處理select語句以及串連表。可以協助選擇更好的索引和寫出更最佳化的查詢語句。 先解析一條sql語句,看出現什麼內容 EXPLAINSELECTs.uid,s.username,s.name,f.email,f.mobile,f.phone,f.postalcode,f.addressFROM
Time of Update: 2016-09-01
標籤:問題描述: 就是這麼個情況,登入資料庫切換庫時感覺很卡,需要等待幾秒鐘。案例:shell > mysql -uroot -ppasswordmysql> use databases;Reading table information for completion of table and column namesYou can turn off this feature to get a quicker startup with -ADatabase
Time of Update: 2016-09-01
標籤:項目上的另外一個需求是:在做統計的時候需要將當前表鎖定不能更新當前表記錄直接上代碼package com.robert.RedisTest;import java.sql.Connection;import java.sql.DriverManager;import java.sql.SQLException;import java.sql.Statement;import java.util.Calendar;import
Time of Update: 2016-08-30
標籤:<?php/** * Created by coder meng. * User: coder meng * Date: 2016/8/29 10:27 */header("Content-type:text/html;charset=utf-8");include_once ‘config.php‘;/*$sql="select * from article ";$rs=mysql_query($sql);*/$where=‘‘;$url=‘‘;$wherelist=array()
Time of Update: 2016-08-30
標籤: PHP可以說是當下很火的一門後端語言了,它小巧玲瓏,和html等前端語言配合的可以說是天衣無縫,加之xampp,wampp等工具的出現,更是前端開發人員的福音,作為一名前端ER,如果不熟悉一門後端語言的話,那簡直都不好意思說自己要加薪,那麼我們對於php這門語言學習時,如果我們對js或者其他任何一門語言學的好的話,再去學習一門新的語言那是很好上手的,無非就是先從變數,常量,執行語句,迴圈條件判斷,數組,函數,物件導向,加上這門語言的一些進階函數,什麼date,畫圖,瀏覽器資訊儲存函數啦
Time of Update: 2016-09-02
標籤:mysql 指令碼
Time of Update: 2016-08-31
標籤:# -*- coding: utf-8 -*-‘‘‘python coded by written in 2016/8/31Used for get win os log for each windows server‘‘‘ ‘‘‘pymssql 協助文檔http://pymssql.org/en/stable/pymssql_examples.html‘‘‘import pymssqlimport MySQLdbimport time#全域變數host =
Time of Update: 2016-09-02
標籤:1. 初始化資料 - 列唯一DROP TABLE IF EXISTS `sales`;CREATE TABLE `sales` ( `empid` VARCHAR(10) NOT NULL, `mgrid` VARCHAR(10) NOT NULL, `qty` INT(11) NOT NULL, PRIMARY KEY (`empid`)) ENGINE=INNODB DEFAULT CHARSET=utf8;/*Data for the table `sales` *
Time of Update: 2016-09-01
標籤: 1:使用SHOW語句找出在伺服器上當前存在什麼資料庫:mysql> SHOW DATABASES;2:2、建立一個資料庫MYSQLDATAmysql> CREATE DATABASE MYSQLDATA;3:選擇你所建立的資料庫mysql> USE MYSQLDATA; (按斷行符號鍵出現Database changed 時說明操作成功!)4:查看現在的資料庫中存在什麼表mysql> SHOW
Time of Update: 2016-09-01
標籤:在 Windows 下:開始->運行->cmd啟動:net start mysql停止:net stop mysql無重啟,必須先停止再啟動!!!====================================在LINUX 下:啟動:[[email protected] ~]# /etc/rc.d/init.d/mysqld start停止:[[email