Last described how to install the Zabbix client (http://www.jb51.net/article/52158.htm) using Ansible playbook, this time describes how to use playbook to install MySQL.
Here is the information for installing MySQL:
If the entire process uses a MySQL user, it should be able to start normally.
If the root user is used, it may not start properly because the new directory permissions are not correct.
This may be the wrong hint:
/usr/local/mysql/libexec/mysqld:file
First, start/close MySQL
(1) Start MySQL service:net start MySQL
(2) Stop MySQL service: net stop MySQL
Second, login/exit MySQL
First we take a look at some important MySQL parameters, the following table lists some of the important MySQL
One, method one
1) into the Var/lib/mysql
2 delete mysql file
3 Restart MySQL, to this password has been cleared
4) set a new password
echo "Grant all" *.* to ' root ' @ ' localhost ' identified by ' newpass '; Mysql-urootecho "Grant all" *.*
Found a solution from the Internet, here to record:
1. Admin login system, stop MySQL service or end mysqld-nt process;2. Go to the command line and come to MySQL's installation directory. Suppose the installation directory is d:/mysql/, cmd enter
When you log in to MySQL, prompt:ERROR 1045:access denied for user: ' Root@localhost ' (Using password:yes)Explain the password is incorrect, when you do forget the password, what to do? Do not reinstall, of course, do not need.Linux or Unix 1. Log
Under Windows Server
1. Stop MySQL service (as Administrator, run under cmd command line) Use the following command:
The code is as follows
Copy Code
net stop MySQL
2. Use the command to start the MySQL
Windows:
1. Admin login system, stop MySQL service or end mysqld-nt process2. Go to the command line and come to MySQL's installation directory. Assuming the installation directory is d:mysql, CMD enters the command line3. Run
If you have forgotten the root password locally, try the following methods:
Open cmd first stop MySQL service
net stop MySQL
Enter the Bin folder in the MySQL installation directory and enter
Mysqld-nt--skip-grant-tables
Skip Password detection
To learn MySQLunder Linux, the first hurdle is how to install and configure MySQL under Linux. We have the patience to do this once and for all.
System version: ubuntu14.04
MySQL version: mysql-server-5.5
mysql-client-5.5
First check if
One, MySQL GUI Tools
MySQL official provides a visual interface to the MySQL database management console, provides four graphical applications, these graphical management tools can greatly improve database management, backup, migration and query
The tutorial |discuz is divided into three parts for everyone to explain:
(i) Pre-upgrade preparation
1, download the official version of the discuz!6.1.0 to the local or server, as shown in the following figure:
1.jpg(14.81 KB)
2008-4-21 10:28
MySQL LVM snapshot backup features:
1, in most cases, this approach is almost a hot standby. It does not need to shut down the service, just set a read-only or similar limit.
2, support all local disk based storage engine, such as MyISAM, InnoDB
First, install MySQL under CENTOS6Check if the system has its own Mysql:yum list installed | grep MySQL,If there is already, execute the command yum-y remove mysql-libs.x86_64 Uninstall the MySQL that is already installed.1. System
1. Find the default initial passwordWith the grep "temmporary password"/var/log/mysqld.log command, the string that returns the result after the last colon is the default password for root.It is also possible not to generate this log file so refer
MySQL DatabaseFirst, Introduction:MySQL is the database management software: Sockets: Server, Client
Support concurrency, operation is to share data
Handling locks, data security, performance
Use other people's software, according
The MySQL database is actually green software and can still be used after reloading the system.1. After reinstalling the system, keep the original MySQL installation directory and data directory.2. Make a batch file to start MySQL: "Run.bat" The
CentOS7.4 installing MySQL pit recordtime:2018.3.19CentOS7.4 install MySQL online documents although many but not reliable also many, may because of the version and time of the problem, so record their own step on the pit process, if you find into
1, the MySQL product introductionMySQL database belongs to MySQL AB, headquartered in Sweden and later acquired by Oracle.Advantages:(1) Low cost: Open source code, free to use(2) High performance: Fast execution(2) Simple: Easy to install and use2.
MySQL database (this is version 5.6)wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpmRPM-IVH mysql-community-release-el7-5.noarch.rpmYum install MySQL Mysql-server-yInstallation complete, the initial password is emptyStart the
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.