Ruby note Ruby
I recently used ruby to process some data. here I will write down some problems encountered during ruby usage.
Function: import the updated SQL file to the specified database. after the update, compare the md5 value of the table
Before using this method, you must first create a database that you want to import SQL files.
Assume that the database you created is demo_data, the database file is demo. SQL, and the database file is located under your d drive, that is, the file
[MySQL] manage MySQL in WorkBench
MySQL Workbench
MySQL Workbench provides an integrated tool environment for DBAs and developers:
1) database design and modeling
2) SQL development (replacing the original MySQL Query Browser)
3) Database
Quick start to mysql. it is very troublesome to manually open the database when using mysql through simple batch processing commands. I found a method on the Internet and tried it. it is very useful!
1. create a notepad (txt) and enter the
Some common mysql commands in ubuntu
Check the mysql status and whether to start
service --status-all
View the status of all services:
service --status-all
Start mysql:Method 1: sudo/etc/init. d/mysql start Method 2: sudo start mysql method 3:
Add a user using Mysql command line
Create a user: Command:
CREATE USER 'username'@'host' IDENTIFIED BY 'password';
Description: username-the username you will create, host-specifies the host on which the user can log on. if a local user can use
MySQL management and optimization (1) SQL basics: SQL introduction
SQL: Structure Query Language (Structured Query statement) is a way for us to interact with databases.
(MySQL) getting started
SQL classification:
1. DDL (Data Definition
Linuxcmysql programming login failure: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql. sock' (2)
1./etc/rc. d/init. d/mysqld status to check whether mysql has been started
Service mysql start mysql:
Ubuntu12.04 install mysql Ubuntu
It is very convenient to configure the MySQL database in versions earlier than Ubuntu12.04. you only need to run three commands:
Sudo apt-get install mysql-server
Sudo apt-get install mysql-admin
Sudo apt-get
Mysql development in the zg manual (1) -- Development of the Chinese full-text search plug-in current Chinese search and query solution
Database-based fuzzy match (running string search, slow query speed)
Proprietary full-text search engines
In linux, I often use linux because of work and study reasons. some time ago I had to install MySQL through the source code method on linux, during this period, I also referred to various introductions from netizens. now I will summarize them as
Notes: mysql 1, mysql: left, right, outer, inner, left outer, and right outer.
2. export data:
Mysql> SELECT * FROM tutorials_tbl-> into outfile '/tmp/tutorials.txt '; # export the csv format mysql> SELECT * FROM passwd into outfile
I believe many of my friends have just started to contact the Mysql database server. The following is a mysql installation tutorial. the detailed steps are also described in detail.
Tools/raw materials
Mysql
MySQL installation diagram
1Open
Effective time of mysql database permission change When Privilege Changes Take Effect
1. when mysqld is started, the contents of all authorization tables are read into the memory and will take effect from this time.
2. when the server notices
Mysql allows remote connection and authorization
To ensure security, Mysql allows users to log on only locally by default. However, in this case, you still need to use the user for remote connection. Therefore, you need to perform the following
How to export the MYSQL database of the remote server to the MYSQL database export the first method is to use the PHPMYADMIN management tool provided by the space provider for export. this is relatively simple and we will not talk about it
Mysql configuration Windows7odbc 1. first go to the MySQL official website to find the driver to download and install
Http://dev.mysql.com/downloads/connector/odbc/
Download Windows (x86, 64-bit), MSI Installer
2. ODBC configuration
Open the
PHPApacheAccessLog analysis tool splits fields into CSV files and inserts Mysql database analysis Apache
The website is hacked, infected with Trojans, the server is poisoned, and the firewall is disabled... All kinds of wonders ..
What should
Considerations for MySQL big data operations
Http://netkiller.github.io/journal/mysql.parallel.htmlMr. Neo Chen (netkiller), Chen Jingfeng (BG7NYT)
Xishan Meidi, Minzhi Street, Longhua New District, Shenzhen city, Guangdong province, China518131+ 86
Ubuntu changes the MySQL character set UTF-8 to correctly display Chinese Ubuntu
Stop mysql and edit the configuration file my. cnf.
$ sudo stop mysql$sudo vim /etc/mysql/my.cnf
[Client] default-character-set = utf8 # add this line and specify
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service