Change the root user password for MySQL 1, first access the database[[email protected] ~]# /usr/local/mysql/bin/mysql -urootWelcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 2Server version: 5.6.36 MySQL Community
First, change the root user password for MySQL 1, to enter the database[[email protected] ~]# /usr/local/mysql/bin/mysql -urootWelcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 2Server version: 5.6.36 MySQL
1. Install MySQL in CentOS [root @ sample ~] # Yum-yinstallmysql-serverlarr; install MySQL and then install the PHP tool ld for accessing the MySQL database
1. Install MySQL in CentOS [root @ sample ~] # Yum-y install mysql-server larr; install
How to configure MySQL database server on CentOS
BitsCN.com accidentally found CentOS Professional Forum, remember: http://www.centospub.com
As a result, the initial learning configuration
This environment:
CentOS system,
Mysql-server (version
Inadvertently also found CentOS professional forum, remember: http://www.centospub.com
So, the beginning of the learning configuration
This environment:
CentOS System,
Mysql-server (version forgotten, because it was installed using Yum)
Process
How to configure MySQL database server on CentOS
This environment:
CentOS system,
Mysql-server (version forgot, because it was installed using yum)
The process is as follows (reprinted, according to detailed installation requirements, slightly add
Create an automatic backup scriptHere, in order to make the database tutorial backup and recovery meet our actual requirements, use a Shell script that meets the requirements to automate the entire backup process.[Root @ CentOS ~] # Vi mysql
This section describes automatic database backup and restoration methods after database destruction. Here, we use mysqlhotcopy and define a Shell script to implement automatic database backup. In addition, the entire process of automatic data backup
I. Preface:
After the database server is set up, the first thing we need to do is not to consider which MySQL-carried servers should be running on the server that supports the database.ProgramBut how to recover to the last normal state after the
Backup features:
A quick copy of the file, which can only run on the machine where the database directory is located, perform lock tables and UNLOCK tables online, and restore with only copy backup files to source directory coverage.
Insufficient:
When the database server is established, the first thing we need to do is not to consider what MySQL-enabled programs are running on this database-supporting server, but how to recover to the last normal state after the database has been compromised,
# Create some limitations and points of attention for usersUser name must be no more than 16 characters longUser name is case-sensitiveCreate userGrammar:```([email protected]) [(None)]> help create UserName: ' CREATE USER 'Description:Syntax:CREATE
[Email protected] native]# mysql-uhive-pEnter Password:ERROR 1045 (28000): Access denied for user ' hive ' @ ' localhost ' (using Password:yes)[Email protected] native]# mysql-uroot-pEnter Password:Welcome to the MySQL Monitor. Commands End With; or
Establish an automatic backup scriptHere, in order to make the database tutorials backup and restore meet our actual requirements, use a qualifying shell script to automate the entire backup process.[Root@centos ~]# vi mysql Tutorial-backup.sh← set
There are a lot of articles on the internet to forget the root password of the MySQL, there are written how to solve, but sometimes feel too disgusting, or a word does not leak copy others, or say not clear, good, do not spit groove, the following
MySQL study--mysql off automatic commit (autocommit)For MySQL, in the transaction process, the default is the dynamic commit (AUTOCOMMIT), the following methods can automatically close the autocommit;Case Analysis:1. Modify in MySQL login
MySQL installed in linux ubuntuThe Linux used in this article is an Ubuntu 12.04.2 LTS 64bit system, and the installation of MySQL database packages can be implemented through Apt-get.Install MySQL database in linux ubuntu#安装MySQL服务器端~ sudo apt-get
Mysql database basic operation environment 3: msyql version 5.0, windows OS
Mysqladmin command to change password
034039-> 123456
C:/Users/ASUS>mysqladmin -u root -p034039 password 123456C:/Users/ASUS>mysql -u root -p123456Welcome to the MySQL
DownloadVisit https://dev.mysql.com/downloads/mysql/Download mysql5.6Unzip after download, see the following directoryInstall start MySQL1.添加环境变量【右键计算机】--》【属性】--》【高级系统设置】--》【高级】--》【环境变量】--》【在第二个内容框中找到 变量名为Path 的一行,双击】 --> 【将MySQL的bin目录路径追加到变值值中,用 ;
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.