Discover grant select on database, include the articles, news, trends, analysis and practical advice about grant select on database on alibabacloud.com
I. Introduction
I have been using Linux for a long time. I have never studied hard tasks and system learning. Recently, I have to use MySQL in Linux for my work. I thought that I had experience using SQL Server in windows and thought it would be
One, MySQL service operation 0, view the database version sql-> status;1. net start MySQL//start MySQL service2. net stop MySQL//stop MySQL service3, Mysql-h host address-u user name-P user Password//enter MySQL database4. Quit//quit MySQL operation5
MySQL import. sql files and Common commands
To import *.sql scripts directly in MySQL Qurey Brower, is the command to execute SQL files in MySQL without executing multiple SQL commands at once:Mysql> source
A summary of Linux under the MySQL some of the commands:
1.Linux under the command to start MySQL:Mysqladmin start/ect/init.d/mysql Start (Previous installation path for MySQL)
2.Linux Restart MySQL command:Mysqladmin restart/ect/init.d/mysql
Format: Grant Select on database. * To User name @ login host identified by "password"
Example 1, add a user test1 password for ABC, so that he can log on any host, and all databases have query, insert, modify, and delete permissions. First connect
1.linux under the command to start MySQL:
The code is as follows
Copy Code
Mysqladmin start/ect/init.d/mysql Start (Previous installation path for MySQL)
2.linux Restart MySQL command:
The code is
MySQL tutorial Add new user and modify password method
Format: Mysqladmin-u username-P Old password password new password
1, to root add a password ab12. First enter the directory Mysqlbin in DOS, and then type the following command:
Mainly introduces the commonly used MySQL commands, including the connection database, the modification password, manages the user, the operation database, the Operation data table, the database backup and so on, each order has the example
This article for everyone detailed collation of MySQL commonly used commands, to share with you for your reference
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
Many friends have installed MySQL but do not know how to use it. In this article we will learn some common MySQL commands by connecting MySQL, modifying passwords, and adding users.
one, the connection MySQL.
Format: mysql-h host address-u user
NET use \\ip\ipc$ ""/user: "" to establish an IPC NULL link
NET use \\ip\ipc$ "password"/user: "User name" to establish IPC non-null link
NET use h: \\ip\c$ "password"/user: "username" Direct login after mapping the other side C: to local for H:
NET
MySQL usage guide (ON)
Author: King Kong
Many friends have installed MySQL but do not know how to use it. In this article we will learn some common MySQL commands by connecting MySQL, modifying passwords, and adding users.
One, the connection MySQL.
Login MySQL:
Mysql-h localhost-u root-ptest Password must have no space before you re-enter the password
Mysql-h110.110.110.110-u Root-p 123; (Note: There is no space between you and root, and so are the others.)
MySQL Commands collection
mysql command-common SQL statement Command code
Use G to display results vertically by rowIf a line is long and needs to be displayed, it's very hard to look at the results. By using g instead of a semicolon at the end of a SQL statement or command,
1. Grant statement
Format: Grant Select on database. * To User name @ login host identified by "password"
Description
(1) Grant all grants all permissions
(2) All tables in the Demo.* database demo
(3) NewUser user name
(4) @localhost MySQL
Test environment: MySQL 5.0.45
"Note: You can view the database version in MySQL by mysql> SELECT version ();"
one, the connection MySQL.
Format: mysql-h host address-u user name-P user Password
1, connected to the MySQL on the computer.
First
one, the connection 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
One, the connection MySQL.
Format: mysql-h host address-u user name-P user Password
1, Example 1: Connect to MySQL on this machine.
First in the Open DOS window, and then into the directory Mysqlbin, and then type the command mysql-uroot-p, enter
Put the Mysql.exe in the bin directory under the MySQL directory under C:\WINDOWS, and you can execute the following command
Connection: Mysql-h host address-u user name-P user Password (note: U and root can be without spaces, others are the
One, the connection MySQL.
Format: mysql-h host address-u user name-P user Password
1, Example 1: Connect to MySQL on this machine.
First in the Open DOS window, and then into the directory Mysqlbin, and then type the command mysql-uroot-p, enter
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.