SEC)--Create a normal user mysql> grant Select,insert on dba_test.* to ' test ' @ '% ' identified by ' test ';
Query OK, 0 rows affected, 1 Warning (0.00 sec) mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec) Abnormal [[emailprotected] ~]# mysql-s/data0/mysql57/mysql3307/mysqltmp/mysql3307.sock-utest-ptest Welcome to the MySQL Monitor. Commands End With;
or \g. Your MySQL Connection ID is 117 Server version:5.7.21-log Copyright (c), the Oracle and/or its
] ~]$ sudo service mysqld startinitializing MySQL database: [OK]st Arting mysqld: [OK][[emailprotected] ~]$ sudo mysqld_safe--user=mysql --skip-grant-tables--skip-networking [1] 3598[[emailprotected] ~]$ 2017-11-15t01:58:49.095993z mysqld_ Safe Logging to '/var/log/mysqld.log '. 2017-11-15t01:58:49.129531z mysqld_safe starting mysqld daemon with databases from /var/lib/mysql[[emailprotected] ~]$ mysql-u root mysqlreading table information for completion of table and column Namesyou can turn of
MySQL password:[[email protected] ~]# mysqladmin-uroot password ' 123456 '
warning:using a password on the command line interface can Be insecure.(It is best not to include the password in the command line)• Log in to MySQL:[Email protected] ~]# mysql-uroot-p
Enter Password: Welcome to the
MySQL monitor.Commands End With; or \g.
Your MySQL connection ID is 7
server version:5.6.36 MySQL Community Server (GPL)
Copyright (c), Oracleand/or its affiliates
starting the MySQL service. After booting, the root of the connection to MySQL will not require a password.
[Email protected] bin]#/mysqld_safe--skip_grant-tables--user=mysql
[1] 6900
[Email protected] bin]# 161122 21:52:03 mysqld_safe Logging to '/var/lib/mysql/rhel6.err '.
161122 21:52:03 Mysqld_safe starting mysqld daemon with databases From/var/lib/mysql
[[email protected] bin]# ps-ef |grep MySQL
Root 6900 6830 0 21:52 pts/3 00:00:00/bin/sh./mysqld_safe--skip_grant-tables--us
root password of the MySQL database. After confirming the password, until we see it, it means it's installed, and the MySQL service has already started it for us. 5.7. is started At this point, if you want to verify, you can use the following command for a simple test: [Email protected]:~/tmp$ mysql-u Root-P Enter Password:welcome to the MySQL Monitor. Commands End With;
or \g. Your MySQL ConnectionIDIs2Server Version:5.7. -MySQL Community Server (GPL) Copyright (c) -, ., Oracle and/or its
Tags: number row test ATI RAC may color Mon timeRequirements Description : MySQL client, you can specify which database to connect to when you log in to the MySQL database Here is a test. Test process: 1.mysql specifying the connection to the test database with the-d parameter [Email protected] scripts]$ mysql-uroot-p-D test Enter password:error1045(28000): Access denied forUser'Root'@'localhost'(using Password:yes) [[email protected] scripts]$ MySQL-uroot-p-D Test Enter password:welcome to the
: [Warning] Using a password on the command line interface can is insecure. Welcome to the MySQL Monitor. Commands End With; or \g. Your MySQL Connection ID is 6 Server version:5.7.18 Copyright (c) $, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of the Oracle Corporation and/or its affiliates. Other names trademarks of their respective owners. Type ' help ', ' or ' \h
mysql-bin.indexDRWX------. 2 MySQL mysql 4096 Dec 9 18:40 Performance_schemaDRWX------. 2 MySQL root 4096 Dec 9 18:40 test
4 , start multiple instances, and log onStart the service[[email protected] 3307]# /data/3306/mysql startStarting MySQL ...[Email protected] 3307]# lsof-i: 3306COMMAND PID USER FD TYPE DEVICE size/off NODE NAMEMysqld 19986 MySQL 10u IPv4 90967 0t0 TCP *:mysql (LISTEN)[Email protected] 3307]# /data/3307/mysqlStart starting MySQL ...[Email protected] 3307]# lsof-
Tags: lamp mysql local login telnetLocal login uses the MySQL command directly, the-u option specifies the user name, and the-p option specifies the user password[Email protected] ~]# mysql-uroot-p123456Welcome to the MySQL Monitor. Commands End With; or \g.Your MySQL Connection ID is 2Server version:5.1.49 MySQL Community Server (GPL)Copyright (c), Oracle and/or its affiliates. All rights reserved.This software comes with absolutely NO WARRANTY. This
-community-client-5.7 . 17 -1 . e################################# [100 %] Then start the MySQL service [[Email protected]_167_102_centos mysql]# service mysqld start
/bin/systemctl start mysqld.service
Get temporary password grep ' Temporary password ' /var/log/mysqld.log
- -02t14: 1 for [Email protected]: K1PKI) RKA6HL Then use the temporary password to enter MySQL change password [Email protected]_167_102_centos mysql]# Mysql-uroot-P Enter Password:welcome to the MySQL Monitor. Commands
MySQL Community Server (GPL) Copyright (c), Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of the Oracle Corporation and/or its Affiliates. Other names trademarks of their respective Owners. Type ' help ', ' or ' \h ' for help. Type ' \c ' to clear the current input statement. Mysql> Mysql>update mysql.user Set authentication_string = password (' ****** ') where user =
In my previous article four • Install mysql-5.7.16-linux-glibc2.5-x86_64.tar.gz (based on CENTOS7 source installation and nine. MySQL database multi-instance installation Mysqld_multi [Start,stop, Report] Two articles to the single-server multi-instance installation, this article is about the configuration of master-slave replication. This time the mysql3306 as the main master,mysql3307 and mysql3308 as the slaveOne. Start 3 MySQL Servers[Email protected] ~~]$ mysqld_multi reportreporting MySQL
Community Server (GPL) Copyright (c) #, Oracle a nd/or its affiliates.
All rights reserved. Oracle is a registered trademark of the Oracle Corporation and/or its affiliates.
Other names trademarks of their respective owners. Type ' help ', ' or ' \h ' for help.
Type ' \c ' to clear the current input statement.
mysql> Set Password = password (' ysj123 '); ERROR 1290 (HY000): The MySQL server is runnin
root
Welcome to the MySQL monitor. Commands end with; or \ g.
Your MySQL connection id is 3
Server version: 5.5.27-log Source distribution
Copyright (c) 2000,201 1, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
Affiliates. Other names may be trademarks of their respective
Owners.
Type 'help; 'or' \ H' for help. type' \ C' to clear the c
View mysql database version summary, mysql database
When you take over the management of a mysql database, you first need to check the maintained mysql database version. When a developer asks you about the mysql database version, you forget it again, now you need to view the mysql database version ............... The following describes how to view mysql databases on the Linux platform. I personally think the summary is comprehensive.
Method 1:When logging on to the database, you can see the
In the use of Oracle databases, Backup recovery is the most critical. When the database fails, it can be restored in a timely manner to reduce unnecessary losses. Next I will briefly introduce the import and export of databases, solutions, tables, and the role of things in the Process of use.1. Export data tables[Oracle @ CentOS ~] $ Exp scott/system tables = t file = '/home/oracle/t. dump 'Log = '/home/oracle/t. log'; -- export t table data in scott (tables = can write multiple tables, full = y
I. RMAN entry and exit
1. Start RMAN and connect to the local target database
C: \ Users \ Administrator> set oracle_sid = orcl (if there is only one instance, you do not need to specify it. RMAN will automatically connect to the default instance) C: \ Users \ Administrator> RMAN target/recovery Manager: Release 11.2.0.1.0-production on Tuesday October 7 11:42:57 2014 copyright (c) 1982,200 9, Oracle and/or its affiliates. all rights reserved. connect
ConceptThe concept of logical server name (logical server name) in TimesTen is rarely used, but it is necessary to understand it.First, logical server is defined on the client, pointing to the server side.Second, you must use logical server name when using a non-TCP/IP communication protocol or TimesTen server not listening on the default port.
A logical server name is a definition for a server system on the TimesTen Client. In some cases, such as if using a communication protocol other
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.