The basic operation of MySQL

the command to log in to MySQL is mysql: mysql [-u username] [-h host] [-p[password]] [dbname] MySQL directory:Database directory:/var/lib/mysql/Configuration file:/usr/share/mysql(mysql.server command and configuration file)Related

MySQL Server optimization configuration file

[Mysqld]datadir=/var/lib/Mysqlsocket=/var/lib/mysql/Mysql.sockuser=mysql# Disabling Symbolic-links isrecommended to prevent assorted security riskssymbolic-links=0[Mysqld_safe]log-error=/var/log/Mysqld.logpid-file=/var/run/mysqld/Mysqld.pidback_log=

Summary of common commands for MySQL database under CentOS

MySQL Database Usage SummaryThis article mainly records some MySQL daily use commands, for later query.1. Change the root passwordMysqladmin-uroot password ' yourpassword '2. Remote Login to MySQL serverMysql-uroot-p-h192.168.137.10-p33063. Querying

installing MySQL under CentOS

One or two binary free compiler package installation1.: http://mirrors.sohu.com/mysql/MySQL-5.7/file name also glibc binary installation package for free compilationFiles: mysql-5.7.13-linux-glibc2.5-x86_64.tar.gz2, official website download: http://

MySQL Password modification

1. Change the password in the case of knowing the MySQL passwordmysqladmin Command (headings)The format is as follows (where user is the username and password is the new password):mysqladmin-u user-p Password PasswordAfter this command, you will be

29th day MySQL compilation installation, composition, client, variables and types

Before the Linux Ops Foundation is over, start a new phase of Advanced OPS today!1. Basic theory ofrelational data base and my SQL database infrastructureThe basic theory of relational datafile System: All of the initial data is stored in the file,

MySQL character encoding problem

MySQL coding is divided into two categories, service-side coding and client coding.field encoding, table encoding, database encoding these are all part of the service-side code, and the server-side encoding determines which characters you can save

MySQL Multi-instance

First, installation environmentoperating system: CentOS release 6.6 (Final) (minimized installation)MySQL version: mysql-5.5.32.tar.gzCMake version: cmake-2.8.7.tar.gzSecond, install the basic dependency packagefirst change the Yum source to the

Mysql 5.7 Initialize Password

One, MAC MySQL installation1. Download DMG InstallationDownload DMG installation from http://dev.mysql.com/downloads/mysql/Second, MySQL password modification1, through the mysql-uroot-ppwd into the command line, will find any operation will appear

MySQL wide range of page optimization cases

On the BBS line business catches the following paged sql:142597301Meizu_bbs192.168.17.72:39096Meizu_bbs Query217Sending dataSELECT * fromPre_forum_threadWHEREFid= A andDisplayorder>=0 ORDER byLastpostDESCLIMIT1933100, -142597338Meizu_bbs192.168.17

Mysql Replication Master-Slave synchronization

Brief introduction:Mysql's master-slave synchronization function, this solution is a very common enterprise. Often used to back up the database, the main library generates Binlog log files when the client operates the main library.From the library

Dual MySQL start and stop scripts

5.5 Start#!/bin/bash# Author:wang xiaoqiang# func:start MySQL5.5PID= ' NETSTAT-LNPT |awk-F'[ /]+' '/3306/{print $7}'`[ ! -Z $pid] &&Echo-E"\e[1;31mmysql 5.5 is running...\e[0m"&& exit0/usr/local/mysql5/bin/mysqld_safe--defaults-file=/ETC/MY.CNF

There may be problems with the MySQL that just installed successfully

1.ERROR 1045 (28000): Access denied for user ‘mysql‘@‘localhost‘ (using password: NO) //先关闭mysqld服务 service mysqld stop //修改mysql配置文件 vi /etc/my.cnf //写入:skip-grant-tables(用来跳过密码登录,必须在root用户下修改这个文件) //然后进入mysql命令行模式 use

MySQL Import SQL script

For example: My username is the root password is 123 SQL script exists C disk name for Test.sql database for testThere are two ways to execute a script1: Open cmd Enter the following command (do not need to convert directory)>mysql-u root-p123 after

About DOS starting MySQL when the service name is not valid

Main reason: Startup: net start MySQLand opened the service found that the local service MySQL this service is the actual name of Mysql55, so the start statement should be: net start mysql55;The following excerpt from the course asks:You have to see

MySQL Single-table million data record paging performance optimization

Article reprinted from: http://www.cnblogs.com/lyroge/p/3837886.htmlbackground:One of their own site, because the single-table data record up to 1 million, resulting in slow data access, the background of Google Analytics often report timeouts,

Learn Mysql:mysql with Mr. Wang character type of data type

Learn Mysql:mysql with Mr. Wang character type of data typeTeacher: Wang Shaohua QQ Group: 483773664 Study Content: Kinds of string types and their characteristicsThe similarities and differences between char and varcharThe string type is the data

Learn Mysql:mysql with Mr. Wang date and time type of data type

Learn Mysql:mysql with Mr. Wang date and time type of data typeTeacher: Wang Shaohua QQ Group No.: 483773664 Learning Content Characteristics and use of year typecharacteristics and use of time typecharacteristics and use of date

Mycat1.5 ~ A bug in 1.6, mycat1.5 ~ 1.6bug

Mycat1.5 ~ A bug in 1.6, mycat1.5 ~ 1.6bug The following statement runs normally in a single mysql database: SELECT * FROM device WHERE devicetype = 'ams. Monitoring. XlCloud. qkl8154.xlclouddevic' However, if this function is enabled in

The simplest way to debug the stored procedure in Mysql is to debug the stored procedure in mysql.

The simplest way to debug the stored procedure in Mysql is to debug the stored procedure in mysql. My colleague told me to use a temporary table to Insert variable data for viewing, but this method is too troublesome, and Mysql does not have a good

Total Pages: 3233 1 .... 1955 1956 1957 1958 1959 .... 3233 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.