Now the production environment MySQL database is a primary one from, because the traffic volume of access is increasing, so add another from the library. The premise is not to affect the online business use, that is, can not restart the MySQL
1. Start the MySQL serviceThe command to start the MySQL service is:
/etc/init.d/mysqld start
The command executes after 7-5, indicating that the MySQL service started successfully.
(Click
General online increase from the library there are two ways, one is through the mysqldump backup of the main library, restore to from the library, mysqldump is a logical backup, the data volume is large, the backup speed will be very slow, lock the
Start MySQL service sudoLibraryStartupItemsMySQLCOMMySQLCOMstart stop MySQL service sudoLibraryStartupItemsMySQLCOMMySQLCOMstop restart MySQL service sudoLibraryStartupItemsMySQLCOMMySQLCOMrestart
Start MySQL service
1. stop mysql service: servicemysqldstop; 2. mysqld_safe -- skip-grant-tables3. repeat an SSH connection (that is, repeat a new black window); 4. enter the following command: [root @ localhost ~] #
If you have the use of InnoDB to store your MySQL table, use the default settings should have a very headache problem, in the MySQL data directory has a default only 10MB called Ibdata1 file The growth of night and night you are tired of it? It
Install mysql 5.6.12 (cmake compilation) in Linux Source Code 1. Install the make Compiler (which comes with the default system ): http://www.gnu.org/software/make/ [C-sharp] tar zxvf make-3.82.tar.gz cd make-3.82. /configure make install [c-sharp]
Step 1 in Windows. log on to windows as an administrator. use windows service management tools or task manager to stop MySQL service 3. create a text file for a single row and save it as c: mysqlpwdhf.txt. The content is SETPASSWORDFORroot @
Mysql forgot the root password solution 1. Stop mysql Service 2. Enter mysqld -- skip-grant-tables in the command line (skip permission check to start mysql Service) 3. Enter updateMySQL in the command line. usersetpasswordPASSWORD (new password)
1. view the database version SQL-status; 1. netstartmysql starts mysql Service 2. netstopmysql stops mysql service 3. mysql-h host address-u user name-p User Password enters mysql database 4. quit exits mysql operation
1. view the database version
Mysql5.7 forget the root password and mysql5.7 modify the root password, mysql5.7root
Disable running MySQL:
[root@www.woai.it ~]# service mysql stop
Run
[root@www.woai.it ~]# mysqld_safe --skip-grant-tables &
To ensure security, you can disable
When ha switches, it will stop the local resources and then start the resources of the other party.
Our actual environment has two resources:
One is ipaddr, which is used to manage VIP;
MySQL is used to manage MySQL resources;
In the actual
1. Start Service
Windows DOS Command Window input directive:
To see if a service starts: NET Help services
Start MySQL service: net start MySQL
Stop MySQL service: net stop MySQL
Linux under Bash, enter the instructions:
To view the status of
Steps under the Windows platform
1. Log on to the Windows system as an administrator
2. Use Windows Service Management tool or task Manager to stop MySQL service
3. Create a single line of text files, save as C:mysqlpwdhf.txt,
Content is set
Windows edition Stop MySQL service firstOpen the CMD Command window and enter the CD/D installation directoryMysqld--skip-grant-tableThen open a CMD command window and enter the CD/D installation directory as well.Mysql-uroot-p and then enter.Use
A MySQL introduction and operation in DOS MySQL1.MySQL is a medium-sized relational database management system (Dbms,database Management systems).Note: A relational database is a way to store data as a tableOperating MySQL in a 2.DOS environment(1)
Startup and shutdown of the service
* startup net start MySQL
* close net stop MySQL
* Open the service window services.msc
* Query port number : Netstat-ano
How to change password after mysql password is forgotten
1)
Overview:In the production environment, for the MySQL database service I need to control and password control, the main prevention of arbitrary host, any user malicious login operation, but sometimes we do these security policy work, there will be
--------------------------------------------------------------------------------1 System settings:1.1 Remote Desktop settings: Through window settingsSystem--preferences--Remote DesktopTICK: Allow other users to control your desktopCancellation: You
There are 3 ways to fix MySQL database:1. mysql Native SQL command: RepairExecute the Repair TABLE SQL statementSyntax: REPAIR TABLE tablename[,tablename1 ...] [Options]Example: mysql> use database xxx;mysql> Repair Table *;2. Using MySQL's own
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.