first, start and exit
1, into MySQL: Start the MySQL Command line Client (MySQL's DOS interface), directly enter the installation of the password can be. The prompt at this point is:mysql>
2, Exit Mysql:quit or exit
Second, the library operation1.
1, connect MySQL
Format: mysql-h host address-u user name-P user Password
1, connected to the MySQL on the computer.
First open the DOS window, and then enter the directory Mysql\bin, and then type the command Mysql-u root-p, enter after the
Set Change root passwordThe default is no password after installing MySQL (mysql5.7 will randomly generate a root password), you need to manually create a password for the root administrator of MySQLWhen I first use MySQL, there is no MySQL command,
management of MySQL usersFirst, view the current Connection account information1.1, view the current database to connect the account informationUse command: Show ProcesslistMySQL [(None)]> show processlist;+--------+-------------+--------------------
3.1 QuestionsThis example requires a simple management operation that is familiar with the MARIADB database and accomplishes the following tasks:将 MariaDB 数据库的管理密码设为 1234567新建一个名为 newdb1 的数据库删除名为 test 的数据库授权数据库用户 zhsan 可从本机访问任何数据库,拥有所有权限,访问密码为 pwd123
1, Connection MySQL format: mysql-h host address-u user name-P user Password1. Connect to MySQL on this machine. First open the DOS window, then enter the directory Mysql\bin, and then type the command Mysql-u root-p, enter after the prompt you to
MySQL simple operation one, view the database show DATABASES; for example: MariaDB [(None)]> show databases;+--------------------+| Database |+--------------------+| Information_schema | | MySQL | | Performance_schema | | Test |+--------------------+
Add a Database[[email protected] ~]# mysql -uroot -p #进入mysql数据表Enter Password:Welcome to the MySQL Monitor. Commands End With; or \g.Your MySQL Connection ID is 8... #省略部分内容Type ' help ', ' or ' \h ' for help. Type ' \c ' to clear the current input
Mysqldump-u User name-p passwordMysqldump-h 127.0.0.1-u root-p3003--events-p mysql >/tmp/mysql.bak.sql # # #因为mys Qldump default is not to back up the event table, only add the--events will be resolved plusEgrep-v "#|\*|--|^$"/tmp/mysql.bak.sql #####
The mysql5.7 installed last week (which is different from the previous version)Get ready for work today (practice exercise)Open the virtual machine, start MySQL (because my virtual machine is loaded with 5.6 version, in the 5.7 when the time spent a
1, Connection MySQL format: mysql-h host address-u user name-P user Password1. Connect to MySQL on this machine. First open the DOS window, then enter the directory Mysql\bin, and then type the command Mysql-u root-p, enter after the prompt you to
1, Connection MySQL format: mysql-h host address-u user name-P user Password1. Connect to MySQL on this machine. First open the DOS window, then enter the directory Mysql\bin, and then type the command Mysql-u root-p, enter after the prompt you to
Introduction of installation and basic operation of MySQL-5.7 based on CentOS7A database is a warehouse that organizes, stores, and manages data according to its structure, which is generated more than more than 60 years ago, with the development of
1, Connection MySQL format: mysql-h host address-u user name-P user Password1. Connect to MySQL on this machine. First open the DOS window, then enter the directory Mysql\bin, and then type the command Mysql-u root-p, enter after the prompt you to
setting, changing the root user password
The first use of MySQL will prompt ' This command is not ' because the command has not been added to the environment variable, if you want to use the command, you need to use its absolute
MySQL Settings change root password
Export path= $PATH:/usr/local/mysql/bin/add MySQL to the environment variable can be used directly to the MySQL command, permanent effect to put this command to/etc/profile, and Source/etc/profile
Set
MySQL Basic simple operationLearn to install Docker , then use it. (/Funny Face)Before want to learn Mysql (Windows configuration is really troublesome), learned to Docker be convenient, directly use to Docker create a service is not Mysql flattered.
connect to MySQL on this computer. First open the DOS window, then enter the directory Mysql\bin, and then type the command Mysql-u root-p, enter after the prompt you to lose the password. Note that the user name can have a space or no space, but
1, Connection MySQL format: mysql-h host address-u user name-P user Password1. Connect to MySQL on this machine. First open the DOS window, then enter the directory Mysql\bin, and then type the command Mysql-u root-p, enter after the prompt you to
"Pure dry" amoeba realize MySQL master-slave synchronization and read-write separation one, introduction
Amoeba Introduction
Amoeba (amoeba) project, the Open source framework launched a amoeba for MySQL software in 2008.
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.